Get started
HomeImage ToolsBase64 to Image
Image ToolsRuns in your browser · files never uploaded

Base64 to Image

Decode back into a file

4.6· 95 votes
Your file never leaves this browser. Everything runs on your device — no uploads, no server storage, no retention.How it works →
Paste a data URI or raw Base64 — images render inline and can be downloaded.
Base64 input0 chars
Decoded image
Paste a Base64-encoded image to see it here.

What is Base64 to Image?

Decode a Base64 string — with or without a data-URI prefix — back into a viewable, downloadable image. Handy for extracting inlined assets from HTML or CSS, recovering files you received as Base64 in an API response, or debugging what a data URI actually contains.

How do I use Base64 to Image?

  1. Paste a data URI (starts with "data:image/…;base64,") or a raw Base64 string into the input.
  2. Preview appears immediately on the right.
  3. Click Download to save the image as a file.

When should I use Base64 to Image?

Base64 to Image is the inverse of Image to Base64. If your Base64 string decodes to something other than an image (e.g. a PDF or JSON payload), use Base64 Decode instead, which returns the decoded text.

Frequently asked
What does the input look like?

Either a raw base64 string or a full data URI like data:image/png;base64,iVBORw0KGgo... The tool accepts both.

Why does my base64 say "invalid"?

Common issues: extra whitespace, missing padding (=), or the string is actually URL-encoded. The tool strips whitespace and data-URI prefixes automatically; if it still fails, the data is probably corrupted.

What format is the output?

The MIME type encoded in the data URI determines the output format — PNG for image/png, JPG for image/jpeg, and so on. Raw base64 without a prefix is assumed to be PNG.

Is my file uploaded anywhere?

No. Everything runs in your browser. Your files never leave your device, and there is no server component for this tool.

Related in Image Tools
Image Resizer
Image Compressor
Image Converter
Image Cropper
Image Rotator
Image Flipper
DPI Changer
Watermark Adder