Tools
EN

Base64 to File Converter

Paste any Base64 string to turn it back into the original file. The file type is detected from its content, so you get the right extension.

Private: your data is processed in your browser and never uploaded.

How to convert Base64 to a file

  1. Paste the Base64 string or data URI into the box.
  2. Check the detected file type and the preview for images, PDFs, audio, video and text.
  3. Adjust the file name if needed and click Download.

Recognise a file by its Base64 prefix

Starts withFile type
iVBORw0KGgoPNG image
/9j/JPEG image
R0lGODGIF image
UklGRWebP image or WAV audio
JVBERi0PDF document
UEsDBZIP archive, DOCX, XLSX, APK
SUQzMP3 audio
AAAAMP4 video or ICO icon

Office documents and archives

DOCX, XLSX and PPTX files are ZIP archives, so they are detected as ZIP. Simply change the extension in the file name field before downloading, for example report.docx.

Frequently asked questions

How does the tool know the file type?

It reads the first bytes of the decoded data (the "magic number") and compares them with known file signatures. A MIME type in a data URI is used as a fallback.

Can I decode very large files?

Yes, files of hundreds of megabytes can be decoded, limited only by your browser's memory.

The type is shown as application/octet-stream. What now?

The format has no known signature. If you know the original type, type the correct extension into the file name field and download it.