Base64 to image

Paste Base64 or an image data URL to preview and download the original image. Decoding runs in your browser and keeps the image bytes unchanged.

Paste the encoded text alone, without an HTML tag or CSS wrapper.

Your image

Your decoded image will appear here.

The download keeps the original image bytes.

How to decode a Base64 image

  1. Paste the raw Base64 string or a data URL such as data:image/png;base64,....
  2. The image decodes when you paste. If you type or edit the text, select Decode image. Check the detected format, decoded file size and preview.
  3. Select Download image to save the file with an extension based on its actual format.

Editing the input clears the previous result. Cancel stops a running conversion while keeping the text. Reset clears the text and result.

Supported image data

  • The tool recognizes PNG, JPEG, GIF, WebP, BMP, AVIF, HEIC, TIFF, SVG and ICO. It reads the decoded bytes and ignores the media type written in a data URL.
  • Standard and URL-safe Base64 are accepted, including line breaks and omitted padding. Mixed alphabets, misplaced padding and incomplete groups produce an error.
  • Paste only the Base64 or data URL. Remove HTML, CSS, surrounding quotes and JSON field names. Ordinary image URLs are not fetched.
  • Percent-encoded data URLs are not supported. The data URL must use the ;base64, marker.

What stays in the downloaded image

  • The download contains the decoded file bytes. Transparency, animation, color profiles and embedded metadata remain unchanged.
  • There is no format conversion, resizing or recompression. A JPEG labeled image/png in the input still downloads as a JPEG.
  • SVG is parsed as XML and previewed as an image. Scripts and external resources do not run in the preview. The downloaded SVG is unchanged, so active content may run if you open it as a document elsewhere.

Questions about Base64 images

How do I convert Base64 to PNG or JPG?

Paste the encoded image, then select Download image. PNG data downloads as .png and JPEG data as .jpg. To change the image format after decoding, use the image converter.

Why is there no image preview?

Your browser may not support the image format, especially HEIC or TIFF, or the file may be damaged. A recognized header does not prove that the whole file is valid. You can still download the decoded bytes and try an image viewer that supports the format.

Why does my Base64 give an error?

The text may be cut off, contain an HTML or CSS wrapper, or include invalid characters or padding. Copy the complete encoded value again. If Base64 decoding succeeds but the bytes are not a recognized image, this tool reports that separately.

Is there a size limit?

The tool has no fixed input limit. The text and decoded image must fit in your browser's memory. Cancel stops decoding if the input takes too long.