Base64 To Image

Paste a base64 string to instantly preview and download the decoded image in your browser.

Paste the base64 string, with or without the data:image/...;base64, prefix, and click Decode to preview the image, see its format, size and dimensions, and download it.

Use the Base64 To Image

Base64 Input

Paste a base64 string on the left and click Decode

Done!

Quick answer

Paste the base64 string, with or without the data:image/...;base64, prefix, and click Decode to preview the image, see its format, size and dimensions, and download it. Line breaks, spaces, quotes, URL-safe - and _ and missing = padding are accepted, and raw SVG markup works too. The format comes from the first bytes: iVBORw0KGgo is PNG, /9j/ is JPEG and R0lGOD is GIF. Every 4 base64 characters hold 3 bytes, so a 40,000-character string is a file of about 29.3 KB.

Examples

String starts withFormat
iVBORw0KGgoPNG
/9j/JPEG
R0lGODGIF
UklGRWebP (RIFF)
QkBMP
PHN2Zy or PD94bWwgSVG

Paste your base64 string and click Decode.

Summary

This tool decodes a base64-encoded string directly in your browser and renders the resulting image for immediate preview. No files are uploaded to any server — the entire conversion runs client-side using the native HTML5 Image API. Supports PNG, JPEG, GIF, WebP, and SVG data URIs.

How it works

  1. Paste your base64 string (with or without the data URI prefix) into the input area.
  2. The tool detects the format from the first bytes of the decoded data.
  3. The decoded image is rendered instantly in the preview panel.
  4. Review the image dimensions and file size displayed below the preview.
  5. Click Download to save the image to your device.

Use cases

  • Preview base64-encoded images embedded in JSON API responses.
  • Inspect inline images stored in a database or configuration file.
  • Verify that an image was correctly encoded to base64 before sending it.
  • Extract and save embedded images from email or HTML source code.
  • Debug broken <img src="data:..."> tags by pasting the base64 payload.
  • Convert a base64 string from a backend response into a downloadable file.

Frequently Asked Questions

Last updated: 2026-06-11 · Reviewed by Nham Vu