Tool
Base64 Encoder / Decoder
Encode UTF-8 text to Base64 or decode Base64 back to UTF-8 text.
Try it
This tool runs entirely in your browser. Nothing you type or paste is sent anywhere.
Encoded 5 character(s) of UTF-8 text to Base64.
How it works
- Read the input as UTF-8 bytes.
- Applied the Base64 alphabet (A-Z, a-z, 0-9, +, /) with '=' padding.
- Produced 8 character(s) of output.
- Base64 is an encoding, not encryption; it provides no confidentiality.
Usage
- Choose encode or decode.
- Paste the text or Base64 value.
- Read the converted output.
Examples
Encode ASCII
{
"mode": "encode",
"value": "hello"
}Round-trip Unicode
{
"mode": "encode",
"value": "héllo 🌍"
}Decode
{
"mode": "decode",
"value": "aMOpbGxvIPCfjI0="
}Limitations
Where Base64 is appropriate
Base64 is for carrying binary data through channels that expect text, such as JSON fields or data URLs. It is deliberately not for hiding information: the alphabet is public and anyone can decode it.
Frequently asked questions
- Why does the encoded length grow?
- Base64 represents every three bytes as four characters, so the encoded form is about one third larger.
- Is URL-safe Base64 supported?
- This tool uses the standard alphabet. Replace '+' with '-' and '/' with '_' for URL-safe variants after encoding.