Base64 to Image Decoder
Paste Base64 or a data URI and see the image. The real type is read from the bytes, not the label. Download it or save it as PNG. Nothing is uploaded.
Loading tool…
How it works
Paste
Raw Base64, a data URI, URL-safe Base64, text with line breaks, or JSON such as a CDP screenshot result. Missing = padding is fine.
Check
See the type read from the file's first bytes, its size in pixels and bytes, and what is wrong: a wrong label, a cut-off file, a bad character and where it is.
Save
Download the original file with the right extension, save it as PNG, or copy a data URI with the right type.
Which Base64 does it read?
The standard alphabet (+ and /) and the URL-safe one (- and _), with or without = padding, and with line breaks such as MIME's 76-character lines. Spaces, tabs and invisible characters from copy-paste are skipped. Any other character is an error with its position.
Why does the type differ from the data URI?
A data URI's type is a label anyone can get wrong, like data:image/png around JPEG bytes. This tool reads the file signature instead: a PNG starts with the bytes 89 50 4E 47 0D 0A 1A 0A, a JPEG with FF D8 FF. The file is shown and saved as what it is.
How do I view a CDP, Puppeteer or Playwright screenshot?
Chrome DevTools Protocol's Page.captureScreenshot returns {"data": "..."}: paste the whole JSON. Puppeteer returns Base64 with encoding: "base64". Playwright's page.screenshot() returns a Buffer; paste buffer.toString("base64").
Is it safe to open an SVG here?
An SVG is shown only as an image, never placed in the page. In an image, an SVG's scripts do not run and it loads nothing else. SVGs with script are flagged.
Taking screenshots in code?
Run your Playwright or Puppeteer scripts on Browser Use cloud browsers.