file in abyss
Back to formats

Image

WEBP WebP Image

WebP Image is a image format commonly identified by .webp. Use the listed signatures, MIME types, and structure notes to validate files beyond the extension.

Extensions .webp
MIME image/webp

Magic numbers

Analyze your file
offset 0 WebP Image leading signature
52 49 46 46
RIFF

Structure

  1. RIFF header
  2. WEBP form type
  3. VP8/VP8L/VP8X chunks

Caveats

  • Do not trust the extension alone. Check the MIME type, the first bytes such as 52 49 46 46, and format-specific structure when possible.
  • Container formats and damaged files can share the same opening bytes, so deeper validation may be required for production upload, preview, or conversion flows.

Detection example

SIGNATURE = bytes.fromhex("52494646")
OFFSET = 0

def is_webp(path: str) -> bool:
    with open(path, "rb") as f:
        f.seek(OFFSET)
        head = f.read(len(SIGNATURE))
    return head == SIGNATURE

Practical usage

Use cases

WebP Image is commonly used for image previews, thumbnails, metadata checks, and upload validation. Test multiple sizes because resolution, alpha support, compression, and file size often affect implementation behavior.

Common detection mistakes

  • The .webp extension alone does not prove the file contents. Upload and conversion flows should combine extension, MIME type, leading bytes, and format-specific structure checks.
  • WebP Image can start with signatures such as 52 49 46 46, but related containers and damaged files may require additional validation.

Security notes

Media files can still stress decoders through corrupt metadata, extreme dimensions, long durations, or unusual chunks. Read size, dimensions, and duration before processing.

Using samples

11 samples help test tiny images, high-resolution images, alpha channels, and hard-to-compress assets.

Sample files

11 / 11 files
Sample Traits Size Source / license / SHA-256
Navy Blue Sky WebP preview

Navy Blue Sky WebP

Navy Blue Sky WebP is a WebP Image sample based on Wikimedia Commons, 3264 x 1627. It can be used to test downloads, parsers, previews, and file type detection.

navy-blue-sky.webp
Resolution 3264 x 1627 5.3 MP
High res
189 KB
SHA-256 b77e3e48632e90810e730ea69dfb3bf0e41b8b841df4d81d4a19e94f033c439d
Download
Sun Beauty WebP preview

Sun Beauty WebP

Sun Beauty WebP is a WebP Image sample based on Wikimedia Commons, 4160 x 3120. It can be used to test downloads, parsers, previews, and file type detection.

01-sun-beauty.webp
Resolution 4160 x 3120 13.0 MP
High res
286 KB
SHA-256 15c1a413b92c7b0d8df94d05651f9d05e08426b0cef0b57a7b50f9a20b3b715e
Download
Waterfalls Nature WebP preview

Waterfalls Nature WebP

Waterfalls Nature WebP is a WebP Image sample based on Wikimedia Commons, 1078 x 809. It can be used to test downloads, parsers, previews, and file type detection.

02-waterfalls-nature.webp
Resolution 1078 x 809 872 Kpx
Preview
251 KB
SHA-256 8f98d1e518205950da7777c006d933d67958118b4db901e3d764e5f280fb16d3
Download
Francis Landscape WebP preview

Francis Landscape WebP

Francis Landscape WebP is a WebP Image sample based on Wikimedia Commons, 1033 x 840. It can be used to test downloads, parsers, previews, and file type detection.

03-francis-landscape.webp
Resolution 1033 x 840 868 Kpx
Preview
123 KB
SHA-256 06d95912f8504355efdfe3091b6807442f46f8aed5cad1ea3a185d18e338024e
Download
Arcadian Landscape WebP preview

Arcadian Landscape WebP

Arcadian Landscape WebP is a WebP Image sample based on Wikimedia Commons, 1430 x 1084. It can be used to test downloads, parsers, previews, and file type detection.

04-arcadian-landscape.webp
Resolution 1430 x 1084 1.6 MP
PreviewLarge file
1.38 MB
SHA-256 43ee94c2b6c0b8573d5f060ad9d7ac095fc45fc8e98955d1972973f98f449de7
Download
Two Pointers Landscape WebP preview

Two Pointers Landscape WebP

Two Pointers Landscape WebP is a WebP Image sample based on Wikimedia Commons, 2880 x 2157. It can be used to test downloads, parsers, previews, and file type detection.

05-two-pointers-landscape.webp
Resolution 2880 x 2157 6.2 MP
High res
643 KB
SHA-256 52b1e2681fdad86f2a10e84dfd98bdda2ee5c5ca6efa7ea0a7be133cb10bd23e
Download
Mountainous Village WebP preview

Mountainous Village WebP

Mountainous Village WebP is a WebP Image sample based on Wikimedia Commons, 2880 x 2264. It can be used to test downloads, parsers, previews, and file type detection.

06-mountainous-village.webp
Resolution 2880 x 2264 6.5 MP
High resLarge file
1.38 MB
SHA-256 d309f333a4f2b285730cc4d238a81c52a78535c4fb5fe0438d737d2dd0673b09
Download
Carinthie Paysage WebP preview

Carinthie Paysage WebP

Carinthie Paysage WebP is a WebP Image sample based on Wikimedia Commons, 651 x 500. It can be used to test downloads, parsers, previews, and file type detection.

07-carinthie-paysage.webp
Resolution 651 x 500 326 Kpx
Preview
51 KB
SHA-256 581e9312d54e6936e7a53d516d1dd7ce33e6c82c965a14170eccaa62bd8e31c5
Download
Two Terriers Landscape WebP preview

Two Terriers Landscape WebP

Two Terriers Landscape WebP is a WebP Image sample based on Wikimedia Commons, 2880 x 2015. It can be used to test downloads, parsers, previews, and file type detection.

08-two-terriers-landscape.webp
Resolution 2880 x 2015 5.8 MP
High resLarge file
1.11 MB
SHA-256 e5a164b46320bbfc88d03bdfd8f95bfa905e8fd9d386bd2d1a58b03656f207b9
Download
Navy Blue Sky WebP preview

Navy Blue Sky WebP

Navy Blue Sky WebP is a WebP Image sample based on Wikimedia Commons, 3264 x 1627. It can be used to test downloads, parsers, previews, and file type detection.

09-navy-blue-sky.webp
Resolution 3264 x 1627 5.3 MP
High res
189 KB
SHA-256 b77e3e48632e90810e730ea69dfb3bf0e41b8b841df4d81d4a19e94f033c439d
Download
NASA Blue Marble WebP preview

NASA Blue Marble WebP

NASA Blue Marble WebP is a WebP Image sample based on NASA Image and Video Library, 640 x 640. It can be used to test downloads, parsers, previews, and file type detection.

nasa-blue-marble-2012-east.webp
Resolution 640 x 640 410 Kpx
Preview
47 KB
SHA-256 578940a934285ef5cfa736481932abce6ac1a44c334dbb9518be5f036e904042
Download

Frequently asked questions

What is the magic number (file signature) of WebP Image?

WebP Image files begin with the byte signature 52 49 46 46 ("RIFF"). Detect the format by reading these leading bytes rather than trusting the file extension alone.

What is the MIME type of WebP Image?

The MIME type for WebP Image is image/webp.

What file extension does WebP Image use?

WebP Image files use the .webp extension. The extension is a convention only and does not guarantee the file contents, so combine it with signature and structure checks.

Related formats