Security & Encoding · Free tool

Base64 To Image

Turn a base64 string or data URI into a real image: instant preview, dimension and size readout, one-click download. Bonus: encode images to base64.

How to use the base64 to image

  1. Paste a data URI (data:image/png;base64,…) or a raw base64 string.
  2. The preview renders live as you type; format and dimensions appear alongside.
  3. Press Download image to save the decoded file with the right extension.
  4. To go the other way, use Encode image → base64 and pick a file.

About this tool

Base64 encodes binary images as plain text — how email attachments survive SMTP, how icons travel inside CSS and JSON, and how single-file HTML pages embed their assets. Decoding normally means fiddling with a terminal; here you paste and see.

The tool accepts raw base64 and full data URIs, detects the actual format from the header, reports true pixel dimensions, and decodes entirely in your browser — the string never leaves your device, which matters for confidential screenshots and signed assets.

Frequently asked questions

My string has line breaks — is that OK?

Yes; whitespace is stripped automatically. Some exporters also add a base64, prefix or a bare mime header — both are handled.

Why does the preview fail?

Truncated strings, unsupported formats (e.g. HEIC), or non-image data. The error message explains what the browser rejected.

Does the output differ from the original file?

No — base64 is lossless. A decoded PNG is byte-identical to the one encoded, provided the base64 was complete.

Looking for more? Browse the full tools library, read the site FAQ, or contact us.