Free Your pictures are not uploaded
Base64 to image
Turn Base64 to image files here: paste a data URI, plain Base64 or a whole <img> tag, and the picture appears with its real format and size, ready to save as a PNG, JPG, GIF, WebP, SVG or ICO file. The text is decoded in your browser and sent nowhere.
Paste the Base64 text
Everything happens in this browser tab: nothing you paste is sent to FileOpens or anywhere else.
Base64 decoded by FileOpens

data URIimage.png
A pasted data URI shown as a picture
- Format found from the content
- 300 × 300 PNG, ready to save
A sample icon we made ourselves, with made-up names and data, opened in this tool and shown as it came out. Your own files stay on your device.
How to convert Base64 to an image
-
Step 1
Paste the text
A data URI, plain Base64, an <img> tag, or drop a .txt file.
-
Step 2
Show the picture
The format is recognised from the content.
-
Step 3
Save it
Download the picture as a normal file.
Where Base64 pictures come from
Developers meet Base64 images everywhere: in API responses and JSON fields, in HTML emails and saved web pages, in CSS files, browser developer tools, logs, database exports and QR code generators. Seeing the picture, or getting it as a real file, normally needs a script. This page does it by pasting: the Base64 text is decoded and shown as the picture it contains.
Base64 to image: what you can paste
A full data URI (data:image/png;base64,iVBORw0…), plain Base64 without the prefix, URL-safe Base64 that uses - and _ instead of + and /, text with line breaks, a whole HTML tag or a CSS url(…) value: the page finds the encoded part by itself. Missing padding (=) is added. SVG data URIs that are URL-encoded rather than Base64 are decoded too. You can also drop a .txt file with the text onto the box.
The real format
The format is recognised from the first bytes of the decoded data, not from what the text claims: PNG, JPG, GIF, WebP, BMP, ICO, TIFF, AVIF, HEIC and SVG are detected, and the page tells you if the data says image/png but is really a JPEG. If the text decodes to something that is not a picture, such as a PDF or a font, the page says so rather than showing a broken image.
After decoding
Save the picture with its proper extension and open it in any viewer. To convert it to another format, use the image converter; to encode a picture the other way, image to Base64. A cut-off string, which often happens when copying from logs, cannot be decoded completely; copy the whole value again.
Checking a Base64 image
Decoding shows whether a string is a complete, valid picture. A broken image after decoding usually means the text was cut off or changed while copying, which is the most common problem with long strings, for example by a line limit in a log viewer or a field that adds spaces. The format and size shown help to spot wrong data quickly: a 1 × 1 pixel GIF, for instance, is a tracking pixel rather than a real picture. Saving the decoded file lets you open it in any program or attach it to a bug report.
Private
The text you paste is decoded in your browser and never sent anywhere, which matters for data from internal systems.
More free image converters
- Image converter
- Compress image
- JPG to PNG
- PNG to JPG
- JPEG to JPG
- Compress JPEG
- Compress PNG
- GIF to PNG
- PNG to GIF
- GIF to JPG
- JPG to GIF
- GIF maker
- Remove background
- Background eraser
- Make background transparent
- White background for photo
- Remove white background
- Resize image
- Crop image
- Rotate image
- Flip image
- Blur image
- Pixelate image
- Black and white photo
- Invert image colors
- Merge images
- Watermark image
- Add text to image
- Remove EXIF data
- EXIF viewer
- Change DPI
- Image to Base64
- MP4 to GIF
- Video to GIF
- GIF to MP4
- GIF compressor
- PNG to SVG
- JPG to SVG
- Image to SVG
- SVG to PDF
- Image to text
- PNG to DXF
- SVG to DXF
- DXF to SVG
- HEIC to JPG
- HEIC to PNG
- HEIC to PDF
- HEIC viewer
- WebP to PNG
- WebP to JPG
- WebP to GIF
- WebP to PDF
- PNG to WebP
- JPG to WebP
- AVIF to PNG
- AVIF to JPG
- JFIF to JPG
- JFIF to PNG
- SVG to PNG
- SVG to JPG
- PNG to ICO
- ICO to PNG
- BMP to JPG
- BMP to PNG
- TIFF to JPG
- TIFF to PNG
- PSD viewer
- PSD to PNG
- PSD to JPG
- PSD to PDF
- AI to SVG
- AI to PNG
- Open AI file
- EPS to PNG
- DDS to PNG
- TGA to PNG
- TGA to JPG
- RAW to JPG
- CR3 to JPG
- CR2 to JPG
- NEF to JPG
Questions about Base64 to image
How do I turn Base64 into a PNG or JPG?
Paste it and press "Show the picture", then save; the right extension is chosen for you.
Do I need the data:image prefix?
No, plain Base64 works too.
Why does it say the data is not a picture?
The text decodes to another kind of file, or it was cut off.
Does it work with URL-safe Base64?
Yes, - and _ are handled and missing = padding is added.
Can I paste an <img> tag?
Yes, the Base64 part is found automatically.
Can it decode Base64 from an API or JSON?
Yes, paste the value of the field, with or without quotes removed.
Is my text uploaded?
No, it is decoded in your browser.