Skip to content

Base64 workbench

Base64 Decoder

Decode Base64 to text or any file online: auto-detects charset and payload type (images, audio, video, PDFs, archives, unknown binaries), previews media and saves files with the right name. 100% private, in your browser.

100% private · everything runs in your browser
Options
0 chars

Decoded text

—

Waiting for input…

Recent inputs— stored only in this browser
Use in Code
// Browser — ASCII fast path
const ascii = atob('SGVsbG8sIHdvcmxkIQ==');

// Browser — correct UTF-8 decoding (emoji, accents, CJK)
const bytes = Uint8Array.from(atob('SGVsbG8sIPCfjI0h'), (c) => c.charCodeAt(0));
const text = new TextDecoder('utf-8').decode(bytes);

// Node.js / Bun / Deno
const decoded = Buffer.from('SGVsbG8sIHdvcmxkIQ==', 'base64').toString('utf8');
Have text instead? Open the Base64 Encoder — live encoding across 91 character sets, URL-safe output, wrapping and per-line batch mode.

How to use

Base64 Decoder, step by step

  1. 01

    Paste Base64 — the decoded text appears live, with size, type, charset and timing stats below. Whitespace, line breaks and data URI prefixes are handled automatically.

  2. 02

    Leave the charset on Auto-detect (it explains what it found) or pick from 91 sets; switch to the Hex view to inspect raw bytes, or hit “Download as file” to save them with the right extension.

  3. 03

    Decoded media previews inline — images, audio, video, PDFs. Any other payload (archives, Office documents, unknown binaries) downloads with a correctly named file. Have a file full of Base64? Click “Open Base64 file” — or drop the file straight onto the input — and it decodes in a Web Worker.

FAQ

Frequently asked questions

Yes. The decoder runs 100% in your browser — your input is never uploaded, logged or sent anywhere. You can verify it yourself: disconnect from the internet and the decoder keeps working.

The replacement character means the bytes aren’t valid in the selected character set. Leave the charset on Auto-detect — it inspects the decoded bytes with letter-frequency analysis across all 91 supported character sets and picks the right one, telling you why. If you already know the charset, select it manually.

Yes, automatically. The decoder recognizes the URL-safe alphabet (“-” and “_” instead of “+” and “/”), tells you when it detected it, and missing padding (“=” characters) is handled too.

Yes — a leading data:image/png;base64,… prefix (or any data:…;base64, prefix) is stripped automatically and reported in the status bar.

Base64 can represent any bytes — images, PDFs, archives — not just text. The Hex view shows the raw decoded bytes, which is handy for debugging encodings or inspecting binary headers.

Normally line breaks are treated as whitespace inside one Base64 value. With this option every line is decoded as an independent entry — line 1 decodes to its own value, line 2 to its own, and so on. Use it for lists of encoded values, CSV exports or log files.

Off by default, the decoder gives precise errors: which character, at which position, is invalid. Lenient mode silently drops anything outside the Base64 alphabet instead — useful for cleaning up copy-pasted Base64 with stray punctuation or markup.

Yes. Paste the Base64 of an image (a data URI works too — the prefix is ignored) and the decoder shows a live preview, plus a “Download as file” button that saves it with the right extension. Audio, video and PDF previews work the same way.

Any type — that is the point of this page. Images, audio, video and PDFs preview inline; ZIP archives, DOCX/XLSX/PPTX documents, executables and unknown, extension-less binaries all download with their MIME sniffed from the magic bytes (never guessed from the file name) and the correct extension added. Even when the type is unknown, you get the exact bytes as a .bin file with the size shown.

No server-side limit exists because nothing is uploaded — the practical limit is your device memory. Large inputs decode in a Web Worker, so the page stays responsive.

Related tools

esc

Tools

Pages

↑↓ navigate↵ open⌘K

Keyboard shortcuts

Same shortcuts everywhere — ⌘ on macOS, Ctrl on Windows and Linux.