Skip to main content

Base64 to File

Decode a Base64 string or data URI back into a downloadable file — PDF, audio, video, image or any binary. The file type is auto-detected, and nothing leaves your browser.

Input

File

Paste Base64 and press Decode to get your file.

Was this helpful?

Also available with

Guides

Paste a Base64 string — or a full data: URI — and download the file it encodes. Works for PDFs, audio, video, images, archives and any other binary payload, so it replaces the separate "Base64 to PDF", "Base64 to audio" and "Base64 to video" decoders with one tool.

How to use it

  1. Paste the Base64 text (whitespace and line breaks are fine; URL-safe Base64 and missing padding are accepted).
  2. The file type is detected from the decoded bytes (or from the data: URI prefix). Pick a type manually if you want to override it.
  3. Optionally set a file name, then press Decode. Download the file, or preview it inline when the browser can play or show it.

Detected formats

PDF, PNG, JPEG, GIF, WebP, BMP, ZIP, GZIP, MP3, WAV, OGG, FLAC, MP4/M4A, WebM, and plain text. Anything unrecognised is saved as a generic .bin file you can rename.

Privacy

Decoding happens locally with your browser's own APIs. The data is never uploaded.

Need text instead of a file? Use Base64 Decode. To go the other way, use File to Base64.

base64decodefilepdfaudiovideodata uridownload

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.