Skip to content

Encoding converters

Base64 to Image

Convert Base64 to image online: paste any PNG, JPEG, WebP, GIF, AVIF or SVG payload and see the picture, its dimensions, MIME type and file size — then download or copy the data URI. 100% client-side.

100% private · everything runs in your browser

Turn Base64 back into a picture. PNG, JPEG, GIF, WebP, SVG, AVIF, BMP, ICO and TIFF are identified by their magic bytes — not by hopeful guessing — and preview inline with their real dimensions, MIME type and file size. One click downloads the file with the correct extension.

Base64 input
Options

How to use

Base64 to Image, step by step

  1. 01

    Paste the Base64 of an image, or drop an image file to encode it first. A data:image/png;base64,… prefix is stripped automatically.

  2. 02

    The result card shows the detected format, real pixel dimensions and size — computed from the image header, so they are exact.

  3. 03

    Preview the image and download it with the right extension — the totals card reports the true pixel dimensions so you can confirm the decode before saving.

FAQ

Frequently asked questions

PNG, JPEG, GIF, WebP, SVG, AVIF, BMP, ICO and TIFF — each recognized by its binary signature, so a mislabeled file cannot fool the detector. Dimensions are read from the actual header: PNG’s IHDR chunk, JPEG’s SOF markers and so on.

The Base64 was probably truncated during copy-paste. Check the character count and, if it came from a data URL, make sure the whole payload survived. To verify the file byte-by-byte, paste it into the Base64 to Hex tool — a truncated JPEG shows exactly there.

Yes — width and height in pixels, read directly from the image header. That makes it easy to check what a responsive image or an email template is actually embedding.

The Base64 to Data URL tool wraps the same bytes into a ready-to-paste data:… URI for <img> tags and CSS backgrounds — with the MIME type detected from the bytes, not guessed.

Yes — nothing is uploaded, so the limit is your device memory. A 10-megapixel photo decodes in milliseconds; the preview streams straight from the decoded bytes.

Never. Decoding, dimension parsing and the preview all run in your browser. Sensitive screenshots and medical or legal images never leave your machine.

Related tools

esc

Tools

Pages

↑↓ navigate↵ open⌘K

Keyboard shortcuts

Same shortcuts everywhere — ⌘ on macOS, Ctrl on Windows and Linux.