Base64 to File Downloader (Any File Type)

Decodes Base64 and saves the bytes as a file with the right extension.

Use the tool

Why this tool exists

You may get an attachment, an image or an archive as a Base64 string from an API, an email source or a log. The text has to become a file before anything can open it.

The tool accepts standard and URL-safe Base64 and data: URIs, tolerates missing padding and line breaks, and looks at the first bytes to pick the type and extension for PNG, JPEG, PDF, ZIP and more. A declared type that disagrees with the bytes is flagged.

How to use it

  1. Paste the Base64 string or data URI.
  2. Set a file name if you like.
  3. Check the detected type.
  4. Use the download link.

Frequently asked questions

The file will not open.

The string may be cut off or double encoded. Check the first bytes shown.

Why was an extension chosen for me?

It follows the detected content, not the name.

Is the string uploaded?

No.

What about PDFs?

The PDF tool also checks the header and ending.