Base64 encode and decode

To encode text in Base64, paste it and press Encode to Base64. To read Base64 text, press Decode from Base64. Base64 is an encoding, not encryption, so anyone can decode it.

  • Stays on your device

    Nothing you type is sent

  • Works as you type

    No file needed

  • Copy or download

    Nothing is saved

How it works

  1. Type or paste the text into the box.
  2. Press Encode to Base64, or press Decode from Base64.
  3. Tick the URL safe base64 option if the result will go into a web address.
  4. Take the result with the Copy text button once it appears.

Facts

Where it runs
In your browser. What you type is not sent anywhere or saved
Text encoding
UTF-8, so accents and emoji work
URL-safe Base64
Uses - and _ instead of + and /, and leaves out the = padding
Decoding
Accepts both kinds of Base64 and ignores spaces and line breaks
Errors
Says so when the input is not valid Base64, or when it decodes to data that is not text

Questions

Can someone decode Base64 without a key?

Yes. Base64 is an encoding, not encryption, so anyone can decode it and no key is needed.

Why does my Base64 show an error?

The input is not valid Base64, or it decodes to data that is not text. Check that the whole value was copied.

What is URL-safe Base64?

It is Base64 that uses - and _ instead of + and /, and leaves out the = padding. Decoding accepts both kinds.

Do accents and emoji work?

Yes. The text is handled as UTF-8, so accents and emoji encode and decode correctly.

Related tools

Advertise here

Your ad goes live as soon as the payment goes through.

How long

0 of 60

Payment is handled by Dodo Payments. You can pay by card and other methods they offer.