Base64 to Image

Paste a Base64 string or data URI and instantly see the image it encodes, then download it as a real file. Free and private — decoding happens entirely in your browser, nothing is uploaded.

Accepts full data:image/…;base64, URIs, raw Base64, Base64url and even a pasted <img src="…"> tag or CSS url(…) value. The format (PNG, JPG, GIF, WebP, SVG, BMP, ICO, AVIF, TIFF) is detected automatically.

How to convert Base64 to an image

  1. Paste your Base64 string. Drop a full data:image/…;base64, URI or just the raw Base64 characters into the box above — line breaks and quotes from copied code are cleaned up automatically.
  2. Decode it. Press Decode image (or simply stop typing — the preview updates on its own). The tool detects the real image format from the file's signature bytes and shows the dimensions and decoded size.
  3. Download or copy. Save the decoded picture as a real file with the correct extension, or copy a clean, normalized data URI to use in your HTML or CSS.

About this tool

Base64 is a text encoding that lets binary files like images travel inside HTML, CSS, JSON, XML or email without corruption. This Base64 to image converter reverses that process: it decodes the text back into the original bytes, identifies the format from its magic-number signature (PNG, JPEG, GIF, WebP, SVG, BMP, ICO, AVIF or TIFF), renders a live preview and lets you download the result as a normal image file. It is handy when debugging embedded data URIs, extracting images from API responses or email source, and checking exactly what an unknown Base64 blob contains.

Everything runs locally in your browser using standard web APIs — the string you paste is never uploaded, logged or stored on any server, so it is safe to decode private or proprietary images. There are no size limits beyond your device's memory, no watermarks and no sign-up. Need the opposite direction? Use our Image to Base64 converter.

Frequently asked questions

Do I need the data:image/png;base64, prefix?

No. You can paste the raw Base64 characters on their own — the tool detects the actual image type from the decoded bytes, not from the prefix. If you do include a data URI header, it is parsed and stripped automatically, and the real format found in the bytes always wins over the declared one.

Why do I get an "invalid Base64" error?

Valid Base64 only contains the characters A–Z, a–z, 0–9, +, / (or - and _ in the URL-safe variant) plus optional = padding. Errors usually mean the string was truncated when copied, contains stray HTML or ellipsis characters (…), or is not Base64 at all. Whitespace and line breaks are fine — they are removed before decoding.

It decodes, but the preview is blank — why?

Some valid image formats, such as TIFF, HEIC and sometimes ICO, cannot be displayed by every browser. In that case the tool still identifies the format and the Download button still saves the correctly decoded file, which you can open in an image editor. If the data has no recognizable image signature at all, it is probably a different file type (for example a PDF or ZIP) encoded as Base64.

Is my Base64 string sent to a server?

No. Decoding uses your browser's built-in atob function and Blob APIs, entirely on your device. You can even load the page, disconnect from the internet and the converter keeps working.