D

Base64 Encoder / Decoder

Encode & decode Base64 strings

Encode text or files to Base64 and decode Base64 strings back to plaintext. Supports UTF-8, URL-safe Base64, and file encoding.

How to Use Base64 Encoder / Decoder

  1. 1Select "Encode" or "Decode" mode
  2. 2Paste your text into the input box
  3. 3The result appears instantly
  4. 4Click "Copy" to copy the output
  5. 5Toggle "URL-safe" for Base64URL encoding

Features

  • Encode text to Base64
  • Decode Base64 to text
  • URL-safe Base64 (Base64URL) mode
  • UTF-8 encoding support
  • Instant encoding/decoding as you type
  • Copy output with one click
  • Handles large strings efficiently

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.

Related Tools