EIT easy-image-tools / Verify PNG data

Verify PNG data

Paste base64 or a data URI and check whether the data is a real PNG: the tool reads the signature and answers yes or no.

01

Verify PNG data

Nothing found — try another word.

This tool has no parameters — the result is ready as is.

Preview
Source
Result
no result yet

Verify PNG data takes Base64 or a data URI, decodes it in your browser and looks at the signature at the start of the data — because a file extension is not proof: a JPG renamed to .png still has JPG bytes inside. PNG always begins with the same eight bytes; anything else reports as not a PNG. The text never leaves your browser tab, which matters here more than usual, because pasted Base64 is often a secret — an API key, a session cookie or a signed URL.

  • Runs entirely in your browser: the pasted text is never sent to a server.
  • Accepts the bare Base64 or a full data URI; the prefix is stripped.
  • Compares the first bytes against the fixed PNG signature.
  • A no means a different format, invalid Base64 or a URL pasted by mistake.
  • Free with no daily limit, no watermark and no account, also for commercial use.

How to use it

  1. Copy the Base64 string or the full data URI that you want to check.
  2. Paste it into the text area - a data: prefix is stripped automatically.
  3. Run the check and read the verdict.
  4. A no means the content is a different format, or not an image at all.

Questions

How does it decide that the content is a PNG?

It decodes the Base64 in your browser and compares the first bytes against the PNG signature. A real PNG always starts with the same eight-byte marker; a renamed JPG does not.

Can I paste a whole data URI?

Yes. The data: prefix and the media type are stripped before decoding, so a complete src attribute value works as well as the Base64 part alone.

Is my pasted string uploaded anywhere?

No, and this is the important part: the decoding and the check happen entirely in your browser tab. Pasted Base64 is often a credential or a signed link, so it is never sent to a server.

It says no, but the file really is a PNG. Why?

Usually the content is not valid Base64, was copied with line breaks and stray characters, or is a URL rather than the image data. Check that the text contains only Base64 characters.

Related tools