Base64 Encoder / Decoder

Encode or decode Base64 safely, including emoji and non-Latin text. Encode text to Base64 or decode Base64 to text. Full unicode support, URL-safe variant and error detection. Free online Base64 converter.

This tool runs 100% in your browser. Your input is never sent to any server — you can even go offline after the page loads.

About the Base64 Encoder / Decoder

Base64 turns binary-safe text into plain ASCII, which is how images are embedded in HTML, tokens are transmitted in APIs, and data is smuggled through systems that only accept text. This converter handles the full unicode range correctly — emoji and non-Latin scripts that naive converters mangle — offers the URL-safe alphabet used by JWTs, and clearly reports invalid input instead of guessing. Encode and decode in the same box, instantly.

How to use the Base64 Encoder / Decoder

  1. Paste your text (to encode) or Base64 string (to decode).
  2. Pick Encode or Decode.
  3. Enable URL-safe mode if you are working with JWTs.
  4. Copy the converted result.

Key features

Why do some Base64 strings contain "-" and "_"?
Those are URL-safe Base64, where "+" becomes "-" and "/" becomes "_" so the string can travel inside URLs and file names without escaping. JWTs use this variant.
Is Base64 encryption?
No — it is encoding, not encryption. Anyone can decode it. Never use Base64 to protect secrets; use proper encryption instead.

Related Developer Tools tools

More utilities from the same category.

View all →