Base64 to File Decoder
Paste any Base64 string and decode it back to its original file. Auto-detects file type from content, shows a preview when possible, and lets you download the result instantly.
Decode any Base64 string to a file
This tool reverses the Base64 encoding process. Paste a Base64 string — with or without the data URI prefix — and the decoder will reconstruct the original binary data. The file type is detected automatically from the content using magic number signatures, not from the declared MIME type.
Supported file types include images (PNG, JPEG, GIF, WebP, AVIF), documents (PDF, Word, Excel), audio (MP3, WAV, OGG), video (MP4, WebM), archives (ZIP, RAR, 7z), and more. If the content is previewable, you will see an inline preview before downloading.
Auto-detected file types
- Images: PNG, JPEG, GIF, WebP, AVIF, BMP, ICO
- Documents: PDF, DOCX, XLSX, PPTX
- Media & Archives: MP3, MP4, WAV, WebM, ZIP, RAR, 7z
Common use cases
- Recover files from Base64-encoded API responses
- Extract embedded assets from data URIs in HTML/CSS
- Inspect Base64 attachments from email or webhook payloads
FAQs
What file types can be decoded?
Any file that was Base64-encoded can be decoded. The tool auto-detects over 25 file formats including images, PDFs, Office documents, audio, video, and archives using binary signatures.
Do I need to include the data URI prefix?
No. The tool accepts both raw Base64 strings and full data URIs (e.g. data:image/png;base64,...). If a prefix is present, it will be stripped automatically before decoding.
Is my data sent to a server?
No. All decoding happens entirely in your browser using JavaScript. Your Base64 data never leaves your device.
Related Tools
Base64decode Online Encoder & Decoder
Encode or decode Base64 strings directly in your browser
Text Encoder & Decoder
Convert text to Base64 or decode Base64 to plain text
Image to Base64
Convert images to Base64 encoded strings
Base64 to Image
Decode Base64 strings back to viewable images
File to Base64
Encode any file to a Base64 string
Base64 to PDF
Decode Base64 strings to PDF documents
JWT Decoder
Decode and inspect JWT tokens
URL Encode/Decode
Encode or decode URLs with percent-encoding
HTML Entity Encode/Decode
Convert special characters to HTML entities and back
Hex ↔ Base64 Converter
Convert between hex and Base64 formats