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.
Outils associés
Encodeur et décodeur Base64 en ligne
Encodez ou décodez des chaînes Base64 directement dans votre navigateur
Encodeur et décodeur de texte
Convertissez du texte en Base64 ou décodez Base64 en texte brut
Image vers Base64
Convertissez des images en chaînes encodées Base64
Base64 vers image
Décodez des chaînes Base64 en images visibles
Fichier vers Base64
Encodez n'importe quel fichier en chaîne Base64
Base64 vers PDF
Décodez des chaînes Base64 en documents PDF
Décodeur JWT
Décodez et inspectez les tokens JWT
Encodeur/Décodeur URL
Encodez ou décodez des URLs avec l'encodage pourcent
Encodeur/Décodeur Entités HTML
Convertissez les caractères spéciaux en entités HTML
Convertisseur Hex ↔ Base64
Convertissez entre les formats hex et Base64