iShowPDF

Base64 to file

Base64 to file is for the moment you have encoded data and no idea what is inside.

What Base64 to file does

Base64 to file is for the moment you have encoded data and no idea what is inside. Paste the text and the tool rebuilds the original bytes, then reads the file's signature to give it the right extension.

It recognises PDF, PNG, JPG, GIF, WebP, BMP, SVG, ZIP and the newer Word (.docx), Excel (.xlsx) and PowerPoint (.pptx) formats. When the signature is unknown, it keeps the type from the data: label and saves the file as decoded.bin, which you can rename. This suits attachments pulled from email source, API payloads and database fields.

How to use Base64 to file

  1. Paste the encoded text

    Plain Base64 or a data: link both work.

  2. Press Decode

    The tool rebuilds the bytes and works out the file type.

  3. Read the result

    You see the detected type, such as application/pdf, and the file size.

  4. Download the file

    Save it with its matching extension and open it in its usual app.

Questions about Base64 to file

How do I find out what file a Base64 string contains?

Decode it here. The detected type is shown above the download, for example image/png or application/zip.

Can it decode an email attachment?

Yes, if you copy the attachment's Base64 block from the email source. Paste only the encoded lines, not the headers above them.

What happens with old .doc or .xls files?

Those older formats are not recognised by their signature, so they are saved as decoded.bin. Rename it with the correct extension and open it as usual.

Can it decode a very long Base64 string?

The tool sets no fixed limit. Very large strings depend on your device's memory, because the decoding is done in the browser.

Related tools