Skip to content

Base64 to Image Converter

What Base64 to Image does

This tool converts a Base64-encoded string (or full data URI) back into a downloadable image file — the reverse of encoding an image to Base64.

How to use it

  1. Paste the Base64 string or data URI into the box.
  2. Click Convert to Image.
  3. Download the resulting image file.

Common uses

  • Extracting and viewing an image embedded as a Base64 string in code or an API response.
  • Recovering a downloadable image file from a data URI pulled from a webpage's source.
  • Debugging a Base64-encoded image that isn't rendering correctly in your own code.
  • Converting an inline CSS background-image Base64 string back into a separate file.
  • Verifying a Base64 encoding round-trip produces the correct image.

Good to know

A full data URI includes a prefix like data:image/png;base64, before the actual encoded data — this tool accepts either the full data URI or just the raw Base64 string on its own, so you don't need to strip the prefix manually before pasting it in.

Data URIs bundle the image's format information directly into the string itself (the data:image/png;base64, prefix), which is what allows a browser or image viewer to correctly interpret the encoded bytes without needing a separate file extension — that self-describing property is part of why data URIs work reliably even when embedded inline in HTML or CSS with no accompanying file.

Frequently asked questions

Yes, if you paste just the raw Base64 data, the tool automatically adds a PNG data URI prefix before rendering it.