Base64 Encoder & Decoder
Base64 turns binary data into plain ASCII text so it can travel through systems that only handle text — email attachments, data URLs, API payloads. This tool encodes and decodes with full UTF-8 support, entirely in your browser.
How to use
- Type or paste text into the input area.
- Click Encode to convert it to Base64, or paste Base64 and click Decode.
- Use Copy to take the result with you.
Frequently asked questions
What is Base64 used for?
Embedding images in CSS or HTML as data URLs, encoding credentials in HTTP basic auth headers, safely transmitting binary data in JSON or XML, and encoding email attachments.
Is Base64 encryption?
No. Base64 is an encoding, not encryption — anyone can decode it instantly. Never use it to hide secrets; it only changes the representation of data.
Why do some tools fail on emojis or Chinese text?
They use the naive btoa() approach that only handles Latin-1 characters. This tool converts through UTF-8 first, so all Unicode text — including emojis — encodes correctly.