Free · Private · In-Browser

Data URL to File

Decode a data: URL back to a file.

Download File

Turn a data URI into a file

A data URL packs a whole file into a base64 string. This decodes it back, reads the MIME type from the header, and lets you download the original — useful when an asset is inlined in code.

It is handy when an asset is inlined in source and you need the original back — pulling a base64 image, font, or PDF out of CSS or a JSON blob to save or inspect.

Local decoding

The decode happens in your browser, so even embedded credentials or private assets stay on your device. The decoding happens on your device and nothing is uploaded.

Frequently asked questions

What does this data url to file do?

Decode a base64 data URL and download it as a local file.

Which data URLs can it decode?

Both base64 data URLs (data:image/png;base64,...) and percent-encoded ones (data:text/plain,Hello%20there). The size shown is the decoded file size in bytes.

What file name does the download use?

"decoded" plus an extension taken from the MIME type, such as decoded.png or decoded.pdf. Plain text downloads as decoded.txt.

Why do I get "Paste a valid data URL"?

The text must start with data:, and a base64 payload must not contain line breaks or stray spaces. Copy the complete value, including everything after the comma.

Take it further
Developer Tools

More free browser utilities for data cleanup, formatting, and developer workflows.

Learn more