Base64 to Image Converter — Preview and Download

Paste a Base64 string or data URI to preview the image, detect its type and download it. Free, no sign-up, and your files never leave your device.

Free, with no sign-up and no watermark. The file is processed in your browser and never uploaded.

Paste a Base64 string or a full data:image/... URI to see the image, its real type (detected from the file's bytes, not just the header) and its pixel size, then download it with the right file extension.

Step by step

  1. Paste Base64: With or without the data:image/png;base64, prefix. Line breaks are ignored.
  2. Check the preview: Type, dimensions and size appear under the image.
  3. Download: Click Download image.

Handy for

Debugging APIs

See images returned as Base64 by an API.

Extracting from HTML/CSS

Recover an image embedded as a data URI.

Logs and databases

Inspect images stored as Base64 text.

Checking data

Confirm a Base64 string really is an image.

Good to know

  • Supported: PNG, JPEG, GIF, WebP, BMP, ICO, AVIF, HEIC (download) and SVG.

  • If the string is truncated you'll get a clear "impossible length" message.

Questions

It says the data isn't an image — why?

The decoded bytes don't start with any known image signature. It may be another file type (the message says which, if recognised) or corrupted.

Is my data sent anywhere?

No. Everything is processed by JavaScript in your browser tab — nothing you paste or open is uploaded, logged or stored on a server. You can even use the tool offline once the page has loaded.

More Developer Tools tools

  • URL Encoder & Decoder — Percent-encode or decode URLs and components, and break query strings into an editable table.
  • HTML Entity Encoder & Decoder — Escape text into HTML entities (named or numeric) and decode entities back to characters.
  • JWT Decoder & Verifier — Decode a JWT's header and payload with readable claims, and optionally verify its signature locally.
  • Hash Generator — Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes or HMACs of text and files.
  • UUID / GUID Generator — Generate random UUID v4 or time-ordered v7 identifiers in bulk, in the format you need.
  • Strong Password Generator — Create strong random passwords or passphrases with a strength meter, using your device's secure randomness.

All Developer Tools tools