Skip to content
Text Cleanup Tools

Text Cleanup Tools › Encode and decode

Base64 Encoder and Decoder

Convert text to Base64 and back. Handles accents and emoji correctly, and offers the URL-safe version.

Processed on your device. Nothing is uploaded or stored on a server.

How it works

  1. Paste the text, or the Base64 string you want to decode.
  2. Choose encode or decode, and tick URL-safe if you need the version for addresses and tokens.
  3. Copy the result.

Example

Before
Café menu: 3 courses
After
Q2Fmw6kgbWVudTogMyBjb3Vyc2Vz

What this tool does

Base64 writes any data using only 64 plain characters (letters, digits, + and /), plus = as padding at the end. It is used to carry data through systems that only handle text, such as email attachments, data URLs and parts of web tokens. Text is converted to UTF-8 bytes first, so accented letters and emoji encode and decode correctly. The URL-safe version swaps + and / for - and _ and leaves out the padding, so it can sit inside an address without escaping. When decoding, line breaks and spaces inside the string are ignored, and both alphabets are accepted. Base64 is an encoding, not encryption: anyone can decode it, so it does not protect a secret. If the decoded bytes are not text, such as an image, the tool says so rather than showing noise.

Common problems

It says the text is not valid Base64

Check that you copied the whole string and nothing else. Only letters, digits, + / - _ and = padding are allowed, and the length cannot leave a single stray character.

The decoded result is not text

The Base64 holds binary data such as an image or a file. This tool only shows text results.

Questions

Is Base64 a way to hide a password?

No. It is trivially reversible. Use real encryption or hashing for secrets.

Why is the Base64 version longer?

Every three bytes of input become four characters of output, so the result is roughly a third larger.

Does it support emoji and accents?

Yes. Text is handled as UTF-8, so non-English characters survive a round trip.

Related tools

Guides

Last reviewed 2026-10-14.