Binary file formats

QOI header decoder

Decode a QOI image’s dimensions, channel count and color-space flag.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

After qoif, read big-endian 32-bit width and height, then one channel byte and one color-space byte.

The example is a 1×1 RGB image using the sRGB color-space flag.

Limits

Header only. Pixel chunks, end marker and decompressed image validity are not checked.