Sample WebP images for testing — free, CC0

WebP is Google's image format for the web, with lossy and lossless compression and an alpha channel. Current browsers display it, but plenty of server-side image libraries and upload validators still reject it.

webp/lossy-640x480.webp is the loremfile colour-bar test card saved as lossy WebP at quality 80. Because the same card exists as PNG and JPEG, you can compare sizes and decoded output across formats.

webp/alpha-256x256.webp is a lossless WebP with an alpha ramp, the case that breaks converters which drop transparency or flatten it onto black. Lossless WebP uses a different bitstream from lossy WebP, so a decoder that handles one does not necessarily handle the other.

Use them to test image upload forms, thumbnailers, CDNs that convert formats, and code that must recognise the RIFF header with a WEBP form type. Related formats: PNG, JPEG and AVIF.

2 files. The same list as JSON: https://loremfile.dev/webp/index.json

WEBP files
FileSizePropertiesDescription
alpha-256x256.webp 1.2 KB 256x256 A lossless WebP with an alpha ramp.
Snippets
curl -O https://loremfile.dev/webp/alpha-256x256.webp
<img src="https://loremfile.dev/webp/alpha-256x256.webp" alt="">
lossy-640x480.webp 2.8 KB 640x480 A colour-bar test card with a border, centre cross and a label giving the dimensions and mode, saved as lossy WebP at quality 80.
Snippets
curl -O https://loremfile.dev/webp/lossy-640x480.webp
<img src="https://loremfile.dev/webp/lossy-640x480.webp" alt="">

File names follow the naming grammar. Verify a download against sha256sums.txt.