Base64 to Image converter
Paste a base64 string or data URI and get a downloadable image back. Processed entirely in your browser.
Advertisement space
What does a base64 to image converter do?
A base64 string is just an image's raw bytes represented as text. This tool reverses that process: paste in the text and it's decoded back into an actual image file you can preview and download, exactly as it looked before it was encoded.
Data URI vs. raw base64 string
You can paste either format. A full data URI — one that starts with something like data:image/png;base64, — tells the tool exactly which image format to decode it as, so it's detected automatically. A raw base64 string with no prefix is decoded as PNG by default, since there's no format information included in the text itself.
Common reasons to decode base64
- Recovering an image embedded in a website's HTML, CSS, or inline SVG source
- Extracting an image returned as text inside a JSON API response
- Turning a base64 string from a database or config file back into a usable file
- Checking what an encoded image actually looks like while debugging code
Frequently asked questions
- Yes, completely free with no signup or usage limit.
- No. Decoding happens directly in your browser.
- Both. If you paste a full "data:image/...;base64,..." URI the format is detected automatically; a bare base64 string is decoded as PNG by default.
- Make sure you copied the full string with no missing characters and no extra line breaks in the middle of it.
- Common sources include an image already embedded in a website's HTML or CSS (view the page source and copy the string after "base64,"), a JSON API response that returns an image as text, or a base64 string you generated yourself with the Image to Base64 converter.
- Any format the base64 was originally encoded from — commonly PNG, JPG, WebP, and GIF. If your string is a full data URI, the format is read from its prefix; a bare string with no prefix is assumed to be PNG.
- It's best to paste it as one continuous string. Some sources wrap long base64 text across multiple lines, which can break decoding — remove any line breaks introduced when copying before pasting it in.
- Once it's converted, you can download it as a regular image file and use it anywhere a normal image file works.