Image to Data URI
Free image to URL converter: turn a picture into a base64 data URI for HTML img src or CSS background—copy the image link string in your browser.
Help Us Improve
—
(—)
Convert base64 to image online free. Paste a data URI or base64 string, preview instantly, and download PNG, JPG, or WebP — all in your browser.
Paste base64 or data URI
Accepts raw base64 and data:image/…;base64 strings.
Live preview
See the decoded image before you download.
PNG / JPG / WebP export
Choose the download format and JPG/WebP quality.
Whitespace tolerant
Strips newlines and spaces common in copied API payloads.
No server upload
Base64 to image conversion stays on your device.
Paste your base64
Copy a data URI or raw base64 image string into the text box.
Convert
Click Convert to image to decode and preview locally.
Pick a format
Choose PNG, JPG, or WebP (and quality if needed).
Download
Save the image file to your device.
Keep the data: prefix when you have it
A full data URI includes the MIME type and avoids guessing PNG vs JPEG.
Don’t trim the middle of the string
Truncated base64 usually fails silently or produces a corrupt file.
Need the reverse?
Encode a file to base64 with Image to Data URI (/image-to-datauri).
Huge strings
Very large payloads may strain browser memory — prefer file uploads for multi‑MB assets when you control the source.
Online PNG Tools (base64 → PNG)
Competitor page targeting “base64 to image” and “base64 to img”. Useful reference; this tool focuses on private, no-upload decoding with multi-format download.
Base64.guru / similar decode sites
Often cloud-backed or ad-heavy. Fine for quick checks; less ideal when payloads are confidential.
DevTools / local scripts
Developers can decode with Node Buffer or browser snippets. This page is faster when you just need a preview and a file.
This base64 to image tool
Paste → preview → download in one place, format picker, no account. Best for a private base64 to image / base64 to img workflow.
API and JSON payloads
Decode base64 image fields from REST responses into real files.
HTML / CSS data URIs
Extract an embedded data:image string into a PNG or JPG.
Email and chat dumps
Recover pictures from base64 blobs copied out of logs or messages.
Quick base64 to img checks
Verify a base64 string actually decodes to the image you expect.
100% free
No sign-up, no daily caps, no watermarks on the download.
Privacy first
Your base64 string never leaves the browser tab.
No desktop app
Works in Chrome, Firefox, Edge, and Safari on any OS.
Flexible input
Data URIs, raw base64, URL-safe alphabet, and wrapped lines.
“Data URLs, URLs prefixed with the data: scheme, allow content creators to embed small files inline in documents.”
Data URLs: A data URI like data:image/png;base64,... embeds image bytes as text. This tool decodes that string back into a downloadable image file. developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs
“Base64 is a group of binary-to-text encoding schemes that represent binary data in an ASCII string format.”
Base64: APIs, emails, and JSON often ship images as base64. Converting base64 to image restores a normal PNG, JPG, or WebP file. en.wikipedia.org/wiki/Base64
“The atob() method of the Window interface decodes a string of data which has been encoded using Base64 encoding.”
Window.atob(): Browser-side decoding uses standard Base64 decoding (plus data-URI parsing) so your image never needs a server round-trip. developer.mozilla.org/en-US/docs/Web/API/Window/atob
“The Canvas API provides a means for drawing graphics via JavaScript and the HTML canvas element.”
Canvas API: When you pick a different download format, the decoded image is redrawn on Canvas and exported as PNG, JPG, or WebP. developer.mozilla.org/en-US/docs/Web/API/Canvas_API