What is WebP?
WebP is an image format made by Google for the web. Google describes it as “a modern image format that provides superior lossless and lossy compression for images on the web”: it makes smaller files than JPG or PNG, and it can hold transparency and animation too. WebP files end in .webp.
Every current major browser shows WebP. If another program or an upload form will not take your WebP, convert it to JPG (for photos) or PNG (to keep transparency).
What a WebP file can hold
One format covers jobs that used to need three:
- Lossy images, like JPG. Google says lossy WebP uses predictive coding, “the same method used by the VP8 video codec to compress keyframes in videos”. How much detail is dropped is adjustable, so you trade size against quality.
- Lossless images, like PNG: every pixel comes back exactly as saved.
- Transparency, in both lossy and lossless files. Google gives the cost of transparency in lossless WebP as “just 22% additional bytes”.
- Animation, like GIF. Google’s FAQ notes that “a single animation can combine lossy and lossless frames”.
Inside, a WebP file is “VP8 or VP8L image data, and a container based on RIFF”, in Google’s words. Its media type isimage/webp, and Google’s FAQ gives the maximum size as 16383 × 16383 pixels.
Why you keep ending up with WebP files
Websites use WebP because smaller images load faster. Google’s FAQ suggests site owners create WebP versions of their images and “serve them on a targeted basis to browsers that support WebP”. So when you save a picture from a web page, you often get the WebP version, even if the site also has a JPG.
Google’s figures for the saving: lossless WebP is 26% smaller than PNG, and lossy WebP is 25–34% smaller than comparable JPG at the same measured quality. For a direct head-to-head with our own measurements, seeWebP vs JPG.
How to open a WebP file
The simplest way is a web browser: drag the file into a Chrome, Edge, Firefox, Safari or Opera window. caniuse.com lists WebP as supported in current versions of all five and puts support at 97.32% of browsers in use worldwide. The gaps are old ones: Internet Explorer never supported it, and Safari before version 14 did not either.
Outside the browser, support depends on the program and its version. If an app shows an error or a blank thumbnail, converting the file is quicker than hunting for a plug-in.
How to convert a WebP
Pick the target by what is in the picture and where it is going:
- To JPG for photos, forms, printing and email. Use the WebP to JPG converter: choose the file, set the quality (it starts at 90%), pick a background colour if the WebP has transparent parts, and download.
- To PNG for logos, stickers and screenshots, or anything with a transparent background. TheWebP to PNG converter keeps transparency and stores the pixels losslessly.
Two things to know before you convert. An animated WebP becomes a still picture of its first frame, because both converters save a single image. And camera details stored in the WebP are not copied across. Converting a lossy WebP also cannot bring back detail that was already dropped.
Keeping it as WebP
If the WebP works where you need it and only the size or dimensions are wrong, stay in the format.Resize WebP changes the pixel size and saves WebP again, and theWebP compressor lowers the quality to shrink the file while keeping transparency. Going the other way, the JPG to WebP converter makes WebP copies of your photos for a website.
Not sure WebP is the right format for a page at all? The best image format for the web guide compares it with JPG, PNG, SVG and the others.
Questions
Can I just rename a .webp file to .jpg?
No. Renaming changes the label, not the contents: the file is still WebP inside, and programs that check the data will still refuse or misread it. Convert it instead.
Is a WebP file lossy or lossless?
Either. Whoever saved it made the choice, and the .webp extension alone does not tell you which. If you convert it to PNG, the PNG keeps exactly the pixels the WebP had, including any loss from earlier.
Why does my converted file come out bigger than the WebP?
WebP usually packs the same picture into fewer bytes than JPG or PNG. Converting keeps the picture but uses the other format’s less efficient compression, so the file grows.