Base64 to Image Converter
Image ToolsDecode Base64 or a data URI back into a viewable, downloadable image.
Runs entirely in your browser β nothing is uploaded
Features
- Accepts raw Base64 and full data URIs, with or without line breaks.
- Identifies PNG, JPG, GIF, WebP and SVG from the bytes, not the label.
- Shows the image, its format, dimensions and file size.
- Download with the correct extension and your own file name.
- Names the exact character that broke an invalid paste.
- Decodes in your browser β the data is never uploaded.
How to use the Base64 to Image Converter
- 1Paste the Base64 string or data URI, or upload a .txt file holding it.
- 2Check the preview, the detected format and the dimensions.
- 3Set a file name and download the image.
Frequently asked questions
Do I need the "data:image/png;base64," part?
No. Paste the raw Base64 on its own or the whole data URI β both work. The format is worked out from the decoded bytes either way, so the prefix is only a convenience.
Why does it say the format is different from what my data URI claims?
Because the bytes disagree with the label, and the bytes are right. A data URI that says image/png in front of JPEG bytes is common β it comes from code that hard-codes the prefix. The tool names the real format and downloads with the extension that will actually open.
What does "not a Base64 character" mean?
Something in the text is outside the Base64 alphabet, and the position is given so you can find it. The usual culprits are a quote or comma copied along with the value, a line number from a code editor, or an ellipsis where a console truncated a long string.
Is it safe to paste an SVG someone sent me?
Yes. The decoded image is shown through an <img> tag, and browsers do not run scripts inside an SVG loaded that way. Nothing is inserted into the page as markup.
Is there a size limit?
Only your deviceβs memory. Decoding is done in the browser, so there is no upload limit β though a very large paste takes a moment, which is why the tool waits for you to stop typing before decoding.
Is my image uploaded anywhere?
No. The decoding is JavaScript running in your tab. That matters here β Base64 images usually come out of API responses, document scans and private exports.