Encode plain text to Base64 or decode Base64 strings back — in real time, no page reload needed.
Base64 encoding converts binary or text data into a safe ASCII string — commonly used when embedding images in HTML/CSS, passing data through URLs, or storing credentials in config files. If you're a developer working with APIs, email attachments, or JWT tokens, you'll run into Base64 constantly.
This tool works just as well for non-developers. Need to decode a mysterious string you found in a config file or a web request? Paste it in, flip to Decode mode, and you'll see the original text instantly. It handles Unicode and Chinese characters too, so no garbled output.
Input: myuser:s3cr3tP@ss
Base64 Output: bXl1c2VyOnMzY3IzdFBAc3M=
Use it as: Authorization: Basic bXl1c2VyOnMzY3IzdFBAc3M=
Input: eyJ1c2VyIjoiYWxpY2UiLCJyb2xlIjoiYWRtaW4ifQ==
Decoded Output: {"user":"alice","role":"admin"}
No. Base64 is encoding, not encryption. Anyone with this tool can decode a Base64 string immediately. Don't use it to hide sensitive data — use proper encryption like AES for that.
The input might not be valid Base64, or it could be encoding binary data (like an image) rather than text. This tool is designed for text content. Binary files need a different approach.
Yes. The tool uses UTF-8 encoding under the hood, so Chinese, Japanese, Arabic, emoji, and other Unicode characters all encode and decode correctly.
No. Everything runs locally in your browser using native JavaScript. Nothing you type is transmitted anywhere — safe to use with sensitive strings.
Base64 works in 3-byte chunks. If the input isn't a multiple of 3 bytes, "=" characters are added to pad the output to the correct length. It's normal and expected.