Base64 Encode / Decode
Base64 Encoding and Decoding Tool
Encode text to Base64 or decode Base64 to text.
Supports file/image encoding too.
Select any file to get its Base64 representation. Images will show a preview.
About Base64
Base64 is a binary-to-text encoding scheme that represents binary data as an ASCII string. It's commonly used for:
- Embedding images in HTML/CSS using Data URIs
- Encoding binary data in JSON or XML
- Email attachments (MIME)
- Storing complex data in cookies or URLs
JavaScript btoa() method