base64app.com

Base64 to PNG converter

Turn base64-encoded PNG data into a real .png file — preview in the browser and download instantly.

← Decode base64 to PNG

Decode base64 to a PNG image

PNG is one of the most common formats in data:image/png;base64 URIs and API payloads. base64app decodes the bytes, verifies the PNG signature, shows a preview, and saves decoded.png.

How it works

  1. 1. Paste base64 PNG data or a data:image/png;base64 URI above.
  2. 2. Click Decode and confirm the PNG preview.
  3. 3. Download the .png file.

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.
  • JPEG bytes labeled as PNG — detection uses magic bytes, not filename.

Frequently asked questions

How do I convert base64 to PNG?

Paste the string and click Decode. If the bytes are PNG, you get a preview and .png download.

Can I paste a data:image/png URI?

Yes. The data: prefix is stripped automatically with auto-repair on.

What if the output is JPEG instead?

The original bytes may be JPEG. base64app labels files by actual content, not the URI MIME.

Is decoding private?

Yes. Everything runs locally in your browser.

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.

Learn more

Base64 in CSS

Related tools