Take a data URI out of a stylesheet, an API response or a database field and turn it back into a viewable, downloadable image file. Useful for checking what an embedded asset actually is, and for extracting images from systems that only ever hand you text.
No. Both a bare Base64 string and a full data:image/png;base64, URI are accepted. The prefix is stripped automatically when present.
The string is most likely incomplete, or it is not image data at all. Base64 encodes any binary, so a valid string might decode to a PDF or a font rather than an image. Check the beginning of the string for a format hint.
Whatever your browser can display, which covers PNG, JPG, WebP, GIF and SVG. The format is taken from the data URI prefix where present, or inferred from the decoded bytes.
The opening characters give it away. iVBORw0 means PNG, /9j/ means JPG, R0lGOD means GIF, and UklGR means WebP. These are simply the file signature bytes expressed in Base64.