๐ Base64 Encoder/Decoder
Encode and decode text or files to/from Base64 format
Input
Base64 Output
What is Base64?
Base64 is a encoding scheme that converts binary data into ASCII text format. It's commonly used for:
- Embedding images in HTML/CSS
- Sending binary data in JSON
- Email attachments
- Data URLs
- API authentication tokens
Common Use Cases
Encode text or files to Base64 and decode Base64 back to the original, entirely in your browser. It handles plain strings, Unicode text, and file uploads for things like data URIs โ nothing is sent to a server, so it is safe for sensitive data.
Frequently asked questions
What is Base64 used for?
Base64 represents binary data using only printable ASCII characters, so it can travel through text-only channels: embedding images as data URIs in HTML or CSS, email attachments, HTTP basic auth headers, and JSON payloads that need to carry binary content.
Can I encode a file to Base64?
Yes. Upload a file and it is read locally and converted to a Base64 string you can copy โ handy for creating data: URIs. Keep in mind Base64 makes data about 33% larger, so it suits small files best.
Is Base64 encryption?
No. Base64 is an encoding, not encryption โ anyone can decode it instantly, and it offers zero security. If you need to protect data, use real encryption; use Base64 only for safe transport of binary data as text.
Why does my decoded text look garbled?
Usually the input is not valid Base64 (check for missing characters or padding), or the original data was binary rather than text. This tool handles Unicode correctly, but decoding an image or other binary file as text will always look like noise.