We use cookies to keep this site working and, with your permission, to remember your preferences, understand site traffic and support advertising. You can change your choice at any time. Cookie Policy

SEO Tool Orbit

Base64 to Image

Free

Paste Base64 or a data URL to preview the image and download it as a file.

Line breaks and spaces are ignored. URL-safe base64 (- and _) works too.

Decoded entirely in your browser — nothing you paste is sent to our servers.

This tool works entirely inside your browser. Your image is never uploaded to our servers or anyone else's.

About this tool

Decodes Base64 text back into an image you can see and save. Useful when an API response, a database field, an email source or a stylesheet contains an embedded image and you need the actual file. Decoding happens in your browser, so the data you paste stays on your device.

How it works

The text is cleaned up first: a data URL prefix is recognised and removed, and line breaks, spaces and the URL-safe alphabet are handled. The Base64 is then checked for invalid characters and incomplete length before it is decoded. The resulting bytes are inspected to find the real image type — if a data URL claims one type but contains another, you are told. SVG images are previewed in a way that cannot run any script they contain.

How to use it

Paste the Base64 string or the full data URL into the box. The image appears as soon as it decodes. Choose whether to save it in its original format or convert it to PNG, JPG or WebP, then download it.

What you can upload

Base64 for a PNG, JPG, WebP, GIF, BMP, ICO, AVIF or SVG image, with or without the data: prefix, up to about 20 million characters.

Understanding your result

You get a preview, the detected type, the dimensions and the decoded file size. Clear messages explain why something could not be decoded — invalid characters, a truncated string, or data that is not an image.

Frequently asked questions

Related tools