How do I turn Base64 into an image?
Paste the text into the box. The picture appears as you type, with its type, its size in pixels and its weight underneath, and Download saves it as a file with the right ending: .png, .jpg, .gif, .webp, .svg and so on. You can paste the plain Base64, a full data:image/png;base64,… address, or a whole img tag or CSS line that contains one. The tool finds the data inside it.
What kind of image is it? The first letters tell you
Every file type begins with a fixed signature, and it shows in the first characters of the Base64 text.
- /9j/ is a JPEG photo.
- iVBORw0KGgo is a PNG.
- R0lGOD is a GIF.
- UklGR is a WebP.
- PHN2Zy or PD94bWw is an SVG drawing.
- AAABAA is an icon, and Qk is a BMP.
- JVBER is a PDF, which is not an image.
Why does it say this is not an image?
Usually one of three things. The string was cut off when it was copied, so the picture is incomplete. One character was changed on the way, and the message tells you which one and where. Or the text is not a picture at all: a PDF, or ordinary text that was encoded, in which case the message says what it found.
Line breaks and spaces are not a problem, and neither is a missing = at the end. A string that was encoded twice is decoded twice, and the tool tells you it did.
Can I trust the type written in data:image/png?
It is only a label, and some programs write the wrong one or leave it out. The tool looks at the data itself. When the label and the data disagree it says so, and the file is saved under the real type, so a JPEG labelled as PNG does not get a .png ending.
Is my text sent anywhere?
No. The decoding happens in your browser and the picture is built on your device. If you want to go the other way, use Image to Base64.