🌐 English

Home › Encoding & IDs

Base64 Encoder and Decoder

Turn text or files into Base64 and Base64 back into text or files. Non-Latin text stays intact.

🔒 What you enter never goes to a server — every calculation happens on your device (in your browser).

How to use

  1. Enter text and press “Encode” or “Decode”.
  2. For files, use “File to Base64” to get a data URL.
  3. Copy the result, or use “Base64 to file” to download it.

When is Base64 used?

Base64 lets data such as images travel through places that only handle text — email, JSON, data: URLs in HTML. It makes data about 4/3 larger. It isn't encryption; anyone can decode it.

URL-safe Base64

The + / = characters of standard Base64 have special meaning in URLs. URL-safe Base64 uses - and _ instead and drops the trailing =. JWTs use this form.

FAQ

My text comes out garbled

This tool uses UTF-8, so text stays intact. If Base64 from another tool is garbled, that tool probably used a different character encoding.

I want to embed an image in HTML

Use “File to Base64” to get an address starting with data:image/… and put it in an img src.

Do large files work?

Up to 20 MB.

Is my input uploaded?

No. Everything is converted in your browser.