Base64 Encoder & Decoder — Online Free
Free online Base64 encoder and decoder. Encode text to Base64 or decode Base64 strings instantly. Base64 converter with Unicode support — runs entirely in your browser.
Base64 Encode and Decode Online — Free Base64 Converter
Base64 encoding is one of the most common operations in web development. Whether you're embedding images in CSS, transmitting binary data in JSON APIs, encoding email attachments, or working with data URIs, you need a quick way to encode and decode Base64 strings.
This tool converts between plain text and Base64 in real time as you type. It properly handles Unicode by encoding text as UTF-8 before Base64 conversion, so emoji, accented characters, and CJK text all work correctly. Everything runs in your browser — your data never leaves your device.
When to use Base64
- Embedding images as data URIs in HTML or CSS
- Transmitting binary data through text-based APIs
- Encoding file contents for JSON payloads
- Basic HTTP authentication headers
- Encoding email attachments (MIME)
How Base64 works
Base64 takes every 3 bytes of input and maps them to 4 printable ASCII characters from an alphabet of 64 characters (A-Z, a-z, 0-9, +, /). If the input length is not a multiple of 3, the output is padded with = characters. This makes Base64 output about 33% larger than the input, but guarantees it is safe for text-based transport.