Base64 Image Viewer

Paste a base64 payload or a data:<mime>;base64,… URL on the left and see the decoded picture on the right. The page detects the format from the magic bytes (PNG, JPEG, GIF, WebP, BMP, ICO, SVG), reports the MIME, the byte size, and the base64 length, and shows a hex preview of the first bytes so you can sanity-check what you actually pasted. Pure client-side — nothing leaves your browser.

No image yet

Paste on the left to decode it.

How to use this tool
  • Paste a data URL like data:image/png;base64,… — the MIME is read straight from the prefix.
  • Paste raw base64 (no data: prefix) — the page sniffs the format from the first magic bytes (PNG 89 50 4E 47, JPEG FF D8 FF, GIF GIF8, WebP RIFF…WEBP, BMP BM, ICO 00 00 01 00, SVG via <svg tag).
  • Stats below the preview: detected format, MIME, base64 char count, decoded byte size.
  • Hex preview shows the first bytes so you can verify the file format by eye.
  • Copy as a data URL, a CSS url("…"), or the raw base64 alphabet.
  • The hard cap is 25 MiB decoded — bigger payloads are refused with a clear message.