Developer

Base64 Encode & Decode

Need to turn text into Base64, or read a Base64 string? Paste it and get the result at once. Accents and emoji work.

Characters in: 0 · Characters out: 0

Your text stays on your device. Encoding and decoding happen in your browser, and nothing is sent anywhere. Base64 is not encryption: anyone can decode it.

How to use it

  1. Choose Encode or Decode.
  2. Type or paste your text. The result updates as you type.
  3. Copy the result, or press “Use result as input” to run it through again.

What Base64 is

Base64 writes any data using only 64 safe characters: A to Z, a to z, 0 to 9, plus + and /. Every 3 bytes become 4 characters, so the result is about one third bigger. It is used when data has to travel through something that only handles plain text, such as an email, a JSON file, a data URL or a web address.

It is not encryption

Base64 hides nothing. It is a format, not a lock. Never use it to protect a password or a secret. If a value looks like random letters and ends with one or two = signs, it is often Base64, and it can be read by anyone.

Emoji, accents and other languages

Text is first turned into UTF-8 bytes, then into Base64. That is why characters like é, 世界 and emoji survive a round trip. Older tools that skip this step fail on anything outside plain English letters.

URL-safe Base64

The normal alphabet has + and /, which have special meaning in web addresses. The URL-safe version swaps them for - and _ and usually drops the = padding. JSON Web Tokens use it. When decoding, this tool accepts both versions and missing padding.

Tested, not guessed

Every number below comes from running this tool, not from a guess.

Example

This text, with a Chinese word and an emoji:

Hello, 世界 😀

Becomes: SGVsbG8sIOS4lueVjCDwn5iA

URL-safe mode changes the characters + and / to - and _. For example the text subjects?_d=1>> gives c3ViamVjdHM/X2Q9MT4+ normally and c3ViamVjdHM_X2Q9MT4- URL-safe.
If you decode SGVsbG8$ the tool tells you: The character "$" is not part of Base64.

Limits

  • Text only. Decoded data that is not valid UTF-8 text is reported, not shown.

Frequently asked questions

Can I decode an image or a file?

This tool shows text. If the decoded data is not text, it tells you so instead of showing garbage.

Why does the result end with = signs?

Padding. It fills the last group up to 4 characters. URL-safe mode removes it.

Is my text uploaded?

No. Everything runs in your browser.

Why does decoding fail?

Usually a character is missing or was added, such as a stray quote. The message tells you which character is not allowed.

Scroll to Top