EIT easy-image-tools / Decode a data URI into an image

Decode a data URI into an image

Decodes data:image/…;base64,… back into an image file.

Nothing found — try another word.

01

Decode a data URI into an image

Nothing found — try another word.

This tool has no parameters — the result is ready as is.

Nothing found — try another word.

Preview
Source
Result
no result yet

Decode a data URI turns the whole value out of an attribute — the data:image/png;base64,... string that sits inside src, href or background-image — back into a picture. Paste that value as it appears in your code and the prefix is removed, the payload decoded and the image shown, ready to save as a real file. That is what makes this useful when a stylesheet contains a giant inline image and you need to see what is inside it, or when a template holds an embedded icon that has to land on disk. The decoding runs in your browser, so the string is never sent anywhere.

  • Decoding runs entirely in your browser: nothing is sent to a server.
  • Paste the complete data: URI or the bare payload — the prefix is stripped automatically.
  • A data URI is the image itself; treat it as sensitive when sharing code.
  • The picture is faithful; the file bytes may differ from the original.
  • Free with no daily limit, no watermark and no account, also for commercial use.

How to use it

  1. Copy the complete data: URI, media type and base64 payload, comma included.
  2. Paste it into the text field on the left - the prefix is stripped automatically.
  3. The picture appears in the result tile; download it from the Download button.

Questions

What exactly is a data URI?

It is the entire string used inside an attribute: the data: prefix, the media type, the base64 marker, a comma and the payload. The PNG to data URI tool on this site builds one from a file when you need a value to paste into CSS.

Do I have to include the prefix?

No. It is stripped whenever it is there, so a complete src attribute value works and so does the bare payload if you copied only that part.

Is a data URI private?

Treat it as the image itself, because it is - a copy of every pixel sits in that text. This page decodes it in your browser tab without sending a request.

Does the decoded picture keep its transparency?

Yes, when the payload is a PNG, because the alpha channel is part of those pixels. A data URI built from a JPG cannot hold transparency at all.

Related tools