Base64 Decode
ED-28Paste a Base64 string to get the text it holds. If the bytes are not text, switch to hex to see them. Standard and URL-safe Base64 both work, with or without padding.
Runs in your browser. Nothing is uploaded.
Base64 or Base64URL
Decoded
How to use it
- Paste the Base64 string into the input box. A data: prefix at the start is removed for you.
- Click Decode to text to read the bytes as UTF-8 text.
- If you get a "not valid UTF-8" error, the data is binary. Click Decode to hex instead.
- Copy the result or download it as a .txt file.
What gets decoded
Base64 writes bytes using 64 printable characters, so decoding gives the original bytes back. This tool accepts the standard alphabet (+ and /) and the URL-safe one (- and _), ignores spaces and line breaks, and treats the = padding at the end as optional. It will not accept a mix of both alphabets in one string, because that usually means the string was damaged or joined from two sources.
Text or binary data
Decode to text reads the bytes as UTF-8, which covers ASCII, accented letters, CJK text and emoji. A JPEG, a ZIP file or text saved in another character set is not valid UTF-8, and the tool tells you instead of showing garbage. For those, Decode to hex lists every byte so you can look at the header, such as FF D8 for a JPEG. Saving the bytes as a file is not something this page does.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
Invalid Base64 character | A character is not in the Base64 or Base64URL alphabet. | Fix the character at the line and column shown, or remove text around the string. |
The bytes are not valid UTF-8 text | The decoded bytes are not text in UTF-8, so they are probably a file or another encoding. | Use Decode to hex to see the raw bytes. |
Nothing to decode | The input box is empty. | Paste a Base64 string and try again. |
Questions people ask
How do I decode a Base64 string?
Paste it into the input box and click Decode to text. The tool turns each group of four characters back into three bytes and reads them as UTF-8. If the string came from a URL or a JWT, the URL-safe form is detected automatically.
Why does Base64 decode show an error about UTF-8?
It means the decoded bytes are not valid UTF-8 text. This is normal for images, PDFs, archives and text in encodings such as Latin-1. Use Decode to hex to inspect the bytes, or decode the data in a tool that saves files.
Does Base64 decoding need the equals signs at the end?
No. The = signs only pad the length to a multiple of four. This tool accepts strings with the padding, with part of it, or without it, as long as the number of characters can hold whole bytes.
Can I decode a data URI?
Yes for the Base64 part. If the input starts with data: and ends the prefix with ;base64, the prefix is removed and the rest is decoded. The tool shows the bytes as text or hex and does not display images.
Is Base64 encryption?
No. Base64 only changes how bytes are written so they survive systems that expect text. Anyone can decode it without a key, so never use it to hide a password or a secret.
About this tool
Reads standard Base64 and the URL-safe form, with or without = padding, and ignores spaces and line breaks. A leading data: prefix such as data:text/plain;base64, is removed. Decode to text reads the bytes as UTF-8; if they are not valid UTF-8 (an image, an archive, text in another encoding) it says so and you can use Decode to hex to see the raw bytes. The tool does not save files, detect file types or try other character sets. Mixed alphabets, bad characters and impossible lengths are reported with their position.