Base64 Encode Online
The most flexible Base64 encoder: encode plain text, any local file or a remote URL. You can pick the character set used for text, the Base64 standard (standard, MIME, URL-safe, PEM, IMAP and more) and the output format. Enable live mode to encode as you type.
วิธีใช้เครื่องมือ Base64 Encode Online
- เลือกชนิดข้อมูล: ข้อความ, ไฟล์ในเครื่อง หรือ URL ระยะไกล
- สำหรับข้อความ สามารถเลือกการเข้ารหัสอักขระได้ (ค่าเริ่มต้นคือ UTF-8 ซึ่งระบบส่วนใหญ่ใช้)
- เลือกมาตรฐาน Base64 และรูปแบบผลลัพธ์
- กด เข้ารหัสเป็น Base64 แล้วคัดลอกหรือดาวน์โหลดผลลัพธ์
มาตรฐาน Base64 ที่รองรับ
- มาตรฐาน (RFC 4648): ชุดอักขระ
A–Z a–z 0–9 + /พร้อม padding= - MIME (RFC 2045): ใช้ชุดอักขระเดียวกัน ตัดบรรทัดทุก 76 อักขระด้วย CRLF
- PEM (RFC 7468): ตัดบรรทัดทุก 64 อักขระ ตามที่ใช้ในใบรับรอง
- Base64URL (RFC 4648 §5): ใช้
-และ_แทน+และ/ไม่มี padding ใช้ใน JWT และ URL - IMAP (RFC 3501): ใช้
+และ,ไม่มี padding - XML name token (
.และ-) และ XML identifier (_และ:) - OpenPGP ASCII armor (RFC 4880): บรรทัดละ 76 อักขระ พร้อม checksum แบบ CRC-24
ทำไมชุดอักขระจึงสำคัญ?
Base64 เข้ารหัสไบต์ ไม่ใช่ตัวอักษร คำเดียวกันจะให้ไบต์ต่างกันใน UTF-8, Windows-1252 หรือ Shift_JIS จึงได้สตริง Base64 ที่ต่างกัน ให้ใช้ UTF-8 เว้นแต่ระบบปลายทางต้องการการเข้ารหัสแบบเก่าโดยเฉพาะ
When developers encode to Base64
Use this free Base64 encoder to embed images in CSS/HTML data URIs, put binary blobs in JSON APIs, build HTTP Basic Auth headers, wrap PEM certificates, or produce URL-safe tokens. Prefer Base64URL for JWTs and query strings, and MIME wrapping when a mail client expects 76-character lines.
ตัวเข้ารหัส Base64 ทั้งหมด
- ข้อความเป็น Base64
- ไฟล์เป็น Base64
- รูปภาพเป็น Base64
- PNG เป็น Base64
- JPG เป็น Base64
- GIF เป็น Base64
- BMP เป็น Base64
- ICO เป็น Base64
- SVG เป็น Base64
- WebP เป็น Base64
- AVIF เป็น Base64
- เสียงเป็น Base64
- MP3 เป็น Base64
- WAV เป็น Base64
- Ogg เป็น Base64
- FLAC เป็น Base64
- WMA เป็น Base64
- วิดีโอเป็น Base64
- PDF เป็น Base64
- Hex เป็น Base64
- HTML เป็น Base64
- CSS เป็น Base64
- JSON เป็น Base64
- URL เป็น Base64
ตัวถอดรหัส Base64 ทั้งหมด
คำถามที่พบบ่อย
จะเข้ารหัสสตริงเป็น Base64 ได้อย่างไร?
เลือก "ข้อความ" วางสตริงของคุณ แล้วคลิก "เข้ารหัสเป็น Base64" ค่าเริ่มต้น UTF-8 ให้ผลตรงกับ JavaScript, Python, PHP และ Java
เข้ารหัสไฟล์เป็น Base64 ได้ไหม?
ได้ เลือก "ไฟล์ในเครื่อง" แล้วเลือกไฟล์ใดก็ได้ เช่น รูปภาพ PDF ZIP ใบรับรอง เป็นต้น ไฟล์จะถูกประมวลผลในเครื่องและไม่ถูกอัปโหลด
Base64 กับ Base64URL ต่างกันอย่างไร?
Base64URL แทนที่ "+" ด้วย "-" และ "/" ด้วย "_" และมักไม่ใส่ padding ผลลัพธ์จึงใช้ใน URL และชื่อไฟล์ได้โดยไม่ต้อง escape
Is this Base64 encoder free?
Yes. Encode unlimited text and files in your browser with no sign-up. Nothing you encode is uploaded to our servers.
How do I encode for e-mail (MIME)?
Select the MIME (RFC 2045) standard so the output is wrapped at 76 characters with CRLF, which is what many mail systems expect.
ความคิดเห็น (0)
มีคำถาม ไอเดีย หรือพบข้อผิดพลาดใน “Base64 Encode Online” ใช่ไหม? แสดงความคิดเห็น ให้คะแนนเครื่องมือ หรือตอบกลับผู้อื่นได้เลย
ยังไม่มีความคิดเห็น มาเป็นคนแรกที่แสดงความคิดเห็นสิ!