Base64 Encoder / Decoder
Convert text to and from Base64 — Unicode-safe, entirely in your browser.
What is Base64?
Base64 represents binary data using 64 printable ASCII characters, letting arbitrary bytes travel safely through text-only channels — email attachments, JSON strings, data URIs, HTTP basic auth headers. It is an encoding, not encryption: anyone can decode it, so never use it to protect secrets.
Unicode handling
Naive JavaScript btoa() fails on characters outside Latin-1 (emoji, accents, CJK). This tool encodes text as UTF-8 bytes first, so any text round-trips correctly — the same behavior as base64 on Linux or macOS.
Frequently asked questions
Why does my Base64 string end with = signs?
Padding. Base64 works in blocks of 3 input bytes producing 4 output characters; when the input length isn't a multiple of 3, one or two = characters pad the final block.
Is Base64 encryption?
No. It's a reversible encoding with no key — anyone can decode it instantly. Use real encryption for anything sensitive.