Developer Tools

Base64 Encoder / Decoder

Encode & decode Base64 strings

Encode text or files to Base64 and decode Base64 strings back to readable text — with UTF-8, URL-safe Base64URL mode, and instant results. All processing stays private in your browser.

How to Use Base64 Encoder / Decoder

  1. 1Select "Encode" or "Decode" mode
  2. 2Paste your text or file content into the input box
  3. 3The result appears instantly as you type
  4. 4Toggle "URL-safe" mode for Base64URL encoding (replaces +/ with -_)
  5. 5Click "Copy" to copy the output to clipboard

Features

  • Encode text to Base64 and decode Base64 back to text with UTF-8 support
  • URL-safe Base64 (Base64URL) mode for use in URLs without percent-encoding
  • Instant encoding and decoding as you type — handles large strings efficiently
  • All processing browser-local — your data stays private with no uploads

Frequently Asked Questions

What is Base64 used for?

Base64 encodes binary data as ASCII text. Common uses include embedding images in HTML/CSS, encoding data in JSON APIs, HTTP Basic Auth headers, and data URLs.

What is URL-safe Base64?

Standard Base64 uses + and / which have special meanings in URLs. URL-safe Base64 (Base64URL) replaces + with - and / with _ to make the string URL-safe without percent-encoding.

Does it handle non-ASCII characters?

Yes. The tool properly handles UTF-8 characters (including emoji and international text) by encoding the string as UTF-8 bytes before Base64 encoding.