Base64 Encode and Decode

Encode text or files to Base64 and decode Base64 back to text.

I want to

 

Use this tool on EWD Labs

This copy of the tool can't run here. Open the original, free version instead.

Open Base64 Encode and Decode

Runs in your browser. Nothing you type is uploaded.

How to use the Base64 tool

  1. Choose Encode to turn text into Base64, or Decode to turn Base64 back into text.
  2. Type or paste into the box. The result updates as you type.
  3. Press Swap to send the result back the other way.

Any language and emoji work, because text is converted to UTF-8 first. Tick URL-safe for Base64 that can go in a web address or a JWT. To embed an image or font in CSS or HTML, use Encode a file to get a data URL.

What is Base64?

Base64 writes any data using only 64 safe characters: A to Z, a to z, 0 to 9, + and /. Email attachments, data URLs and many APIs use it to carry binary data as plain text. The result is about a third larger than the original.

Base64 is not encryption. Anyone can decode it, so never use it to hide passwords.

Example

Hello, India! encodes to SGVsbG8sIEluZGlhIQ==. The == at the end is padding.

Frequently asked questions

Is Base64 encryption?

No. Base64 only changes how data is written. Anyone can decode it, so don't use it to hide passwords or secrets.

What is URL-safe Base64?

It swaps + and / for - and _ and drops the = padding, so the result can go in a web address. JWTs use it.

Why does decoding show binary data?

The Base64 holds a file, such as an image, not text. Press Download to save it.

Does it work with Hindi and emoji?

Yes. Text is converted to UTF-8 before encoding, so every language and emoji round-trips correctly.