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.
Loading text tools…
Working with other formats? Open your file workspace →
What people use it for.
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.
Everything you need, without a paywall.
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.
You might also need.
Convert an uploaded image into a Base64 data URL or raw Base64 string for HTML, CSS and API use.
Encode and decode Base64, URLs and HTML entities or generate SHA-256, SHA-512, MD5, UUIDs and random strings.
Convert images between JPG, PNG, WebP and AVIF online, with quality control and transparency kept wherever the format allows.
Detect a file type from its signature, extension and parsable format information instead of trusting the filename alone.