Base64 to Image
Paste a Base64 string or data URI to see the image and download it as PNG, JPG or WebP.
Paste a Base64 string or data URI to see the image and download it as PNG, JPG or WebP.
Paste a Base64 string or a data URI into the box and the picture appears at once. This Base64 to image decoder reads the string, works out what kind of file it holds from the file's own signature, and shows it next to a download button. Download gives you the decoded file exactly as it was encoded, with the right extension: a PNG comes out as .png, a JPEG as .jpg, a GIF as .gif, whatever the data URI header claimed. Rename the file on the result screen before saving it again, or copy the image straight to the clipboard.
The string stays editable in the panel beside the picture, so you can fix a typo or paste the next one without starting over.
Base64 rarely arrives clean, and the decoder does not ask you to tidy it first. It accepts a bare string or a full data:image/png;base64, header, a whole HTML img tag or a CSS url() with the data URI inside, line breaks from an email or a log, JSON escapes, the url-safe alphabet that uses minus and underscore, and strings whose = padding was cut off. When something is really wrong, a red line under the box says what: a character Base64 does not use, a string cut short in the middle, or data that decodes to something other than a picture, such as a PDF.
The download menu starts on the original format. Pick PNG, JPG or WebP there to save the picture in another format instead: PNG keeps transparency, JPG puts a white background behind transparent areas, and WebP makes the smallest file of the three. Converting an animated GIF keeps its first frame; the original download keeps the animation.
To turn a picture into Base64 for HTML, CSS or JSON, use Image to Base64. It gives the Data URI, the raw string, an img tag and a CSS line, and a string made there decodes here byte for byte.
Base64 strings often come from places you would not paste into a website: an API response, a database export, an email attachment, a token from an app you are debugging. Here the string is decoded inside your browser and the image is built on your device; nothing you paste is sent to a server or kept after you close the page.
Paste the Base64 string or data URI into the box on this page. The image appears right away; press Download to save it as the original file, or pick PNG, JPG or WebP from the menu first.
No. A bare Base64 string works too. The decoder reads the file type from the decoded bytes themselves, so the header is optional, and when it is there but wrong, the real type still wins.
The message names the problem. Usually the string was only partly copied, it contains a character from outside the Base64 alphabet, or two strings were pasted together. Spaces, line breaks and missing padding are fine and are ignored.
PNG, JPG, GIF, WebP, AVIF, SVG, BMP and ICO show in the preview and can be converted. TIFF and HEIC data still decode and download as the original file, even where the browser cannot show them.
No. Decoding runs entirely in your browser, and the string and the image stay on your device.