Base64 to Image Converter
Decode a base64 string, identify the image format from its magic bytes, and preview it in a browser.
Quick answer: enter your details below and click Convert Base64 to Image — your result appears instantly, right here in your browser. Nothing you enter is uploaded or stored.
B
Converters & Utilities
Enter your details below.
How to use
- Paste a base64 image string, with or without its data URL prefix.
- Click Convert Base64 to Image.
- Read the byte length and detected format.
- In a browser, preview the image and use the download link.
About this tool
Base64 strings hide images inside text, which makes them hard to check at a glance. This tool decodes the string, reports its byte length, and reads the first bytes to name the format, such as PNG or JPEG. In a browser it also shows the image itself and offers a download link.
Frequently asked questions
What if the format says unknown?
The bytes do not match a known image header, so the string may be truncated, encoded text, or another file type.
Does it accept a full data URL?
Yes. A leading data URL prefix is stripped before decoding.