Base64 to image converter
Paste Base64 or an image data URL to preview the image in your browser.
How it is calculated
- The Base64 string is decoded in memory in your browser.
- The image type is checked against its binary header.
- The preview is created locally; no data is uploaded.
Example
iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+/lXcAAAAASUVORK5CYII=
Good to know
- Supported formats: PNG, JPEG, GIF and WebP. SVG and other formats are not accepted.
- Maximum size: 10 MB.
- Base64 is not encryption. Do not paste sensitive data.
When to use it
- Preview an image embedded as Base64 in a page, an email or an API response.
- Check that a data URL shows the expected picture before using it.
- To decode a Base64 string that holds text, use the Base64 encoder and decoder.
Frequently asked questions
What does data:image/png;base64 mean?
It is the start of a data URL: the media type, then the word base64, then the encoded image after the comma.
When is it worth embedding an image as Base64?
For very small icons, it saves a request. For larger images, the extra third in size and the lack of caching make a normal file better.
Why does my string show no image?
It may be cut, contain spaces or line breaks, or hold another kind of file. Check that it starts and ends cleanly.