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.
| Encoding | Alphabet | URL-safe | Size overhead | Typical use |
|---|---|---|---|---|
| Base64 | A–Z a–z 0–9 + / = | No | ~+33% | Email attachments, data URIs, HTTP Basic auth |
| Base64URL | Base64 with - and _, padding optional | Yes | ~+33% | JWTs, URL parameters, cookie values |
| Hex | 0–9 a–f | Yes | +100% | Debugging, checksum display, short binary blobs |
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.