Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 to text with UTF-8 support.
Base64 Converter
How to Use This Tool
How to Use
1. Input Text: Type or paste your text (or Base64 code) into the top text area.
2. Choose Action:
- **Encode:** Converts your plain text into a Base64 string.
- **Decode:** Converts a Base64 string back into plain text.
3. Get Result: The output will appear in the bottom box. Any errors (like invalid Base64) will be shown.
What is Base64?
Base64 is a text-based encoding scheme that converts binary data (like images, files, or non-English characters) into a string of plain ASCII characters. This string is safe to transmit over systems that are designed to handle only text.
It's called "Base64" because it uses a set of 64 standard characters (A-Z, a-z, 0-9, +, and /) to represent the data.
Common Uses for Base64
- Embedding Images: You can embed an image directly into HTML or CSS using a Base64 "Data URL", which saves a network request.
- Email Attachments: Base64 is used to encode binary files (like PDFs or images) so they can be sent as part of the plain text body of an email.
- Data Transmission: It's used in APIs and JSON files to safely include complex data within a simple text field.
Base64 Character Set
The 64 characters (plus padding) used in standard Base64 encoding are:
| Type | Characters | Values |
|---|---|---|
| Uppercase Letters | A-Z | 0-25 |
| Lowercase Letters | a-z | 26-51 |
| Numbers | 0-9 | 52-61 |
| Symbols | + / | 62 and 63 |
| Padding | = | Used at the end to ensure the string is a multiple of 4. |