Base64 to Image Converter

Acrafto Team Images
Updated

Decode an image stored as Base64, check its preview and download the file. Paste a raw string, an image data URI or an HTML <img> tag whose src contains Base64 image data.

How to convert Base64 to an image

  1. Paste the complete data into Base64 String or HTML Tag. Whitespace and line breaks in the encoded string are ignored.
  2. Choose Output Format. Automatic (original format) downloads the decoded image bytes without re-encoding them. PNG, JPG and WebP create a new image.
  3. Click Convert to Image, inspect the preview, then choose Download Image.
  4. If you change the output format, convert again before downloading.

The tool recognises common image formats from their file signatures and can use an image type supplied in a data URI. It accepts standard Base64 and the Base64url alphabet. An ordinary web image address is not Base64 data and cannot be downloaded by pasting its URL here.

Original format or a new image format?

Automatic preserves the decoded source bytes, including embedded metadata, GIF animation or SVG vector content. This is useful when you want to recover an encoded asset without altering it. The browser must still be able to open the image for conversion to succeed.

Selecting another format draws the image through a browser canvas:

  • PNG stores the rendered pixels losslessly and supports transparency. Converting a JPEG to PNG does not restore detail already lost in the JPEG.
  • JPG uses lossy compression and replaces transparent areas with white.
  • WebP supports transparency and lossy compression. If the browser returns a different output format, the download extension follows the actual file type.

Re-encoding does not preserve an animation or the editable vector structure of an SVG. File size depends on the picture and selected format; converting a PNG to JPG or WebP does not guarantee a smaller result. For more control over dimensions and compression, open the recovered file in the image resizer.

What Base64 decoding changes

Base64 represents bytes with a text alphabet. Decoding restores those bytes; it does not decrypt them or make private content safe to share. Standard padded Base64 has a length of 4 × ⌈bytes / 3⌉ characters, so longer strings are roughly one third larger than the binary data before any format conversion.

This is useful for inspecting images in API responses, database exports and HTML or CSS data URIs. For a message or JSON value instead of an image, use the Base64 text decoder.

Local processing and practical limits

The pasted data is decoded in your browser rather than uploaded for conversion. Processing time and usable input size depend on string length, image dimensions, browser memory and device performance. A large image can require much more working memory than its compressed file size suggests.

Check recovered files before sharing them. Automatic mode preserves source metadata; use the EXIF viewer to inspect supported photo metadata. Visible content and filenames can also reveal personal details.

Frequently asked questions

Why does the image not appear? Check that you copied the whole string and that it contains an image format your browser can read. An incomplete API response, truncated data URI or unsupported format may fail. Text encoded as Base64 is not necessarily an image.
Can I paste an HTML image tag? Yes, when its quoted src attribute contains a Base64 image data URI. A tag that points to an ordinary https address does not contain the image bytes.
Does decoding remove GPS metadata? No. Automatic mode retains the original decoded bytes. Re-encoding creates a new canvas image, but neither mode removes personal information visible in the picture itself.

I would appreciate if you could share these pages with friends, bookmark them, or link to them. Thank you! 🙏