How to Convert a Base64 String Back to a Real Image

Guides · Image · Updated 2026

Base64 is a text representation of binary data. When you see a long string starting with data:image/png;base64,… you’re looking at an entire image encoded as characters. Toolzo’s free Base64 to Image tool decodes that string, shows you the picture, and lets you download it as a PNG. This guide also points you to the reverse tool — converting any image to Base64 — so you can handle both directions effortlessly.

Why Base64 images exist

Embedding images directly inside HTML, CSS, or JSON reduces the number of HTTP requests a page makes. Small icons, logos, and background patterns are often inlined this way. You’ll also see Base64 in API responses and configuration files. But when you need to inspect or save the actual image, decoding is necessary. The tool works entirely in your browser — no upload to a server.

Step‑by‑step: Base64 → image

  1. Open the Base64 to Image tool.
  2. Paste the Base64 string or the full data URL into the textarea.
  3. If you pasted raw Base64 (without the `data:…` prefix), select the correct image type from the dropdown (PNG, JPEG, etc.).
  4. Click “Preview”. The image appears. Click “Download PNG” to save it.
💡 Tip: If you need the reverse — turning a file into Base64 — use our Image to Base64 tool. It gives you both the raw string and the data URL.

Base64 image vs. normal file: when to use which

Base64 adds about 33% to the file size, so it’s not ideal for large photos. It’s perfect for small graphics that are part of the design. For everyday editing, our other image tools come in handy: you can rotate and flip an image after decoding it, or apply filters to adjust brightness and contrast. If you need a favicon, the Favicon Generator also works with uploaded images, not Base64 strings.

Frequently Asked Questions

Does the tool work with SVG Base64?

Yes, select SVG from the image type dropdown and paste the raw Base64; it will render as a scalable graphic.

Can I convert Base64 to JPEG instead of PNG?

The download always saves as PNG for maximum compatibility. If you need JPEG, open the preview in an image editor and resave.

Is there a size limit?

The tool can handle strings of a few megabytes. Very large images may slow your browser.

Will the tool decode a truncated Base64 string?

No, it needs the full string. An incomplete Base64 will produce a broken image.

Is my image uploaded anywhere?

No — everything is processed locally. Your data never leaves your computer.

Try Base64 to Image
Home / Blog / Base64 to Image