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