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.
Herramientas relacionadas
Codificador y decodificador Base64 en línea
Codifica o decodifica cadenas Base64 directamente en tu navegador
Codificador y decodificador de texto
Convierte texto a Base64 o decodifica Base64 a texto plano
Imagen a Base64
Convierte imágenes a cadenas codificadas Base64
Base64 a imagen
Decodifica cadenas Base64 a imágenes visibles
Archivo a Base64
Codifica cualquier archivo a una cadena Base64
Base64 a PDF
Decodifica cadenas Base64 a documentos PDF
Decodificador JWT
Decodifica e inspecciona tokens JWT
Codificador/Decodificador URL
Codifica o decodifica URLs con codificación porcentual
Codificador/Decodificador HTML
Convierte caracteres especiales a entidades HTML y viceversa
Convertidor Hex ↔ Base64
Convierte entre formatos hexadecimal y Base64