Base64 Decoder
Runs in browserDecode Base64 or Base64URL strings to plain text or download as a binary file. Handles MIME line-wrapping and PEM certificates automatically.
Last updated 02 Apr 2026
Paste a Base64 or Base64URL string to instantly decode it back to plain text. Switch to File mode to download the decoded bytes as a binary file. Handles MIME/PEM line-wrapped input, URL-safe alphabet, and missing padding. Runs entirely in your browser — nothing is uploaded.
How to use
- 1
Paste your Base64 string
Paste the Base64 or Base64URL string into the input field. Multi-line MIME or PEM-wrapped input is automatically cleaned up — no manual reformatting needed.
- 2
Select Standard or URL-safe mode
Choose URL-safe mode if your string uses - and _ instead of + and /, or if it comes from a JWT token or OAuth parameter. Missing padding is added automatically.
- 3
Read the decoded output
The decoded text appears in the output panel in real time. If the Base64 is invalid, a clear error message indicates the problem.
- 4
Copy or download the result
Click Copy to copy the decoded text to your clipboard. For binary data, switch to File mode and click Download to save the raw bytes as a file.
Frequently asked questions
Why do I get a decoding error?
Can I decode Base64 spread across multiple lines?
Is this tool safe to use? Are inputs sent to a server?
How do I decode a Base64-encoded file?
What is Base64URL and when do I use it?
What happens if the decoded output is binary data?
Can I decode a data URI with this tool?
What is the difference between Base64 and Base64URL?
Why does my decoded text look garbled?
Decode Base64 or Base64URL strings back to human-readable text or raw
binary files, entirely in your browser.
**Text decode:** Paste any Base64 string — including MIME-wrapped (76 chars
per line) and PEM certificate blocks — and get the original UTF-8 text
instantly. Whitespace and newlines are stripped automatically so copy-pasted
multi-line Base64 works without manual cleanup.
**Base64URL decode:** Toggle URL-safe mode to handle tokens where `+` is
replaced by `-` and `/` by `_`. Missing `=` padding is restored automatically.
Use this for JWT tokens, OAuth state parameters, and URL-embedded data.
**File decode:** Switch to File mode, paste a Base64 string, and click
Download to save the raw bytes as a file. Recover images, PDFs, or binary
data embedded in JSON payloads or data URIs.
**Data URI decode:** Paste a full `data:image/png;base64,...` URI to extract
and download the embedded file directly.
Character and byte counts are displayed below the output. All processing
is client-side — your data never leaves your device.
Related tools
Base64 Encoder
Encode text or binary files to Base64 or Base64URL. Supports MIME line wrapping, data URIs, and files up to 50 MB. Fully browser-based.
Base64 Encoder/Decoder
Encode text or files to Base64 or decode Base64 strings back to plain text — real-time, fully in your browser.
JWT Decoder
Decode and inspect JWT tokens — view header, payload, claims, and expiry status without sending data to any server.
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from text or files instantly in your browser.
Morse Code Decoder
Decode Morse code dots and dashes back to plain text. Supports full ITU alphabet including letters, digits, and punctuation. Audio playback available.