Encode and decode Base64 in seconds

Turn text or images into Base64, or turn Base64 back into text or a picture. It all happens in your browser, so nothing is uploaded.

Convert your text

Pick a direction, then type or paste. The result updates as you go.

Input–characters
Output–characters
Size change–vs input

Try an example

Tap one to load it into the tool.

Where you will see it

Base64 turns any data into plain, safe text.

  • Email attachments
  • Small images inside HTML and CSS
  • Login tokens and API headers
  • Config files and web addresses

What is Base64?

A way of writing data using only 64 safe characters: letters, numbers, + and /. That lets it travel through systems that only handle plain text.

It is not encryption

Anyone can decode Base64, so it hides nothing. Never use it to protect passwords or private information.

Why the result is longer

Base64 uses four characters for every three bytes of input, so the output is about a third larger than the original.

The Encode and Decode tabs handle text, including emoji and accented letters. Use the Image tab for pictures. Base64 suits small images such as icons, because it makes files about a third bigger.