Base64 Encoder/Decoder
Encode and decode text or files to and from Base64, all client-side.
Input (Text/File)
0 chars
About Base64
What is Base64?
Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters. It is commonly used to embed binary data in text-based formats like JSON, XML, HTML, and email.
Common Use Cases
- Embedding images in CSS or HTML data URIs
- Encoding email attachments (MIME)
- Storing binary data in JSON or XML
- API authentication tokens
- URL-safe data encoding
Features:
- Encode text to Base64 in real-time
- Decode Base64 back to text
- File to Base64 encoding for any file type
- URL-safe Base64 variant support
- Image file preview before encoding
- Binary file detection on decode
- Copy output or download as a file
- Swap input and output for quick re-encoding
- Size statistics and encoding ratio
- All processing happens client-side