Monu Tools

เครื่องเข้ารหัสและถอดรหัส Base64

เข้ารหัสข้อความเป็น Base64 หรือถอดรหัส Base64 กลับเป็นข้อความ ปลอดภัยกับ UTF-8 พร้อมตรวจจับทิศทางอัตโนมัติ

วิธีใช้ เข้ารหัส Base64

  1. 01

    พิมพ์ข้อความเพื่อเข้ารหัส หรือวาง Base64 เพื่อถอดรหัส

  2. 02

    กด เรียกใช้ ทิศทางจะถูกตรวจจับอัตโนมัติ

  3. 03

    คัดลอกผลลัพธ์จากแผงผลลัพธ์

What Base64 is

Base64 represents binary or text data using just 64 printable ASCII characters (A-Z, a-z, 0-9, plus + and /), encoding every three bytes as four characters. That keeps data intact when it travels through systems that were built for text rather than raw bytes.

Where you see it

You see it everywhere: data URLs that embed an image directly in HTML or CSS, email attachments (MIME), the header and payload of a JSON Web Token, HTTP Basic authentication headers, and many API fields that need to carry binary data as a plain string.

How this tool handles it

This tool encodes text to Base64 and decodes Base64 back to text, choosing the direction automatically. It is UTF-8 safe, so accents, emoji and other Unicode characters survive the round trip without corruption, which the naive built-in browser functions do not guarantee on their own.

Encoding is not encryption

It is important to know what Base64 is not: it is an encoding, not encryption. Anyone can decode it instantly, so it provides zero security. Never use it to hide passwords, tokens or secrets. Its job is safe transport and representation, not confidentiality.

The size cost

Base64 also has a size cost. The encoded output is about 33 percent larger than the original, because four characters stand in for every three bytes. That trade-off is usually worth it for compatibility, but it is why you would not Base64-encode large files when a real binary channel is available.

Runs in your browser

Everything runs in your browser, so the text you paste is never uploaded. To turn an image file into a Base64 data URL instead of plain text, use the dedicated Image to Base64 tool.

คำถามที่พบบ่อย

การตรวจจับอัตโนมัติทำงานอย่างไร?

หากข้อมูลของคุณดูเหมือน Base64 ที่ถูกต้องและถอดรหัสเป็นข้อความ UTF-8 ที่อ่านได้ ระบบจะถอดรหัสให้ มิฉะนั้นจะเข้ารหัสแทน ครอบคลุมกรณีทั่วไปโดยไม่ต้องสลับด้วยมือ

ปลอดภัยสำหรับอักขระที่ไม่ใช่ภาษาอังกฤษหรือไม่?

ปลอดภัย การเข้ารหัสและถอดรหัสปลอดภัยกับ UTF-8 อิโมจิ เครื่องหมายเน้นเสียง และอักขระ Unicode อื่นจึงไปกลับได้ถูกต้อง

ใช้ป้องกันรหัสผ่านหรือความลับได้ไหม?

Base64 เป็นการเข้ารหัส (encoding) ไม่ใช่การเข้ารหัสลับ (encryption) ย้อนกลับได้ง่ายและไม่ให้ความปลอดภัย อย่าใช้ป้องกันข้อมูลละเอียดอ่อน

แหล่งข้อมูล

ฝังเครื่องมือนี้

เพิ่มเครื่องมือนี้ลงในเว็บไซต์ของคุณเอง คัดลอกสคริปต์ด้านล่าง โดยจะอัปเดตให้เป็นปัจจุบันโดยอัตโนมัติ

<iframe src="https://monu.tools/embed/th/base64-encoder" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

เครื่องมือที่เกี่ยวข้อง