Base64 Encoder and Decoder

Encode text to Base64 or decode Base64 back to text.

About this tool

Base64 is a way to write binary data using only plain letters, digits, plus, slash and equals signs. Many systems can only safely carry plain text, so Base64 is used to include data in emails, web pages, JSON files and web tokens. This tool encodes text to Base64 and decodes it back.

How to use it

To encode, type or paste ordinary text and press Encode. The Base64 version appears below. To decode, paste Base64 text and press Decode. If the input is not valid Base64, or the decoded bytes are not readable UTF-8 text, the tool tells you instead of showing garbage.

Unicode support

Text is first converted to UTF-8 bytes, so accented letters, Arabic, Chinese and emoji encode and decode correctly. Some simple encoders break on such characters. If you decode data that holds an image or a file, the result is not text, and this tool will report that it cannot show it.

What Base64 is not

Base64 is not encryption. Anyone can decode it in a second, so never use it to hide passwords or private data. It only changes how data is written. It also makes data about one third larger, since three bytes become four characters.

Common places you see it

Data URLs in web pages embed small images as Base64. The two dots in a JSON Web Token separate three parts, and the first two are written in a URL-safe form of Base64. Email attachments are sent in Base64. Basic authentication headers contain a user name and password joined by a colon, then Base64 encoded, which is another reason it must be used only over secure connections.

Padding and variants

The equals signs at the end are padding that makes the length a multiple of four. The URL-safe variant swaps plus and slash for minus and underscore, and may leave out padding. This tool uses the standard form.

Privacy

Encoding and decoding run in your browser. Your text is never sent anywhere.

Frequently asked questions

Is the base64 encoder and decoder free to use?

Yes. The base64 encoder and decoder on QuickKit is free, needs no signup and has no usage limit.

Is my data safe when I use the base64 encoder and decoder?

Yes. The base64 encoder and decoder runs in your browser. What you enter is processed on your device and is not uploaded to a server.

Does the base64 encoder and decoder work on a phone?

Yes. The page is built to work on phones, tablets and desktop browsers without installing anything.

More free tools