← Tools
Encoding

Base64 to Image

Paste a Base64 data URI and instantly preview the image. Download or copy the result — all in your browser.

Base64 Input0 chars
Image Preview
Image preview will appear here

Data URI Format

A valid Base64 image URI follows the format data:image/TYPE;base64,DATA where TYPE is png, jpeg, gif, webp, or svg+xml and DATA is the Base64-encoded binary content. To go the other direction, use the Image to Base64 converter. For general Base64, use the Base64 tool.

Common Sources

  • API responses with inline image data
  • HTML/CSS source code with embedded images
  • Exported JSON containing encoded assets
  • Browser DevTools network responses

Supported Types

  • image/png — lossless, transparency support
  • image/jpeg — lossy, best for photos
  • image/gif — animations, 256 colors
  • image/webp — modern, best compression
  • image/svg+xml — scalable vector graphics

Frequently Asked Questions

Why does it say "invalid image data"?

The Base64 string may be corrupt, truncated, or missing the data URI prefix. Make sure the full string starting with data:image/…;base64, is pasted including the comma.

Can I paste just the Base64 without the prefix?

No — the tool needs the MIME type from the prefix to display the correct image format. If you only have raw Base64, prepend data:image/png;base64, (adjust the type as needed).

Is large data handled correctly?

Yes — the browser handles the decoding natively. Very large images (multi-MB) may take a moment to render but there is no hard size limit imposed by this tool.

Does the download preserve the original format?

Yes — the file extension is determined from the MIME type in the data URI, so image/jpeg downloads as a .jpeg file.