Paste Base64 or pick a file
Drop a data URI / raw Base64, or choose a local image to encode.
Decode Base64 or a data URI to an image preview/download, or encode a file to Base64. Free online tool — no sign-up. Runs locally in your browser.
Loading tool…
Follow these steps for a clear answer.
Drop a data URI / raw Base64, or choose a local image to encode.
Decoded images appear in the preview; check MIME and byte size.
Download the image or copy the data URI for HTML/CSS embeds.
Version 1.0.0 · Last reviewed 2026-07-29
data:[mime];base64,[payload] ↔ binary image bytesDecode a Base64 image or data URI into a live preview, or encode a local image file to Base64 for HTML/CSS embeds.
data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...
| Part | Meaning |
|---|---|
data: |
Data URI scheme |
image/png |
MIME type |
base64, |
Encoding |
| payload | Encoded bytes |
Prefer data URIs for small icons only—large images bloat HTML and defeat caching.
Key distinctions behind the tool.
Optional. Paste either a raw Base64 payload or a full data:image/...;base64,... URI. Without a prefix, image/png is assumed for preview.
No. Encoding and decoding happen in your browser.
Preview works for formats your browser can display (commonly PNG, JPEG, GIF, WebP). Encoding uses the file you select.