Base64 Encode & Decode
Encode text or binary data to Base64 format or decode Base64 strings back to original text. Full UTF-8 Unicode support ensures proper handling of international characters. All processing runs locally in your browser.
How it works
What is Base64 Encoding?
Base64 is an encoding scheme that converts binary data into ASCII text format. It's commonly used to embed binary data in text-based formats like JSON, XML, or email attachments. Base64 encoding uses 64 characters (A-Z, a-z, 0-9, +, /) to represent binary data.
How to Use the Base64 Encoder/Decoder
Enter your text in the input area and click "Encode" to convert it to Base64 format. Click "Decode" to convert a Base64 string back to readable text. The result appears in the output area, ready to copy.
Example 1: Encoding Plain Text
Input: Hello World
Encoded: SGVsbG8gV29ybGQ=
The text is converted to Base64 format, which can be safely transmitted in text-based protocols.
Example 2: Encoding Unicode Characters
Input: café
Encoded: Y2Fmw6k=
Our tool properly handles UTF-8 Unicode characters, ensuring accented characters and international symbols are encoded correctly.
Example 3: Decoding
Input: SGVsbG8gV29ybGQ=
Decoded: Hello World
Common Use Cases
Base64 encoding is used in many scenarios:
- Data URIs: Embed images directly in HTML/CSS
- API Authentication: Encode credentials in HTTP headers
- Email Attachments: Encode binary files for email transmission
- JSON Data: Store binary data in JSON strings
- URL Parameters: Encode data for URL transmission
UTF-8 Unicode Support
Our Base64 encoder and decoder fully support UTF-8 Unicode characters. This means you can safely encode and decode text containing:
- Accented characters (é, ñ, ü)
- International symbols (€, £, ¥)
- Emojis and special characters
- Text in any language
Privacy & Security
All encoding and decoding happens locally in your browser. Your data is never sent to any server, ensuring complete privacy and security for sensitive information.