เข้ารหัส/ถอดรหัส Base64
เข้ารหัสข้อความเป็น Base64 และถอดรหัสสตริง Base64
Client-side only — uses native browser btoa / atob APIs. Your data never leaves the browser.
Base64 Encoder & Decoder
Encode any text or binary data to Base64, or decode a Base64 string back to plain text. Used in email attachments, data URIs, JWTs, and API authentication headers.
FAQ
What is Base64 encoding?
Base64 converts binary data into 64 printable ASCII characters, making it safe to transmit over text-only systems like email or URLs.
Is Base64 encryption?
No. Base64 is encoding, not encryption. It is easily reversible and provides zero security. Never use it to protect sensitive data.
Why does Base64 end with == ?
Base64 pads output with = characters to ensure the length is a multiple of 4 bytes. One = means one padding byte, == means two.
What is Base64 used for?
Embedding images in CSS/HTML as data URIs, encoding JWT header/payload, passing binary data in JSON, and HTTP Basic Auth headers.
สำรวจต่อ
เครื่องมือนักพัฒนา อื่นๆ ที่คุณอาจชอบ...
จัดรูปแบบ JSON
จัดรูปแบบ ตรวจสอบ และย่อข้อมูล JSON พร้อม syntax highlighting
เข้ารหัส/ถอดรหัส URL
เข้ารหัสและถอดรหัสส่วนประกอบ URL และ query strings
สร้าง UUID
สร้างตัวระบุ UUID v4 แบบสุ่ม
สร้าง Hash
สร้างแฮช MD5, SHA-1, SHA-256 และ SHA-512 จากข้อความ
ทดสอบ Regex
ทดสอบและดีบัก regular expressions พร้อมไฮไลท์การจับคู่
ถอดรหัส JWT
ถอดรหัสและตรวจสอบ header และ payload ของ JWT token
จัดรูปแบบ HTML
จัดรูปแบบโค้ด HTML พร้อมการเยื้องที่เหมาะสม
ย่อ CSS
ย่อโค้ด CSS โดยลบช่องว่างและ comments