Base64 to Image
Decode data URIs back into image files
Data URIs show up in CSS, in email source, in JSON fixtures, and in bug reports, and when you need the actual file back you need a decoder. Paste the string here and the image renders immediately, before you download anything. A full data URI is used as-is, so the declared MIME type is preserved. Raw base64 with no data: prefix also works — the string is assumed to be a PNG in that case, since there is no header to tell us otherwise. Whitespace is stripped, and both the standard alphabet and the URL-safe variant with dashes and underscores are accepted, as is any line wrapping. The validator checks the character set and that the length is a multiple of four, which is what catches the truncated paste that otherwise decodes into a broken image.
Paste a Base64 data URI and instantly preview and download the decoded image as PNG, JPG or WebP. The local decoder also handles raw Base64 without the data: prefix.
Private Base64 to Image In Your Browser
Base64 to Image is processed locally with client-side JavaScript. Your files never touch a server, and there is no queue to wait in.
How to use Base64 to Image
Paste your string into the Base64 string or data URI field, with or without the data:image/… prefix.
The image renders as soon as the string is valid; a message appears if the preview cannot draw, which usually means truncation.
Check the result visually before saving — a partial decode often still produces a picture, just the wrong one.
Press Download as image file, and the extension is chosen from the detected MIME type.
- Accepts a complete data URI or raw Base64 with no prefix
- Tolerates whitespace and line wrapping, plus the URL-safe alphabet with - and _
- Validates the character set and that the length is a multiple of four, catching truncated pastes
- Picks the download extension from the decoded MIME type — PNG, JPG, WebP, or GIF
- A developer extracting an inline image from an email's HTML source to inspect it properly.
- A QA engineer reproducing a bug from a data URI pasted into a ticket.
- A designer saving an icon out of a stylesheet so they can hand it to someone as a normal file.