Base64 to Image Converter
Turn Base64 or a data URI back into an image: see it with its pixel size, check its real format, and download the original file.
Files and payloads stay in this browser tab. Binary decoding never substitutes the Unicode replacement character; invalid UTF-8 remains downloadable as its exact bytes. See how local processing works.
How to Convert Base64 to an Image
Paste the Base64 string or the whole data URI, or open a .txt or .b64 file that holds it. The image appears as soon as the text decodes, with its format and pixel size; very small icons are drawn enlarged with sharp pixels so they can be inspected. Download saves the original file.
What Is a Data URI?
A data URI embeds a file directly in a URL instead of linking to it. It has the form data:[media type][;base64],[data], for example data:image/png;base64, followed by the Base64 text. Data URIs are common for small images in CSS, HTML email and JSON APIs, because they avoid a separate download.
Why Images Are Stored as Base64
Base64 represents binary bytes using 64 printable characters, so an image can travel inside text-only formats such as JSON, XML, YAML and email. The cost is size: Base64 text is about a third larger than the bytes it encodes, which is why it suits icons and thumbnails better than photographs.
Common Use Cases
Checking an image returned by an API as a Base64 field, recovering a logo embedded in a stylesheet or email template, confirming that a stored thumbnail is the format its MIME type claims, and saving an inline image from a log or database export as a normal file.
Frequently Asked Questions
Do I paste the whole data URI or only the Base64?
Either. A full data URI such as data:image/png;base64,iVBOR... is read as it is, and plain Base64 works too. Line breaks, missing = padding and the URL-safe alphabet (- and _ instead of + and /) are accepted, so a value copied from a CSS file, an email source or a JSON field decodes without editing.
Which image formats can it show?
PNG, JPEG, GIF, WebP, AVIF, BMP, ICO and SVG. The format is identified from the decoded bytes themselves, not from the MIME type written in the data URI, so a PNG labelled image/jpeg is still shown and saved as a PNG. Whether AVIF displays depends on your browser; Download saves it either way.
Is the downloaded file the original image?
Yes. Download saves the decoded bytes unchanged, with the extension that matches their format. Nothing is re-encoded or compressed, so the file is byte for byte the image that was encoded.
What if the Base64 is not an image?
Text is shown as text, and other binary formats such as PDF, ZIP or gzip are named and can be downloaded with their own extension. Invalid Base64 is reported with the line and column of the first character that does not belong.
Is a decoded SVG safe to preview?
The preview shows the image in an <img> element, where browsers do not run scripts inside SVG files, and it is built from the text in this tab without contacting any server.
Continue with the data, not the directory
Decode byte strings and transform text encodings without uploading the source.
Base64 Decoder
Decode Base64 or a data URI to text, an image preview, or the original file. URL-safe Base64 and missing padding work too.
Base64 Encoder
Encode text or any file to Base64, URL-safe Base64, or a ready-to-paste data URI.
URL Decoder
Decode URL-encoded text back to readable format with our free online tool.
Hex to ASCII Converter
Decode hexadecimal as strict ASCII or validated UTF-8 with exact source errors, a synchronized byte table, and control-character names.