Code · Made a little simpler

Data URI to File

Decode a Base64 or percent-encoded data URL into a file on your device. Inspect its declared media type, enter a filename and preserve the bytes.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Data URI to File: how to use it

  1. Paste the complete data URL or select a local UTF-8 text file containing one. Enter a download filename.
  2. Run the conversion and inspect the byte count and available text preview.
  3. Copy the complete text or download the result to check its contents.

Limits and notes

Up to 12 MiB of original or decoded bytes. Pasted text and encoded files use UTF-8. The preview shows up to 8,192 characters. Downloads contain the complete result.

How your privacy works →

Data URI to File: common questions

Can I restore a data URL without Base64?

Yes. Percent triplets represent individual bytes and unreserved characters can appear literally.

Does the decoder open the supplied URL?

The tool reads the pasted characters locally. It offers the restored bytes as a download and displays valid UTF-8 as plain text.

Guides