Base64

การเข้ารหัส & ถอดรหัส Base64

วิธีที่ง่ายและเร็วที่สุดในการเข้ารหัสและถอดรหัส Base64 ออนไลน์

ฟรี ปลอดภัย ทำงานทั้งหมดในเบราว์เซอร์ของคุณ

// Input
"Hello, World!"
 
// Base64 Encoded
"SGVsbG8sIFdvcmxkIQ=="

ทำไมต้อง 2Base64?

เร็วสุดๆ

ทุกอย่างเกิดขึ้นทันทีในเบราว์เซอร์

🔒

ปลอดภัย 100%

ข้อมูลไม่เคยออกจากอุปกรณ์ของคุณ

💻

เหมาะสำหรับนักพัฒนา

อินเทอร์เฟซสะอาดพร้อมรองรับ UTF-8

🎁

ฟรีทั้งหมด

ไม่ต้องลงทะเบียน ไม่จำกัด ไม่มีค่าใช้จ่ายซ่อน

Base64 คืออะไร?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It converts binary data into a set of 64 printable characters (A-Z, a-z, 0-9, +, and /), with = used for padding.

ทำงานอย่างไร?

Base64 encoding works by taking groups of three bytes (24 bits) of binary data and splitting them into four groups of six bits each. Each 6-bit group is then mapped to one of 64 printable ASCII characters.

ทำไมต้อง Base64?

Base64 encoding is essential in many areas of software development. It is used to embed images in HTML/CSS, transmit binary data over text-based protocols like email (MIME) and HTTP, store data in JSON/XML formats, and encode authentication credentials.

การใช้งานทั่วไป

  • Embedding images in HTML/CSS using data URIs
  • Sending email attachments via MIME encoding
  • Encoding binary data in JSON and XML payloads
  • HTTP Basic Authentication credentials
  • Storing binary data in text-based databases
  • Data transfer between different systems and platforms