Base64 encode and decode

Turn text into Base64 or turn Base64 back into readable text. The result appears as you type, and accents, symbols and emoji are handled correctly.

How to base64 encode and decode

  1. Choose Encode to make Base64, or Decode to read it.
  2. Type or paste into the left box. The result appears on the right.
  3. Click Copy to put the result on your clipboard.

What is Base64?

Base64 is a way of writing any data using only 64 safe characters: the letters A–Z and a–z, the digits 0–9, plus + and /. It exists because many systems, such as email, URLs and JSON, were built for plain text and can damage other data. Encoding to Base64 lets that data travel safely, and decoding turns it back exactly as it was.

For example, Hello becomes SGVsbG8=. The = at the end is padding that rounds the length up to a multiple of four.

Where Base64 is used

  • Email attachments, which are sent as Base64 behind the scenes.
  • Data URIs that embed small images in HTML and CSS. To make one, use Image to Base64.
  • API keys and tokens, including the parts of a JWT and HTTP Basic authentication.
  • Config files such as Kubernetes secrets.

Base64 is not encryption

Anyone can decode Base64 in a second, so it hides nothing. Never use it to protect passwords or private data. It only changes how data is written, not who can read it.

URL-safe Base64

Standard Base64 uses + and /, which have special meanings in web addresses. The URL-safe version swaps them for - and _ and usually drops the padding. The decoder accepts both kinds automatically.

Your text stays on your device

Everything happens in your web browser. Nothing you type or paste is sent to a server or stored, so it is safe to use with private notes, passwords, keys and work documents. There is no sign-up and no limit.

Frequently asked questions

How do I decode Base64?

Click Decode, paste the Base64 text into the left box and the decoded text appears on the right.

Why does decoding show an error?

Either the text is not valid Base64, or it decodes to a file such as an image instead of readable text.

Is Base64 secure?

No. It is an encoding, not encryption. Anyone can decode it.

Does Base64 make data bigger?

Yes, by about a third, because every three bytes are written as four characters.