Base64 Decoder

Base64 Decoder

Free online Base64 decoder — decode Base64 strings back to plain text instantly in your browser. Validates input and shows decoded payload size.

Updated June 2026

Shift + Enter to Copy · Shift + for tabs
Base64 Input
0 characters
Decoded Output
Speed
Privacy
Local Only
Size
0 KB

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 or missing padding.

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

Base64 input
Decoded output
SGVsbG8=
Hello
aGVsbG8gd29ybGQ=
hello world
eyJ1c2VyIjoiYWRtaW4ifQ==
{"user":"admin"}
Y2Fmw6k=
café
JVBERi0x...
PDF/ZIP/XLSX binary — download button appears

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

If it came from a JWT or a URL parameter, swap - for + and _ for / before pasting.

Missing padding

Some systems strip the trailing = characters. Add them back until the length is a multiple of 4.

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 =. A stray % or space 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

Quick Tools
atob() in console
base64 CLI
UTF-8 with accents and emoji
yes
breaks
yes
Automatic Base64URL support
yes
no
with a flag
Fixes missing padding
yes
no
no
Detects file type and downloads
yes
no
manual
Nothing sent over the network
yes
yes
yes
Nothing to install
yes
yes
no

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.

References

Related Tools