superpaste

Paste a data URL, download the real file

Data URLs turn up in CSS, in HTML source, in API payloads and in devtools. They are a file in disguise, and pasting one here undisguises it.

Press ⌘V to paste

A screenshot, an image, text, JSON, a PDF, a whole file — anything on your clipboard becomes a download.

or drop a file anywhere on this page

Steps

  1. 01Copy the whole data: URL, including the data:… prefix.
  2. 02Press ⌘V here. It is decoded on the spot.
  3. 03Download the decoded file.

Good to know

The extension comes from the MIME type

A data:image/png;base64 URL downloads as .png, application/pdf as .pdf, and so on — no guessing on your part.

Decoding happens in your browser

Base64 payloads often contain private material. Nothing is transmitted, so the contents stay on your machine.

Questions

Does it handle URL-encoded data URLs as well as base64?

Yes, both encodings are decoded.

What if the data URL is truncated?

Decoding fails and the text is kept as plain text instead, which is a quick way to tell that the copy was incomplete.

All questions

More guides