Base64 to Image
Recover a small PNG when the source is a Base64 data URL.
Recover a small PNG when the source is a Base64 data URL.
How to use
- Copy the complete example, keeping the comma between its header and payload.
- Paste the data URL into the image conversion tool and convert it.
- Download the restored PNG and open it in an image viewer to inspect both pixels.
Worked example
Input
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAABCAIAAAB7QOjdAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAD0lEQVQImWN4ZmOjkfcMAAnBAtuPdGM6AAAAAElFTkSuQmCCExpected result
2 × 1 · PNG · 🔴 🔵Check the result
The image is 2 pixels wide and 1 pixel high.