Base64 Encoder / Decoder
Convert text or files to and from Base64 — Unicode-safe, with drag-and-drop file support.
Base64 Encoder / Decoder
Runs in your browser — nothing you enter is uploaded or stored.
Scratchpad auto-saved
About the Base64 Encoder / Decoder
Base64 is an encoding that represents any binary or text data using only 64 safe ASCII characters (A–Z, a–z, 0–9, + and /). It's used to embed images in CSS or HTML, send binary data through text-only channels like email, and store small files inside JSON or config.
The text encoder here is Unicode-safe: it converts your string to UTF-8 before encoding, so emoji and accented characters survive a round trip that naive Base64 would corrupt. Decoding reverses the process and reports a clear error if the input isn't valid Base64.
The file section reads a dropped or chosen file with the browser's FileReader and returns a full data URL (like data:image/png;base64,…) that you can paste directly into an <img src> or stylesheet. Files are read locally and never uploaded. Base64 increases size by about a third, so it's best for small assets rather than large media.