Base64 to Image Converter
NEWDecode Base64 or data URL strings into an image, preview it and download the file.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
Quick Examples
Typical inputs and the results this tool produces.
Overview
A Base64 to image converter turns a long text string back into the picture it encodes. Base64 strings show up in CSS background rules, HTML img tags, JSON API responses, emails and database exports, and they are impossible to read until they are decoded into a real file.
Paste raw Base64 or a complete data: URL and the tool decodes it instantly in your browser. It tolerates line breaks, spaces, URL-safe characters and missing "=" padding, then checks the first bytes of the data to find the real image format — PNG, JPEG, GIF, WebP, BMP, SVG, ICO or AVIF — even when the data URL claims something else.
You get a live preview on a transparency checkerboard, the pixel dimensions and byte size, and a download button that saves the file with the correct extension. Nothing is uploaded; the decoding happens locally.
Why use this tool?
- Detects the real image type from magic bytes
- Accepts raw Base64 and full data URLs
- Fixes whitespace, URL-safe characters and padding
- Shows dimensions and exact byte size
- Private: decoding never leaves your browser
Features
Format sniffing
Recognises PNG, JPEG, GIF, WebP, BMP, SVG, ICO and AVIF from the file header.
Forgiving parser
Strips whitespace and quotes, converts - and _ and restores missing padding.
Live preview
Shows the decoded image on a checkerboard so transparency is visible.
Size details
Displays pixel dimensions, MIME type and exact file size in bytes.
Correct download
Saves the file with the right extension and a name you choose.
Copy options
Copy the cleaned data URL or the bare Base64 string.
How to Use
Paste the Base64
Paste a raw Base64 string or a full data: URL into the box, or load it from a text file.
Check the preview
The image appears immediately with its format, dimensions and size.
Name the file
Edit the file name if you want; the extension follows the detected format.
Download or copy
Press Download, or copy the cleaned data URL or Base64.