base64app.com

Base64 to image converter

Decode base64 into real image files — PNG, JPEG, GIF, WebP, SVG — with live preview and one-click download.

← Decode base64 to image now

Base64 to PNG, JPEG, GIF, WebP, and SVG

Images in APIs, HTML, and CSS often arrive as base64 or data:image/png;base64, strings. base64app decodes the bytes, reads the format from magic numbers, displays a preview, and downloads with the right extension.

  • PNG, JPEG, GIF, BMP, WebP, ICO
  • SVG (safe image preview)
  • Data URIs from HTML, CSS, and APIs

Preview before you download

Unlike plain text decoders, base64app shows the actual image so you can confirm it decoded correctly before saving.

How it works

  1. 1. Paste base64 image data (or a full data:image/... URI) into the decoder above.
  2. 2. Click Decode — the detected format appears with a preview.
  3. 3. Download the image with the correct file extension.

Common errors

  • Invalid characters — standard base64 only uses A–Z, a–z, 0–9, +, /, and = padding.
  • Missing or wrong padding — length should be a multiple of 4; add = at the end if needed.
  • Line breaks and spaces — email, Slack, and JSON often insert whitespace that must be stripped.
  • data: URI prefix left on the string — remove data:<mime>;base64, before decoding.
  • URL-safe alphabet — JWTs and some APIs use - and _ instead of + and /.
  • Truncated payload — a copied string cut off mid-way cannot be fully recovered.
  • HTML entity encoding — < and similar entities in pasted strings must be removed.
  • Wrong image type assumed — detection uses file signatures, not the data URI MIME alone.

Frequently asked questions

Can I convert base64 to PNG or JPEG?

Yes. base64app detects the real format from decoded bytes and labels the file accordingly.

What about base64 SVG images?

SVG is detected and previewed through a safe image path so embedded scripts do not run.

Why is my image blank after decode?

The base64 may be truncated or corrupted. Enable auto-repair and verify the repair log.

Is there a file size limit?

Very large strings may slow the browser because everything runs locally. Typical web images decode instantly.

Is my data uploaded when I decode?

No. All processing runs in your browser. Nothing is uploaded, stored, or logged.

Can base64app fix corrupted base64?

Yes. Auto-repair fixes whitespace, data URI prefixes, URL-safe characters, padding, and stray characters.

Is base64app free?

Yes — free with no sign-up required.

Learn more

Base64 in CSS

Related tools