Loona Automation logoLoona Developer Tools
Home › Encoders & Decoders

Base64 to Image Converter

In short: paste Base64 (or a full data URI) and see the image it encodes — then download it as a file with the correct type.
🔒 Private by design: everything runs in your browser on this device. Your input is never uploaded to a server.

About

Base64 image strings pour out of APIs, CSS files, emails and canvas.toDataURL() calls; this page turns them back into pictures. It accepts a bare Base64 payload or a full data URI, detects the real format from the magic bytes (PNG's 89 50 4E 47, JPEG's FF D8, GIF's GIF8, WebP's RIFF/WEBP) rather than trusting whatever the prefix claims, renders the image, and enables a download with the detected type. If the bytes decode but do not render, they were never an image — Base64 of text decodes "successfully" to text bytes, and the status line tells you so instead of showing a broken-image icon.

Frequently Asked Questions

Do I need the data:image/... prefix?

No — bare Base64 works; the type is detected from the bytes themselves.

Why does my SVG not render?

SVG is XML text, not binary image bytes; a Base64-of-SVG decodes to markup. Decode it with the Base64 to Text decoder and save as .svg.

Related Developer Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.