Menu

Base64 Encode/Decode

UTF-8 safe encoding and decoding.

Base64

Your data never leaves your device — everything runs in your browser.

How to use it

  1. Choose Encode or Decode.
  2. Paste your text or Base64 data into the box.
  3. Turn on “URL-safe” if the result will be used in a URL or file name.
  4. The result updates as you type. Press Swap to turn the output into the input and flip the mode, or Copy to take the result.

Frequently asked questions

What is Base64 used for?

Base64 turns any data into text made only of letters, digits and a few symbols. It is used for email attachments, data URLs, embedding files in JSON or HTML, and HTTP Basic authentication headers.

Is Base64 encryption?

No. Base64 is an encoding, not encryption: anyone can decode it. Never use it to protect passwords or secrets.

Why do accents or emoji come out garbled in other tools?

Some tools encode text without converting it to UTF-8 first, which breaks any character outside basic English. This tool converts to UTF-8 first, so “café” or “😀” decode back exactly as they were.

What is URL-safe Base64?

Standard Base64 uses “+” and “/”, which have special meaning in URLs. The URL-safe variant uses “-” and “_” instead and can leave out the “=” padding at the end.

Why does decoding fail?

The input contains characters that aren't part of Base64, or part of it is missing. Spaces, line breaks and missing “=” padding are fine. If the data decodes but isn't text, such as an image or file, the tool says so instead of showing garbled characters.