Home › Base64 Encoder and Decoder
Private: nothing leaves your browser. No sign-up.
Base64 Encoder and Decoder
Encode any text to Base64 or decode Base64 back to text, right in your browser. Handles emoji and all Unicode correctly, unlike naive encoders that corrupt non-ASCII characters.
What the tool does
Encode turns text into Base64, the ASCII-safe format used in data URLs, email attachments and API payloads. Decode reverses it. Both directions run entirely in your browser.
Unicode done right
Many online encoders use btoa() directly, which throws on emoji or accented characters. This tool converts text to UTF-8 bytes first, so "Hello, 世界! 🚀" encodes cleanly and decodes back byte-for-byte.
Worked example
Encoding Hello gives SGVsbG8=. Decoding SGVsbG8= returns Hello. The trailing = is padding, which is normal.
Planning estimate only. Results use the list prices shown and may differ from your actual bill. Terms
Frequently asked questions
What is Base64?
A way to represent binary data as plain ASCII text using 64 characters (A-Z, a-z, 0-9, + and /). It is used anywhere binary must travel through text-only channels, like email or JSON.
Why does my Base64 end with = signs?
Those are padding characters. Base64 works in 3-byte groups, and the = signs fill out the last group when the input length is not a multiple of 3. They are expected and harmless.
Is Base64 encryption?
No. Base64 is an encoding, not encryption. Anyone can decode it instantly, so never use it to hide passwords or secrets.
Is my text sent to a server?
No. Encoding and decoding happen locally in your browser with JavaScript. Nothing you paste ever leaves your device.