Base64 Encoder & Decoder

Base64 exists because plenty of transports — email headers, JSON strings, data URIs, HTTP basic auth — only reliably carry printable ASCII. It encodes arbitrary bytes into 64 safe characters at a cost of about 33% extra size. This tool converts in both directions and handles Unicode correctly.

How to use it

  1. Paste text to encode, or a Base64 string to decode.
  2. Press Encode or Decode.
  3. Switch on URL-safe mode if the value goes into a query string or path.
  4. Copy the result.

Frequently asked questions

Is Base64 encryption?

No, and treating it as such is a genuine security mistake. It is a reversible encoding with no key. Anyone can decode it instantly, so never use it to hide a secret.

What is URL-safe Base64?

A variant that replaces + with - and / with _, because the standard characters have reserved meanings in URLs. JWTs use this variant, which is why they contain no plus or slash characters.

Why does Base64 make data larger?

Because it packs three bytes into four characters, adding roughly one third. The = padding at the end aligns the output to a multiple of four characters.

Why did my emoji break in another tool?

Naive implementations call btoa directly, which only handles Latin-1. This tool encodes to UTF-8 bytes first, so emoji and non-Latin scripts round-trip correctly.

All free tools · Blog · About · Contact

Also available in: Español · Português · Français · Deutsch