Base64 Encoder/Decoder
Encode and decode Base64 strings with full Unicode support
How to Encode and Decode Base64
Converting text to and from Base64 is simple with this free online tool:
- Select your mode -- choose "Encode" to convert text to Base64, or "Decode" to convert Base64 back to readable text.
- Enter your input -- paste or type your text (or Base64 string) into the input area.
- Click Convert -- the result appears instantly in the output area.
- Copy the result -- click the Copy button to save it to your clipboard.
Everything runs entirely in your browser -- no data is sent to any server, so your content stays private.
What is Base64 Encoding?
Base64 is a binary-to-text encoding scheme that represents binary data using a set of 64 printable ASCII characters (A-Z, a-z, 0-9, +, and /). It was designed to safely transmit binary data over channels that only support text, such as email (MIME) and URLs.
The encoding works by taking groups of three bytes (24 bits) and splitting them into four 6-bit
values, each mapped to a character in the Base64 alphabet. If the input length isn't a multiple of
three, padding characters (=) are appended to the output.
This tool handles Unicode text by first encoding the input as UTF-8 bytes using the
TextEncoder API, then converting those bytes to Base64. Decoding reverses the process,
ensuring full support for accented characters, emoji, and any Unicode text.
Frequently Asked Questions
What is Base64 used for?
Base64 is commonly used to embed binary data in text-based formats. Typical use cases include encoding images or files as data URIs in HTML/CSS, transmitting binary attachments in email (MIME), encoding credentials in HTTP Basic Authentication headers, and storing binary data in JSON or XML payloads. It is also widely used in APIs and configuration files where binary-safe transport is needed.
Does Base64 encrypt data?
No. Base64 is an encoding, not encryption. It transforms data into a different representation but provides zero security -- anyone can decode a Base64 string instantly. Never use Base64 to hide sensitive information like passwords, API keys, or personal data. If you need to protect data, use proper encryption (e.g., AES or RSA) instead.
Can Base64 handle special characters?
Yes. This tool fully supports Unicode, including accented characters (e.g., cafe), CJK characters, emoji, and other multi-byte sequences. The input text is first encoded to UTF-8 bytes before Base64 encoding, and decoding reverses this process, preserving all characters accurately.