Base64 Encoder / Decoder
Encode or decode Base64 strings instantly, with full Unicode (UTF-8) support. Works offline — nothing is sent to a server.
Runs entirely in your browser — no uploadsAbout this tool
Base64 Encoder/Decoder converts text to Base64 and back with correct UTF-8 handling, so emojis and non-Latin scripts round-trip perfectly.
Invalid Base64 input is detected and clearly flagged instead of producing garbage. All conversion is local JavaScript.
How to use it
Paste plain text into the encode side to get its Base64 representation, or paste a Base64 string into the decode side to read the original text. Copy the result with one click. Input that is not valid Base64 is flagged rather than silently turned into meaningless characters, which saves a lot of confusion when a string has been truncated or padded incorrectly.
What Base64 is actually for
Base64 represents binary bytes using 64 printable characters, so data can travel through systems that only accept text. You will meet it in email attachments, in data URLs embedded in CSS or HTML, in authentication headers, and in configuration values that need to survive a JSON round trip. This tool handles the text end of that job: it converts strings, not files.
Why UTF-8 handling matters
The browser’s original atob and btoa functions assume single-byte characters and corrupt anything outside Latin-1. Here the text is encoded to UTF-8 bytes first and decoded back the same way, so accented letters, Cyrillic, Japanese, and emoji survive a round trip. A short string like “café ☃” is a quick way to check that a pipeline is handling Unicode correctly.
Honest limitations
Base64 is an encoding, not encryption. Anyone can decode it, so never use it to hide a password or token. Decoding arbitrary binary data such as a complete image file is outside this tool’s scope — it works with text. Encoded output is roughly a third larger than the original, which matters for large strings. Everything runs locally in your browser, and nothing you paste is stored or transmitted.