Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 back to readable text. Unicode-safe, private, and instant.
Encode and decode without a round trip
Base64 turns binary or special-character data into plain ASCII text that's safe to drop into config files, data URLs, basic-auth headers, JWTs, and API payloads. This tool converts in both directions instantly and keeps the whole operation in your browser, so tokens and credentials never leave your machine — a real concern when the alternative is pasting a secret into an unknown website.
It's built on TextEncoder and TextDecoder, so Unicode — emoji, accented letters,
non-Latin scripts — round-trips correctly, unlike the naive btoa()/atob() snippets that
mangle anything outside plain ASCII. Decoding invalid input is handled gracefully with a clear message rather than
a cryptic error.
Encoding is not encryption
One important caveat: Base64 is fully reversible and anyone can decode it. It's for safe transport and formatting, never for hiding secrets — treat an encoded value as if it were plain text.
Frequently Asked Questions
What is Base64 used for?
Base64 represents binary or special-character data as plain ASCII text. It is common in API tokens, data URLs, email attachments, and configuration values.
Is Base64 encryption?
No. Base64 is encoding, not encryption. Anyone can decode it, so do not treat it as a secure way to hide secrets.
Does this support Unicode text?
Yes. The tool uses TextEncoder and TextDecoder so Unicode text is handled more reliably than old btoa/atob-only snippets.
More small tools for everyday web development work.