GetEverydayTools

Base64 Encoder / Decoder

Convert text to Base64 or decode Base64 back to text. Handles emoji and accented characters correctly, and supports URL-safe Base64.

How to use

  1. Choose Encode or Decode.
  2. For encoding, tick URL-safe if the result goes in a URL or token.
  3. Type or paste your text. The result updates as you type.

Examples

  • Hello → SGVsbG8=
  • café → Y2Fmw6k=
  • ??> → Pz8+ (standard) or Pz8- (URL-safe)

Frequently asked questions

What is Base64?

Base64 represents data using only 64 safe characters: A–Z, a–z, 0–9, + and /. It's used to put text or binary data in places that only accept plain characters, such as JSON, email, HTTP headers, and data: URLs. Base64 is an encoding, not encryption: anyone can decode it.

Does it work with emoji and accented characters?

Yes. Text is converted to UTF-8 bytes before encoding, so characters like é, 中, and 👋 encode correctly and decode back exactly. Many simple tools fail on these because the browser's built-in btoa function only supports basic Latin characters.

What is URL-safe Base64?

Standard Base64 uses + and /, which have special meanings in URLs. URL-safe Base64 (Base64URL) uses - and _ instead and usually drops the = padding. JSON Web Tokens use it. Tick the URL-safe option to encode this way. Decoding accepts both forms automatically.

Why do I get a binary data error when decoding?

The Base64 is valid, but the bytes it contains aren't UTF-8 text. It's probably an image, a file, or encrypted data, which can't be shown as text.

Is my data sent to a server?

No. Encoding and decoding happen in your browser. Nothing you type is uploaded or stored.