Base64 Decode Online — Free Base64 to Text Decoder
Free online Base64 decoder — decode Base64 strings back to plain text instantly in your browser. Validates input and shows decoded payload size.
Updated November 2026
Reviewed by Rafael Duarte
How to decode Base64 online
Three steps, no sign-up
1. Paste the string
Raw Base64, Base64URL, or a full data URL — the data:...;base64, prefix is stripped automatically.
2. See the result instantly
Decoding runs as you type and flags whether the string is valid; missing = padding is filled in for you.
3. Copy or download
Text goes straight to your clipboard; binary content (PDF, XLSX, image…) turns into a file with the correct extension.
What this Base64 decoder does
More than plain-text decoding
Decodes to UTF-8 correctly
Uses TextDecoder on the actual bytes instead of raw atob() — accented letters and emoji come out intact.
Detects binary files
Reads the magic bytes of the decoded output and recognizes PDF, PNG, JPEG, GIF, WebP, ZIP (XLSX/DOCX/PPTX), XLS, and GZIP.
Downloads the original file
When the content is binary, a Download file button saves the result with the right extension already filled in.
Strips the data URL prefix
Paste data:application/pdf;base64,... directly — the data:<mime>;base64, prefix is removed automatically before decoding.
Fixes Base64URL and padding
Swaps -/_ for +// and fills in missing = characters before decoding, so JWTs and URL-safe strings just work.
Runs 100% in your browser
Nothing is sent to a server — decoding happens locally, including while offline.
Examples
What goes in, what comes out
When you'll reach for this tool
The most common scenarios among people who use it
PDF returned by an API
An invoice or contract comes back as a string inside a JSON response. Paste it and download the real PDF.
XLSX spreadsheet
Financial reports and integrations often return Excel files encoded as Base64.
JWT payload
Paste the middle segment of a token to read its claims: user, expiration, and roles.
Automation webhooks
n8n, Zapier, and Make deliver attachments as Base64. Inspect them before you act on the data.
CI/CD secrets
Check the value stored inside a Kubernetes secret or a GitHub Actions secret.
MIME email attachments
Bodies and attachments inside .eml files are Base64-encoded. Decode and download them.
Nothing decoded? Start here
The most common reasons a Base64 string won't decode
Base64URL string
The - and _ used by JWTs and URL parameters are converted automatically. If it still fails, paste a single segment of the token: a full JWT has . dots between its parts, and a dot isn't Base64.
Missing padding
Stripped trailing = characters aren't a problem — the tool restores the padding itself. If the error persists, the string was most likely cut off while copying.
Hidden whitespace
Copying from PDFs or rich-text editors sometimes carries invisible characters along. Paste as plain text instead.
Characters outside the Base64 alphabet
The standard alphabet is only A–Z, a–z, 0–9, +, /, and = (plus - and _ in Base64URL). Spaces and line breaks are ignored, but a stray %, quote, or comma breaks the decode.
Why decode Base64 here
Decoding happens entirely in your browser — no byte leaves your machine, and the page keeps working offline once it's loaded.
Unlike atob() in the console, this tool already handles UTF-8, Base64URL, missing padding, and file-type detection — you don't have to remember any of those edge cases every time. And even though everything stays local, if your security policy forbids pasting production secrets into online tools, use your browser console or a local CLI instead.
Quick Tools vs. the alternatives
They all decode; not all of them handle everything
Frequently asked questions
Paste the Base64 string — raw or with the data:application/pdf;base64, prefix, both work. The tool detects the PDF's magic bytes and shows a Download file button so you get back the original document.
Paste the string. XLSX is a ZIP archive internally; on top of the ZIP signature, the tool looks for the Office structure ([Content_Types].xml and the xl/ folder) and suggests the .xlsx extension — DOCX and PPTX work the same way.
The content is binary, not text — most likely a PDF, image, or Office document. The tool detects this automatically and swaps the text output for a download button instead of printing garbled characters.
Yes. The data:...;base64, prefix is stripped automatically before decoding, so you can paste full data URLs directly without trimming anything yourself.
The most common cause is extra characters — quotes, commas, or symbols like % copied along with the string. Spaces, line breaks, missing = and Base64URL's -/_ are already handled automatically; if the string came from a JWT, paste one segment at a time (without the dots).
Decoding runs entirely in your browser — nothing is sent to a server, and the page keeps working offline once loaded. That said, if your company's security policy forbids pasting production secrets into web tools, use your browser console or a local CLI instead.
References
Related Tools
- Base64 Encoder: Encode Text, PDF & Files Online Developer Encode UTF-8 text or any file (PDF, DOCX, XLSX, ZIP up to 50 MB) to Base64 or Base64URL. Runs in your browser, nothing is uploaded. Free, no sign-up.
- Base64 to Image Online: Preview and Save PNG, JPG, GIF Developer Paste raw Base64 or a data:image URL to preview the image with its type, dimensions and size, then save the original file. No upload, runs in your browser.
- HTML Entity Decoder: Unescape HTML to Plain Text Developer Paste text with <, &, " or ' and get plain text back. Decodes every HTML5 named entity plus decimal and hex references, in your browser.
- Image to Base64 Converter: Data URI, HTML & CSS Developer Drop a PNG, JPG, WebP, GIF or SVG up to 20 MB and copy raw Base64, a data URL, an <img> tag or a CSS url(). Runs in your browser, nothing uploaded.
- URL Decoder: Turn %20, %2F & %C3%A9 Back Into Text Developer Paste a percent-encoded URL or query string and read it as plain text: %20 becomes a space, %C3%A9 becomes é, and + in a query becomes a space.