Base64 Encode & Decode Online — Free, Private

Need to base64 encode a string or base64 decode a token? Type or paste text and this online tool converts it live as you type — UTF-8 safe both ways, with a URL-safe alphabet option — and nothing ever leaves your browser.

Base64 Encoder & Decoder

Built for developers who need a quick token, header or blob encoded or decoded. Fully client-side — no network calls, no storage.

How to use:

  1. Choose Encode to turn text into Base64, or Decode to turn Base64 back into readable text
  2. Output updates live as you type — copy it, or hit "Use as input" to flip the result back into the input box
  3. Any Unicode works when encoding (emoji, accents, CJK) — it's UTF-8 encoded first, per the standard
  4. Decoding is forgiving: spaces and line breaks are ignored, -/_ are accepted as +//, missing = padding is fine, and data:...;base64, prefixes are stripped automatically
  5. Tick URL-safe alphabet for Base64 that can sit inside URLs and filenames unchanged (e.g. JWT-style, no padding)

Everything runs in your browser: no network calls, no analytics on your input, nothing stored.

Frequently Asked Questions

How do I encode text to Base64?

Paste your text into the input box with the Encode mode selected — the Base64 output appears live as you type. Any Unicode works (emoji, accents, CJK), because the text is UTF-8 encoded first, per the standard.

How do I decode Base64?

Switch the mode to Decode, paste the Base64 string, and the readable text appears instantly. Decoding is forgiving: spaces and line breaks are ignored, missing = padding is fine, and data:…;base64, prefixes are stripped automatically.

What is URL-safe Base64?

URL-safe Base64 replaces + and / with - and _, so the string can sit unchanged inside URLs, filenames and cookies. Tick the URL-safe alphabet option to produce it — the tool also accepts either alphabet when decoding.