Base64 to Image Converter is a free viewer that decodes a Base64 string or data URL and shows the picture inside it. It identifies the real format (PNG, JPG, GIF, WebP, AVIF, SVG, BMP or ICO), shows the dimensions and file size, and lets you download the image or save it as PNG or JPG. Decoding happens in your browser.
How to convert Base64 to an image
- Paste the Base64 into the box. It can be the bare code, a
data:image/…;base64,URL, or a whole HTML tag, CSS rule or JSON value. - The image appears on the right with its format, size and dimensions.
- Click Download to save it, or convert it to PNG or JPG.
Recognise an image from the first characters
iVBORw0KGgo: PNG/9j/: JPGR0lGOD: GIFUklGR: WebPPHN2ZyorPD94bWwg: SVG
Common reasons an image won’t show
- The string was cut off. Long Base64 values are easy to copy only partly, for example from logs or database tools that shorten long fields.
- It isn’t an image. The data might be a PDF or another file; the tool says so and links to Base64 Decode, which handles any file.
- Extra characters. Escaped slashes (
\/) from JSON and surrounding quotes are removed automatically; other stray characters are pointed out.
Debugging APIs and emails
APIs often return images, signatures and thumbnails as Base64 fields, and HTML emails embed logos as data URLs. Paste the value here to see what it contains, without saving it to a file first. To go the other way, useImage to Base64. To view the rest of a JSON response, use theJSON Formatter.
Frequently asked questions
What can I paste?
Plain Base64 (such as iVBORw0KGgo…), a full data URL, or a whole <img> tag, CSS url() or JSON value containing one. The image data is found automatically, and spaces and line breaks are ignored.
How do I know which format the image is?
The tool reads the first bytes of the data, which identify the format, rather than trusting the data URL. PNG base64 usually starts with iVBOR, JPG with /9j/, GIF with R0lG and WebP with UklG.
Why does it say the image is damaged?
The Base64 is valid but the image inside is incomplete, usually because only part of a long string was copied. Copy the whole value and try again.
Is the image sent anywhere?
No. It is decoded and shown by your browser, and never leaves your device.
Last updated