Base64 Encoder / Decoder

Encode and decode Base64 text and files online. Free, instant, and runs entirely in your browser.

Drop a file here to encode, or type/paste text below.

About Base64

Base64 encodes binary data as printable ASCII using 64 characters: A–Z, a–z, 0–9, plus + and /, with = as padding. It is the standard way to transmit binary through text-only channels like email, JSON payloads, or data-URI images, growing the payload by about one third in exchange for safe transport.

How to use

Use the Encode ↔ Decode toggle to pick a direction. In encode mode, type or paste text, or drop a file onto the drop zone — the file's binary contents will be Base64-encoded. In decode mode, paste Base64 text, press Convert, and copy or download the result as a file.

Unicode support

Text is encoded as UTF-8 before Base64 conversion, so emoji and non-Latin scripts round-trip correctly. Decoding rejects non-UTF-8 byte sequences with an explicit error rather than returning mojibake.

Privacy

All encoding and decoding, including file processing, happens in your browser. Your text and files are never uploaded to any server.

Frequently Asked Questions

Edit PDFs on your phone

Pure PDF Editor works offline on iPhone, iPad, Mac, and Android. Free to download.