DevToolbox

Base64 Encoder & Decoder

Encode text to Base64 and decode it back, with full Unicode and URL-safe support.

Loading tool…

Base64 represents binary data using 64 printable ASCII characters, so it can travel safely through systems that only expect text — email bodies, JSON fields, data URIs, HTTP headers. This tool converts in both directions and handles Unicode correctly by encoding through UTF-8 first, so emoji and accented characters round-trip cleanly.

It also supports the URL-safe alphabet (- and _ instead of + and /, padding optional), which is what JWTs and many APIs use. All conversion is done in your browser.

Features

  • Encode and decode in one panel
  • Correct UTF-8 handling for non-ASCII text
  • Standard and URL-safe alphabets
  • Optional padding removal
  • Helpful error when the input is not valid Base64
  • Copy the result with one click

How to use the base64 encode / decode

  1. Paste text to encode, or a Base64 string to decode.
  2. Pick the direction (encode or decode).
  3. Toggle URL-safe mode if you are working with JWTs or query parameters.
  4. Copy the output.

Frequently asked questions

Why does my decoded Unicode text look garbled elsewhere but fine here?

This tool decodes Base64 bytes as UTF-8. Tools that decode as Latin-1 will mangle multi-byte characters. Make sure both ends agree on UTF-8.

What is URL-safe Base64?

A variant that replaces + with - and / with _ so the string can be used in URLs and file names without escaping. Padding = characters are often dropped.

Is Base64 encryption?

No. It is an encoding, not encryption. Anyone can decode it. Never use Base64 to protect secrets.

Last updated September 10, 2026.

Related tools