noupload
0 bytes uploadedNothing processed yet

Encode and decode Base64 on your device

Turn text or a file into Base64, or decode Base64 back into what it was. It works with accents and emoji, and with files, and it all stays on your device.

  • No sign-up
  • No watermark
  • No daily limits
  • Works on phones too
  • Data sent by this page: 0 bytes
What do you want to do?

The file is read on your device. The result is the file's contents as Base64 text.

How to encode and decode Base64

  1. Choose Encode or Decode.
  2. Type or paste your text. To encode a file, choose it under Or encode a file.
  3. Read the result on the right. Tick URL-safe if the result goes into a web address or a token.
  4. Press Copy, or Download decoded file if the Base64 held a file and not text.

Questions people ask

What is Base64 for?

It writes any data, including files, using only 64 safe characters so it can travel through systems built for plain text, such as email, JSON and web addresses. It is encoding, not encryption, so anyone can decode it.

Is Base64 a way to hide or protect data?

No. Anyone can decode it in a second, so it gives no secrecy. Use real encryption for secrets. Base64 only changes how the data is written.

What does URL-safe mean?

Standard Base64 uses plus and slash, and often ends with equals signs, which have special meanings in web addresses. The URL-safe form swaps them for hyphen and underscore and leaves the padding off.

Why does decoding some Base64 show no text?

The data is probably a file, such as a picture or a PDF, and not text. The page says so and offers Download decoded file instead.

Does it handle accents and emoji?

Yes. Text is turned into UTF-8 before it is encoded, and decoded the same way, so letters with accents, other alphabets and emoji survive the round trip.

Why does the Base64 version come out larger?

Base64 turns every 3 bytes into 4 characters, so the result is about a third bigger than the original. That is the price of using only safe characters.

Is what I paste sent anywhere?

No. Encoding and decoding happen in your browser. Files are read on your device and are not uploaded.