Developer Tools

Base64 Encoder / Decoder

Encode text to Base64 and decode Base64 to text with live preview. Handle files via drag-and-drop with image preview. Full Unicode support including emoji and CJK characters.

100% local
Runs in your browser
Zero sent
No tracking, no servers

Input

0 chars
Drop a file, paste an image, or click to browse
Up to 10 MB · processed in-browser

Encoded

0 bytes
Output appears here as you type.

Decode Base64 → file

Optional

How to use

  1. 1
    Choose Text or File mode -- select the Text tab to encode/decode strings, or the File tab to work with files.
  2. 2
    Type or paste your text -- enter text to encode, or paste Base64 to decode. For files, drag and drop or click to browse.
  3. 3
    Toggle URL-safe if needed -- check the URL-safe option to use RFC 4648 encoding with - and _ instead of + and /.
  4. 4
    Copy the result or download -- click Copy to grab the encoded/decoded text, or use Download to save a decoded file.

Frequently asked questions

What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that represents binary data as an ASCII string. It uses 64 characters (A-Z, a-z, 0-9, +, /) to encode data, making it safe for transmission over text-based protocols like email and URLs.
Does this tool support Unicode and emoji?
Yes. This tool uses TextEncoder and TextDecoder to handle UTF-8 encoding correctly, so emoji, CJK characters, and all Unicode text encode and decode without errors.
What is URL-safe Base64?
URL-safe Base64 (RFC 4648) replaces + with - and / with _ and removes trailing = padding. This variant is safe to use directly in URLs and filenames without additional percent-encoding.
Can I encode files?
Yes. Switch to the File tab and drag-and-drop any file onto the drop zone or click to browse. The tool reads the file and shows its Base64 encoding. Image files also display a visual preview.
Is my data stored anywhere?
No. All encoding and decoding happens entirely in your browser using JavaScript. Your text and files are never sent to any server.