Binary file formats

PNG IHDR decoder

Read dimensions, bit depth and color type from a 13-byte IHDR payload.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Read the first two 32-bit values as big-endian dimensions, followed by depth, color, compression, filter and interlace bytes.

The example decodes to 1920×1080, 8-bit RGBA, with no interlace.

Limits

Paste payload bytes only. This checks IHDR field combinations, not the chunk CRC or image data.