Base64 to Image
Decodes a Base64 string or data URI back into a viewable, downloadable image.
A data URI that arrived through a stylesheet, a JSON payload and a chat client is rarely clean: it has a url() wrapper, quotes, line breaks, or the data: prefix missing. This accepts all of that, decodes it, and tells you when the header is lying about the type.
Paste the data URI
A url(…) wrapper, surrounding quotes, stray line breaks and a missing data: prefix are all accepted — that is how these arrive after a trip through a stylesheet, a JSON file and a chat client.
How to use it
Paste whatever you have
The whole data: string, or just the Base64 part. Wrappers, quotes and stray line breaks are stripped.
Check the type against the claim
The bytes are the authority. If the URI says image/png and the bytes are a JPEG, the row says so — that mismatch is the usual reason such an image will not render where it is used.
Download it as a file
The extension follows the sniffed type rather than the header, so the file you get opens.
Common questions
It says the Base64 is malformed.
Almost always a truncated copy-paste. A data URI is one very long line, and terminals, chat clients and log viewers cut it. Copy it from the source file rather than from a rendered view.
The size shows as unknown.
The dimensions come from decoding the image, and SVG in particular does not go through that path on every engine. The image still previews and downloads correctly.
Is my image sent anywhere?
No. Decoding is `atob` and a Blob, both in this tab. Nothing is posted, which matters here because a pasted data URI is often something out of a private document.
Feed it from
Image to Base64 / Data URI
Encodes an image as a Base64 string or a ready-to-paste data URI for CSS, HTML or JSON.
Sprite Sheet Packer
Packs many images into one atlas and emits the CSS or JSON frame map alongside it.
Placeholder Image
Generates a solid or gradient placeholder at any size with the dimensions drawn on it.
SVG Optimiser
Removes editor cruft, collapses transforms and rounds path precision, showing the rendered diff.
Next
These accept what this tool produces, so the result can go straight in.
EXIF Viewer
Shows camera, lens, timestamp and GPS metadata embedded in a photo, as coordinates rather than on a map — drawing one would send the location to a tile server.
Image Format Converter
Converts between PNG, JPEG, WebP, AVIF, GIF, BMP and TIFF, one file or a whole folder at a time.
Image to Base64 / Data URI
Encodes an image as a Base64 string or a ready-to-paste data URI for CSS, HTML or JSON.
Background Remover
Keys out a flat or single-colour background in OKLab and returns a transparent PNG, with a brush for fixing the edges.
EXIF Remover
Strips camera, GPS and editing metadata from photos while leaving the pixels untouched.
Favicon Generator
Produces the whole favicon set — ICO, PNGs, Apple touch icon, web manifest — plus the HTML to paste.