Decode Base64 to an image
Paste into the box above:
- a data URI:
data:image/png;base64,iVBORw0KGgo… - raw Base64:
/9j/4AAQSkZJRgABAQ… - or a whole HTML, CSS, JSON or Markdown snippet that contains data URIs
The image appears as soon as you paste, with its real format, dimensions and size. Click Download image to save it, or Download all as ZIP when there are several.
The decoder is forgiving
Base64 copied from code, logs and emails is often messy. The decoder handles:
- Line breaks and spaces inside the text (common in emails and PEM-style output)
- URL-safe Base64 using
-and_instead of+and/ - Missing
=padding at the end - Quotes around the value
- Non-Base64 data URIs such as URL-encoded SVG (
data:image/svg+xml,%3Csvg…)
The real format, not the label
Data URIs state a MIME type, but it can be wrong: a JPEG labelled image/png, or application/octet-stream. This tool reads the file signature of the decoded bytes (the "magic numbers" at the start of every file) and identifies JPG, PNG, WebP, AVIF, GIF, BMP, ICO, TIFF, HEIC, SVG and PDF. The download gets the correct extension, and a mismatched label is pointed out.
Find every image in a page or file
Paste a complete HTML email, a stylesheet, an API response or a JSON export: every data:image/… URI is found and decoded, shown as a gallery and downloadable as a ZIP. Handy for extracting icons from a CSS file, images from a saved HTML email, or debugging an API that returns Base64 images.
What is Base64?
Base64 writes binary data with 64 text characters (A–Z, a–z, 0–9, + and /), 4 characters for every 3 bytes. It's used to carry images inside text formats: HTML, CSS, JSON, XML, emails. Decoding reverses it exactly: the downloaded file is byte-for-byte the original.
To encode an image, use Image to Base64.
Private by design
Base64 strings often come from internal systems, emails and API responses. They're decoded here in your browser, on your device, and never sent anywhere.