Base64 to Image Converter
Use a Base64 PNG, JPEG, GIF, WebP, AVIF, or SVG image. Data URLs must use ;base64.
Maximum encoded input: 2,000,000 characters. Processing stays in this browser.
Paste Base64 image data to rebuild the original image bytes in your browser. The converter accepts PNG, JPEG, GIF, WebP, AVIF, and SVG images, either as raw Base64 or as a strict Base64 data URL. Raster images are previewed before download. SVG files are offered for download without a preview because they can contain active content.
How to decode a Base64 image
-
1
Paste the encoded image
Use raw Base64 or a data URL such as data:image/png;base64,...
-
2
Check the detected file type
The converter examines the decoded bytes and rejects unsupported files or a data URL whose type does not match its bytes.
-
3
Preview a raster image
PNG, JPEG, GIF, WebP, and AVIF render in the page when the browser supports them.
-
4
Download the decoded bytes
The download keeps the detected file type and uses the matching extension.
Accepted input
The converter accepts these image types: PNG, JPEG, GIF, WebP, AVIF, and SVG.
Raw Base64: iVBORw0KGgoAAAANSUhEUgAAA...
Data URL: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA...
URL-safe: iVBORw0KGgoAAAANSUhEUgAAA (using - and _ instead of + and /)
Data URLs must identify an image/ type and include ;base64. Whitespace inside the encoded payload is ignored. The encoded input is limited to 2,000,000 characters so processing remains dependable in a browser tab.
Type checks and previews
The converter identifies the decoded byte signature before it creates a download. If a data URL says image/png but its bytes are a JPEG, it stops with a type-mismatch message rather than relabelling the file.
PNG, JPEG, GIF, WebP, and AVIF are previewed when the current browser can render them. SVG is detected and can be downloaded, but the tool intentionally does not preview it. SVG can contain scripts, links, and other active content, so treat an SVG from an untrusted source as you would any other untrusted attachment.
What this tool does not decode
The converter rejects non-image bytes, percent-encoded data URLs, and data URLs that are not Base64. It does not repair a truncated string, convert one image format to another, inspect an image for malware, or confirm that a downloaded file is trustworthy.
Privacy
Decoding, previewing, and download creation happen in the current browser. The encoded image is not uploaded or sent through Livewire. In the optional two-step flow, the text stays only in this tab’s session storage long enough to reach the download step.
Frequently Asked Questions
It accepts only Base64 data URLs with an image MIME type, such as data:image/png;base64,… The declared type must also agree with the decoded bytes.
An SVG can contain active content. The converter recognizes SVG for download but does not put an unknown SVG into the page as a preview.
The converter accepts the URL-safe alphabet, where - and _ replace + and /. It normalizes that alphabet before decoding the image bytes.
No. The encoded text, decoded bytes, preview, and download are created in the current browser. The two-step flow stores the pasted text only in this browser tab until you start over or close it.
Related Tools
Image Resizer
Resize images to pixel-exact dimensions or percentages while preserving aspect ratio. Batch-friendly, no upload.
QR Code Generator
Generate a browser-local QR code from a plain text or URL payload. Adjust size, colours and error correction, then download PNG.
Image Compressor
Compress JPG, PNG and WebP images to reduce file size while preserving visual quality. Entirely in your browser, no upload.
Barcode Generator
Create a 1D barcode in your browser in Code 128, EAN, UPC, ITF-14 and other supported formats. Download the rendered result as SVG or PNG.
GIF Maker
Turn a sequence of images or a short video into an animated GIF. Set frame rate, loop count and dimensions before exporting.
Meme Generator
Add fixed top and bottom captions to a JPG, PNG, or WebP image in your browser. Set font, size, colors, and stroke, then download a PNG.