Text or files to Base64, Base64url or a data URL, with UTF-8 support
Base64 Decoder
Paste Base64 from a log, an API or an email and see the text inside, or get the original file back with the right extension.
Loading tool…
How to use base64 decoder
Paste the Base64 text, or drop a .txt file that holds it.
Read the decoded text, or see the detected file type with a preview for images.
Download the decoded file, or copy the text.
What this tool does
- Accepts the standard and URL-safe alphabets, missing padding, line breaks and data: prefixes.
- Recognises PNG, JPEG, GIF, WebP, PDF, ZIP, MP3, WAV, MP4 and more from their first bytes.
- Shows images inline and offers any binary result as a download with the right extension.
- Points to the exact character when the input is not valid Base64.
How the result is verified
The decoded bytes are encoded to Base64 again and compared with your input (ignoring padding, line breaks and the URL-safe swap). If the last character carried stray bits that were cut off, the tool says so.
Frequently asked questions
Why do I see strange symbols instead of text?
The data is probably not text: it may be an image, compressed data or encrypted bytes. When the bytes are not valid UTF-8 the tool shows their type and a hex preview and lets you download them instead.
Is Base64 a form of encryption?
No. Anyone can decode it, as this page shows. It only makes binary data safe to carry as plain text, so never use it to hide passwords or keys.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Decode JWT claims, see expiry, verify HMAC and public key signatures
Percent-encoded URLs and parameters back to readable text
Identify files from their contents and flag wrong extensions
Text to hex bytes and hex back to text, in five output styles