Base64 to Image

Recover a small PNG when the source is a Base64 data URL.

Base64 String

Recover a small PNG when the source is a Base64 data URL.

How to use

  1. Copy the complete example, keeping the comma between its header and payload.
  2. Paste the data URL into the image conversion tool and convert it.
  3. Download the restored PNG and open it in an image viewer to inspect both pixels.

Worked example

Input

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAABCAIAAAB7QOjdAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAD0lEQVQImWN4ZmOjkfcMAAnBAtuPdGM6AAAAAElFTkSuQmCC

Expected result

2 × 1 · PNG · 🔴 🔵

Check the result

The image is 2 pixels wide and 1 pixel high.

Continue with another guide

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies