How to use the Base64 to Image
- 1
Paste the Base64 string or data URI.
- 2
Preview the decoded image.
- 3
Download it.
Format detection
The file type is identified from the data URI prefix or, for plain Base64, from the file signature bytes (PNG, JPG, GIF, WebP, BMP, ICO, SVG).
Reading a data URI
A data URI starts with data:, then the file type (for example image/png), then ;base64, and finally the encoded bytes. The type tells the browser how to display the data. If a string has no prefix, the format is recognised from its first bytes: PNG data always starts with iVBOR, JPG with /9j/ and GIF with R0lGOD. That's also a quick way to tell what an unknown Base64 string contains.
Where you'll find Base64 images
API responses, HTML and CSS source, email templates and app exports often carry images as Base64 strings or data URIs. Paste the whole data URI or just the Base64 part; spaces and line breaks are ignored. If the preview stays empty, the string was probably cut short when copying, which is common with very long values.
Frequently asked questions
Which formats are supported?
PNG, JPG, GIF, WebP, BMP, ICO and SVG, detected automatically from the data.
How do I save the image?
Click download; the file gets the correct extension for its format.
Something not working, or missing a setting you need? Report a problem or request a tool.