Base64 to image

Paste Base64 or a data: address, see the picture and save it. Finds every image in pasted CSS, HTML or JSON.

The data entered in the form are processed only in your browser and will not be saved or sent anywhere.

Base64 to image

A long string starting with data:image/png;base64, or with iVBORw0KGgo, in an API answer, a CSS file, a database field or a log, and you want to see what it is? Paste it and press "Decode". Each image appears as a picture with its type and size in pixels, ready to download.

You can paste more than one thing at a time. Every data: address in the text is found, even inside CSS, HTML or JSON, so a whole stylesheet gives you all its embedded icons at once. Plain Base64 works one per line, and a block wrapped at 64 or 76 characters (the way e-mail and certificates write it) is read as one file.

The bytes decide. Text can claim anything: data:image/jpeg in front of a PNG is common. Here the type comes from the file's first bytes, so the download gets the right extension, and if the text said something else, the card tells you. PDFs and ZIPs are recognised too, and an unknown file is saved as .bin rather than guessed.

Errors with an address. A character that cannot be in Base64 is named with its position, and each block is reported by the line it starts on, so a broken entry in a long paste is easy to find. Everything is decoded in your browser; nothing you paste is sent anywhere.

Examples

  • A data:image/png address from an API answer shown as a picture and saved as image.png.
  • A CSS file with six embedded icons: six previews and one ZIP.
  • A "JPEG" from a database that is really a PNG: shown, saved as .png, with a note about the mismatch.

Who it is for

Developers debugging APIs and stylesheets, testers checking what a field really holds, and anyone who found a mysterious Base64 string and wants to know what is inside without installing anything.