← Back to Tools

Base64 → Image

Decode any Base64 string into a real image — preview, inspect, rename & download. Nothing leaves your browser.

⎘ Paste 🖼 Load Sample ✕ Clear ✂ Strip Prefix
0 characters
Waiting for input
Accepts: Raw Base64 · data:image/... URI · strings with whitespace/newlines (auto-cleaned) · PNG, JPG, WebP, GIF, SVG, BMP
🖼 Your image will appear here
Format
Dimensions
File Size

What Is Base64 Image Encoding?

Base64 encodes binary image data as ASCII text so it can be embedded directly in HTML, CSS, JSON, or API responses. This tool reverses the process — paste any Base64 string and get a real downloadable image file instantly, with no server upload required.

Where do Base64 images come from?

They're embedded in HTML <img src="data:image/png;base64,...">, CSS backgrounds, JSON API payloads, email templates, database blobs, and canvas.toDataURL() output. You'll encounter them constantly in web dev.

Does it work without the data: prefix?

Yes. Paste raw Base64 (no data:image/... prefix) and the tool will auto-detect the image format from the encoded bytes (magic bytes detection). Use the Strip Prefix button to remove it if needed.

Is my data safe / sent to a server?

100% local. Zero network requests. Everything runs in your browser using the built-in FileReader and Canvas APIs. Your Base64 string never leaves your machine.

What formats are supported?

PNG, JPG/JPEG, WebP, GIF, SVG, and BMP — anything your browser can render. The tool detects the format automatically and sets the correct file extension on download.