Base64 encode and decode
Paste text to encode it as Base64, or paste Base64 to read the original text.
Runs in your browser. Nothing is uploaded.
How to use
- Choose the direction: Text to Base64 or Base64 to text.
- Paste your input.
- Copy the output.
Good to know
- Text is handled as UTF-8, so accents, symbols and emoji survive a round trip.
- Base64 is an encoding, not encryption. Anyone can decode it.
Questions
Is Base64 secure?
No. It only changes how data is written so it can travel through systems that expect plain text. Do not use it to hide secrets.
Why does decoding fail?
The input has to be valid Base64, made of letters, digits, plus, slash and equals signs. A missing character or extra space can break it.
Why is Base64 longer than the original?
It uses 4 characters for every 3 bytes, so the result is about a third larger.
Also known as: Base64 encode, Base64 decode, Base64 converter, image to Base64.