Image tool / 100% free

Base64 to Image

Turn a Base64 string or a complete data URL back into a downloadable image file. Handy when an image arrives embedded in code, an API response or a config file and you need the actual file. It is free, needs no account, and adds no watermark to your result.

Built for: base64 to image

Loading text tools…

When you need this

What people use it for.

Recovering an image embedded in an API response or JSON payload
Extracting an inlined image from HTML or CSS source
Saving an image that was pasted to you as a long Base64 string
How it works

What happens to your file.

The Base64 payload is decoded, with a full data URL prefix, line breaks and the URL-safe alphabet handled automatically. The real image type is then read from the decoded bytes rather than trusted from the label, and the file is saved in that format with the matching extension.

What this tool includes

Everything you need, without a paywall.

Free Pro export naming included
Data URL decode
Raw Base64 decode
Format detection
Image download
Questions

Common questions.

Do I need to remove the "data:image/png;base64," part?

No. A full data URL is handled automatically, and so is a bare Base64 string.

Why did decoding fail?

The string is usually truncated or has stray whitespace and line breaks from being copied out of source code. Make sure you have the complete value.

What format will I get?

Whatever the image actually is. The type is read from the decoded bytes, so a JPEG labelled as PNG comes back as a .jpg. Use Image Converter afterwards if you need a different format.

Related free tools

You might also need.