WebP is a RIFF file
A WebP image is a RIFF file with form type WEBP. There are three layouts. Simple lossy files hold one VP8 chunk (with a trailing space). Simple lossless files hold one VP8L chunk. Extended files start with VP8X and can add alpha, animation, a colour profile and metadata.
The sample is a 102-byte extended file made by cwebp: a 16 × 16 lossy image with transparency, stored as VP8X, ALPH and VP8 . Its RIFF size is 94, the file size minus 8.
| Chunk | Holds |
|---|---|
VP8 | Lossy image data (a VP8 key frame) |
VP8L | Lossless image data |
VP8X | Feature flags and canvas size |
ALPH | Alpha channel for a lossy image |
ANIM | Background colour and loop count of an animation |
ANMF | One animation frame: position, size, duration and its own image data |
ICCP | ICC colour profile |
EXIF | Exif metadata |
XMP | XMP metadata |
The VP8X header
The VP8X payload is 10 bytes. In the hex view, offsets count from the start of the selected chunk, so the first payload byte is at 0x08, after the 4-byte ID and the 4-byte size. Byte 0x08 holds the flags: 0x20 ICC profile, 0x10 alpha, 0x08 EXIF, 0x04 XMP and 0x02 animation. Three reserved bytes follow. Canvas width minus 1 is a 24-bit number at 0x0C and canvas height minus 1 is at 0x0F.
In the sample the flags byte is 10, alpha only, and both dimensions read 0f 00 00, which is 15, so the canvas is 16 × 16.


0x0C: 0f 00 00, which is 15.Chunk order
The WebP specification sets the order for extended files: VP8X first, then ICCP if present, then ANIM and ANMF frames for an animation or ALPH and the image chunk for a still image, then EXIF and XMP . Readers are told to ignore chunks they do not know.
Animated WebP in the viewer
Each ANMF frame starts with a 16-byte header (X and Y offset divided by 2, width minus 1, height minus 1, duration in milliseconds and a flags byte), followed by its own ALPH, VP8 or VP8L data. ANMF is not a LIST chunk, so the viewer shows each frame as one chunk. Select it and read the frame header and the inner chunk IDs in the hex view.
Questions
How can I tell if a WebP is lossy or lossless?
Look at the image chunk. VP8 means lossy and VP8L means lossless. An extended file can contain either.
How do I know if a WebP is animated?
The VP8X flags byte has bit 0x02 set, and the file contains ANIM and ANMF chunks.
Why does my WebP have no VP8X chunk?
It uses the simple layout: one image chunk with no alpha chunk, animation or metadata.
Can I convert WebP files here?
No. This site inspects the container. It does not decode or convert the image. To change the format, convert WebP to PNG on ThePhotoConverterHub.
Open the RIFF Viewer with your own file, or download the sample used above.