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.
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
- Paste the Base64 text (whitespace and line breaks are fine; URL-safe Base64 and missing padding are accepted).
- 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. - 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.
Related tools
Need text instead of a file? Use Base64 Decode. To go the other way, use File to Base64.