Do I need the data:image/png;base64, part?
No. It is accepted and read, but the actual file type is detected from the decoded bytes. A bare base64 string works exactly as well.
DECODE
Paste the string, see the picture, download the file — with the right extension, taken from the bytes themselves.
Decoded image
Paste a base64 string or a data: URI to see the image here.
Generate, export or analyze in the tool, then inspect the captured input and actual result here. Processing stays in your browser.
Real sample input and the result produced by this tool.
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABACAYAAADlNHIOAAABGElEQVR4AezTQQ7CMBDF0Ij737kcYRbVyKU8EKuIfMWWP9c5V/k7V/xtn399jk9KgIAU/zkEEBATiOcVQEBMIJ5XAAExgXheAQQEBB40qYBYBgEExATieQUQEBOI5xVAQEwgnlcAATGBeF4B/yMgfulD5xUQiyGAgJhAPK8AAmIC8bwCCIgJxPMKICAmEM8rYFnAdD0BE6HlcwKWAU/XEzARWj4nYBnwdD0BE6HlcwKWAU/XEzARWj4nYBnwdD0BE6HlcwKWAU/Xv1PA9OoHnRMQyyCAgJhAPK8AAmIC8bwCCIgJxPMKICAmEM8r4D0C4pf86LwCYnEEEBATiOcVQEBMIJ5XAAExgXheAQTEBOJ5BdwUcPfvXwAAAP//Onc1hAAAAAZJREFUAwChDL/BxZGsOwAAAABJRU5ErkJggg==

Samples contain public test data. Text previews may be shortened; downloads contain the complete files.
back to a file
Base64 is how an image travels through places that only carry text: a CSS file, a JSON payload, an email body, a database column. Getting the picture back means decoding those characters into bytes and handing you a real file, which is all this page does.
Paste the raw string or the whole data: URI — the prefix, line breaks, surrounding quotes and even an entire <img> tag are all fine, because everything outside the base64 alphabet is dropped before decoding.
three steps
A bare base64 blob, a data: URI, or a line copied straight out of a stylesheet or a JSON response. Whitespace and quotes are ignored, and URL-safe base64 with - and _ instead of + and / is accepted too.
The image appears as soon as the bytes are valid. If it does not, the string is usually truncated — a copy that stopped short decodes into bytes that are no longer a readable file.
The type comes from the file's own magic bytes, not from the data: prefix. When the two disagree — which happens whenever a prefix was copied from somewhere else — the bytes win, and the page tells you so.
quick answers
No. It is accepted and read, but the actual file type is detected from the decoded bytes. A bare base64 string works exactly as well.
PNG, JPG, GIF, WebP, BMP, ICO and SVG. The first six are identified by their magic bytes; SVG is text, so it is recognised by its opening tag.
Because the bytes are a JPEG. A mismatched prefix is usually a copy-paste leftover, and saving those bytes as .png would give you a file that no viewer opens. The page shows a note whenever the two disagree.
Almost always a truncated string — copied from a console or an editor that cut it off. Check that the end of what you pasted matches the end of the original, including any trailing = signs.
No. The string is decoded in your browser and the file is built locally, so a screenshot embedded in an internal document never leaves the machine.
Only what your browser can hold in memory. Base64 is about a third larger than the file it encodes, so a very large string is heavy to paste long before it is heavy to decode.
Use the image to base64 tool, which produces both the raw string and a ready-made data: URI.
Yes — free with no watermark.
Articles in English
Distinguish a complete image Data URL from raw Base64, check its size overhead and decode a public sample back to the original PNG bytes.