Files converted in total: 0 (0 GB)Today: 0 (0 GB)

Base64: encode and decode text and files

Turn text into Base64 and Base64 into text, or convert a whole file to Base64 or a data URI, all in your browser.

Guide: Base64: encode and decode text and files

When to use it

To embed an image directly in HTML or CSS, send binary data inside a JSON or an email, or read a value that arrives encoded.

Tips

  • Base64 is not encryption: anyone can decode it. It does not protect passwords.
  • The result is about 33% larger than the original.
  • The URL-safe variant swaps + and / for - and _, and is the one JWT tokens use.
  • Accents and emoji encode correctly because the text is converted to UTF-8 first.

Frequently asked questions

Why does it end in = or ==?

It is padding so the length is a multiple of 4. You can remove it with the “No padding” option; when decoding it is added back automatically.

Is my text or file uploaded?

No. The conversion happens in your browser and does not leave your device.