Base64 Encode / Decode
Convert text to Base64 and back, with full Unicode support.
What this tool does
Base64 turns data into a string of letters and numbers so it can travel safely through systems that only handle text. If you have ever seen a long scrambled-looking string ending in "=", this is what made it — and this tool both creates and reads them.
How to use this tool
- 1
Choose the direction
Encode turns readable text into Base64; decode turns Base64 back into text.
- 2
Paste the input
For decoding, paste the whole string including any trailing equals signs.
- 3
Copy the output
The result is plain text you can paste into JSON, a data URI or an email header.
When to use it
- You need to embed a small image directly into HTML or CSS as a data URL.
- You are debugging an API payload that arrived as an encoded string.
- You want to send a piece of text through a system that accepts only plain text characters.
- You are learning how Base64 works by encoding and decoding your own examples.
How to understand this tool
Base64 rewrites bytes using 64 printable characters so that binary data can travel through channels that only accept text, such as JSON, email and data URIs. It is not encryption and provides no protection: anyone can decode it, and the result is roughly a third larger than the original.
What it will not do
- It does not compress anything, so it makes the payload bigger.
- Decoding fails if the string was truncated or had characters removed.
Questions people ask
Is Base64 secure?
No. It is a way of representing data, not protecting it. Use real encryption for anything sensitive.
Why does my encoded string end in "="?
Those are padding characters used so the length works out in groups of four. They are normal.
One thing worth knowing
Encoding is not encryption. It changes representation, not confidentiality — never use it to hide sensitive data.