π Base64 Encoder/Decoder
Encode plain text to Base64 or decode Base64 back to plain text. Runs entirely in your browser.
Input
Output
Ready β enter text and choose Encode or Decode
Frequently Asked Questions
What is Base64 used for?
Base64 encodes binary data as ASCII text, enabling safe transmission of binary content through text-only protocols. It is commonly used for embedding images in HTML and CSS (inline data URIs), transmitting binary data in JSON APIs, encoding credentials in HTTP Basic Authentication headers, and handling file uploads that require text representation.
How do I encode text to Base64?
Paste your text into the input box and click the "Encode to Base64" button. The tool converts your text to UTF-8 bytes first, then applies Base64 encoding, ensuring full Unicode support including Chinese characters, emoji, and special symbols. The encoded output will appear in the output box ready to copy.
How do I decode Base64 back to text?
Paste your Base64 string into the input box and click "Decode to Text." The tool will interpret the Base64 string and convert it back to the original text encoding. If the decoded result contains UTF-8 characters like Chinese or emoji, they will display correctly in the output.
Is my data sent to a server?
No. All encoding and decoding happens entirely in your browser using JavaScript. Your data never leaves your device, making this tool completely private and secure for sensitive content. This is especially important when working with API keys, passwords, or confidential data.
What keyboard shortcuts are available?
Press Ctrl+Enter (or Cmd+Enter on Mac) to quickly encode the current input. This shortcut works when focus is on the input field, allowing for rapid encoding without reaching for your mouse.
What formats are supported for input?
The tool accepts plain text, Unicode characters, and standard Base64 strings. Both standard Base64 (A-Z, a-z, 0-9, +, /) and URL-safe Base64 variant (using - and _) can be decoded. The tool handles padding automatically and is tolerant of whitespace in input.