Base64 input

About the Base64 to Image decoder

Paste a Base64 string — with or without a data URI prefix — and Bytewrench decodes it back into a viewable image, detecting the real format from the file's magic bytes and showing its dimensions and size. It's the fastest way to inspect an image that's been embedded in CSS, JSON, HTML or an API response.

Decoding happens entirely in your browser, so even sensitive or large images never leave your device, and you can download the result with the correct file extension.

🔍
Format auto-detection

Reads PNG, JPEG, GIF, WebP, BMP and SVG signatures so the right type and extension are used.

📐
Dimensions & size

Shows the decoded image's width, height and byte size at a glance.

🧩
Data URI or raw

Accepts a full data:image/… URI or a bare Base64 payload.

⬇️
Download & copy

Save the decoded image or copy a ready-to-use data URI in one click.

Frequently asked questions

Does the Base64 string need the data URI prefix?

No. You can paste a full data:image/png;base64,… URI or just the raw Base64 — the tool detects the format either way.

How is the image format detected?

It inspects the first decoded bytes (the magic number) to identify PNG, JPEG, GIF, WebP, BMP or SVG, rather than trusting the prefix.

Is my image uploaded anywhere?

No. Decoding and preview happen entirely in your browser; nothing is sent to a server.

Why does my string fail to decode?

The input must be valid Base64. Stray spaces, line breaks or truncated data will prevent decoding.