Tools/Base64 Encoder / Decoder

Base64 Encoder / Decoder

Encode text or files to Base64 and decode Base64 back to text — both results update instantly as you type. Supports URL-safe mode and image previews. Everything runs in your browser.

Try:

How Base64 works

  • Base64 encodes binary data as ASCII text using 64 printable characters (A–Z, a–z, 0–9, +, /).
  • Every 3 bytes of input produce 4 Base64 characters — roughly a 33% size overhead.
  • URL-safe Base64 (RFC 4648 §5) replaces + - and / _, and strips trailing = padding — safe for use in URLs and filenames.
  • Common uses: embedding images in HTML/CSS, encoding binary data in JSON APIs, HTTP Basic Auth credentials, email attachments (MIME).

All encoding and decoding runs entirely in your browser. No data is stored or sent to any server.