Decode a data URI into an image
Nothing found — try another word.
This tool has no parameters — the result is ready as is.
Decodes data:image/…;base64,… back into an image file.
Nothing found — try another word.
Nothing found — try another word.
This tool has no parameters — the result is ready as is.
Nothing found — try another word.
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.
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.
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.
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.
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.