Base64 Converter

Encode text to Base64 or decode Base64 back to text. Supports UTF-8 characters.

Base64 vs Base64URL vs Hex

All three encode binary data as text, but they trade off URL safety against size.

EncodingAlphabetURL-safeSize overheadTypical use
Base64A–Z a–z 0–9 + / =No~+33%Email attachments, data URIs, HTTP Basic auth
Base64URLBase64 with - and _, padding optionalYes~+33%JWTs, URL parameters, cookie values
Hex0–9 a–fYes+100%Debugging, checksum display, short binary blobs

Full guide: Base64 vs URL encoding

About Base64 Converter

What is Base64 encoding?

Base64 is an encoding scheme that converts binary data into ASCII text. It is commonly used to embed data in URLs, emails, and JSON.

Is Base64 encryption?

No. Base64 is encoding, not encryption. It does not provide security. Anyone can decode it.

Does this support Unicode/UTF-8?

Yes. This tool properly handles UTF-8 characters, including emoji and non-Latin scripts.

Why does my encoded string end with an equals sign?

That is padding, not an error. Base64 encodes bytes in groups of three, so when your text does not divide evenly the final group is padded with = (or == if two bytes were left over). Decoders ignore it.

Can I encode an image or other file here?

Not directly. This page works with text: paste the text you want to encode, or a Base64 string you want to decode. Turning a file into Base64 means reading it as bytes first, which a text box cannot do.