Converters
Base64 to Image Converter
Decode Base64 to Image
Paste your Base64 string to convert it back to an image. Supports PNG, JPG, GIF, SVG, WEBP and more.
Tool features
Image Decoding
Fast Processing
Format Support
File Information
What is a Base64 image & how it works
Images are often embedded as Base64 text: in HTML and CSS data URLs, JSON API responses, email bodies and database fields. The text is the image's bytes encoded with 64 safe characters, usually prefixed with a data URL header naming the image type.
This tool decodes that text back into the original image in your browser, shows a preview with its format, dimensions and size, and lets you save it as a normal image file. Paste the complete data URL, including the data:image/…;base64, prefix, so the image type is known.
How to use this tool
Related tools
Frequently asked questions
iVBOR for PNG or /9j/ for JPEG.image/svg+xml) are not accepted.data: prefix) to a file and run base64 -d image.txt > image.png on Linux or macOS.