Base64 Encoder & Decoder — Unicode-Safe, Private

Encode text to Base64 or decode it back — including emoji and non-English text that breaks simpler tools — without anything leaving your browser.

Runs 100% in your browser — nothing you type is uploaded or stored.

You might also need

How to encode or decode Base64

  1. To encode: type or paste plain text on the left, then click “Encode text → Base64”. The Base64 appears on the right.
  2. To decode: paste Base64 on the right, then click “Decode Base64 → Text”. The original text appears on the left — invalid input gets a clear error instead of gibberish.
  3. Tick “URL-safe alphabet” when the result will travel inside a URL or filename: it swaps + and / for − and _ and makes padding optional, the variant used by JWTs and web tokens.
  4. Copy the result with the copy button — everything happened locally, so what you paste elsewhere is the first time the data leaves your device.

What Base64 is — and is not

Base64 is a way of writing binary data using only 64 safe characters (A–Z, a–z, 0–9, + and /), so it can travel through systems built for text: emails, URLs, JSON strings, data URIs. It grows the data by about a third, which is the price of that safety. Two warnings every developer should hear. First, Base64 is not encryption — anyone can decode it instantly, so never treat an encoded password or token as protected. Second, the classic pitfall: browsers' simplest Base64 functions only handle Latin-1 text and throw errors (or silently mangle) on characters like é, 中文 or emoji. This tool encodes the text as UTF-8 first — the modern standard — so any language round-trips exactly.

You will meet Base64 most often inside JWT tokens (the header and payload sections are URL-safe Base64), data URIs that embed small images in HTML or CSS, email attachments (MIME encoding), and API keys and basic-auth headers. Decoding a JWT payload here to eyeball its claims is a daily debugging habit — and because this tool never uploads, the token you paste stays on your machine.

Base64 Encoder / Decoder — frequently asked questions

Is Base64 encryption? Is my data safe if I encode it?

No — Base64 is an encoding, not encryption. Anyone who has the encoded text can decode it instantly with a tool like this one. Never rely on Base64 to protect passwords, tokens or personal data.

Why do other Base64 tools fail on emoji or non-English text?

The browser's basic btoa function only accepts Latin-1 characters. This tool first converts your text to UTF-8 bytes (the modern standard) and encodes those, so text in any language — and emoji — encodes and decodes exactly.

What is URL-safe Base64?

A variant that replaces + with − and / with _ (both unsafe inside URLs) and often drops the = padding. It is used by JWTs, web tokens and filename-safe identifiers. Tick the URL-safe box to encode or decode in this alphabet.

Is what I paste uploaded anywhere?

No. Encoding and decoding run entirely in your browser. The text never leaves your device, is never logged and is never stored — particularly important when you are decoding tokens or credentials while debugging.

Why does Base64 make data bigger?

Every 3 bytes of input become 4 Base64 characters, so the output is about 33% larger. That overhead is the cost of representing any byte using only text-safe characters.

Can I encode an image or file to Base64 here?

This tool is for text. Encoding files (for data URIs) is a planned addition to the developer suite; for now, the Image Converter can prepare the image itself, and most code editors can produce a data URI from it.

People also use

Files are processed in your browser and never uploaded. Everything happens on your device, from start to finish. How it works →