WebP vs PNG vs JPG: What WebP Is and When to Use It
What is WebP and how does it compare? WebP vs PNG vs JPG on file size, transparency and browser support, plus AVIF vs WebP and how to convert WebP to JPG.
Updated
WebP is an image format from Google that does the jobs of both JPG and PNG in smaller files. It has a lossy mode for photos, a lossless mode for graphics, and supports transparency and animation in both. Every current browser displays it, so for images on a website WebP is usually the best default, with JPG and PNG kept for compatibility with older software.
What is WebP?
Google announced WebP in 2010. The lossy mode is built on the same technology as the VP8 video codec: each image is compressed the way a single video frame would be. Lossless compression and transparency were added shortly afterwards, followed by animation.
That gives WebP an unusual range. One format covers:
- Lossy photos, where it competes with JPG.
- Lossless graphics, where it competes with PNG.
- Lossy images with a transparent background, which neither JPG nor PNG can do.
- Animation, where it competes with GIF.
The file extension is .webp and the MIME type is image/webp.
WebP vs PNG vs JPG compared
| JPG | PNG | WebP | |
|---|---|---|---|
| Compression | Lossy | Lossless | Lossy or lossless |
| Transparency | No | Yes | Yes, in both modes |
| Animation | No | No (APNG extension only) | Yes |
| Photo file size | Small | Very large | Smallest of the three |
| Graphics file size | Poor quality on sharp edges | Small to medium | Smaller than PNG |
| Browser support | Universal | Universal | All current browsers |
| Support in other software | Universal | Universal | Good, with gaps in older apps |
How much smaller is WebP?
Google's own published comparisons put lossy WebP at 25 to 34 percent smaller than JPG at equivalent quality, and lossless WebP at about 26 percent smaller than PNG. Results vary by image, so treat those as typical figures and not guarantees.
The largest savings come from a case the averages hide. A product photo with a transparent background has to be a PNG if you are limited to the older formats, and photographic PNGs are huge. The same image as lossy WebP with transparency is often a small fraction of the size, with no visible difference.
Where WebP gains little: an already well-compressed JPG at a low quality setting, and very small icons where the file is mostly overhead.
WebP vs JPG
Choose WebP over JPG for photos on a website. The files are smaller at the same visual quality, and the artifacts at low quality tend to look like soft blur where JPG shows hard-edged blocks.
Keep JPG when the image is leaving the browser: email attachments, files for print shops, uploads to forms that list accepted types, and anything a non-technical recipient needs to open without trouble. JPG is also what cameras produce, and converting a JPG to lossy WebP is a second lossy step, so convert from the best original you have.
WebP vs PNG
Choose WebP over PNG for delivery on the web. Lossless WebP stores identical pixels in less space. If a small amount of loss is acceptable, as it usually is for illustrations and photos with transparency, lossy WebP is dramatically smaller.
Keep PNG as the working and archive format. It is supported by every editor, it is always lossless, and there is no setting to get wrong. A common pattern is to keep PNG masters and export WebP for the site. The two-way comparison of the older formats is in JPEG vs PNG.
AVIF vs WebP
AVIF is a newer format based on the AV1 video codec. Compared with WebP it usually produces smaller files at the same quality, holds up better at very low bitrates, and supports HDR and more than 8 bits per channel.
The trade-offs are encoding speed, which is noticeably slower, and software support outside browsers, which still trails WebP. In browsers, AVIF arrived in Chrome in 2020, Firefox in 2021, Safari in 2022 and Edge in early 2024, so current versions of all four display it.
A reasonable policy: AVIF where your pipeline supports it, WebP as the standard, JPG or PNG as the last fallback.
Browser support
WebP has been in Chrome since the format's early years. Edge added it in 2018, Firefox in early 2019, and Safari in version 14 in 2020. Any browser updated since then displays WebP, which covers practically all web traffic today.
If you must serve very old browsers, the picture element lets the browser choose. List an AVIF source, then a WebP source, then a plain img with a JPG. The browser takes the first type it understands, and anything that understands none of them falls back to the img.
The gaps are outside the browser. Some older desktop applications, content management systems, email clients and upload forms still reject .webp. That is the main reason people need to convert back.
How to convert to WebP
The WebP Converter turns PNG, JPG, GIF, BMP and AVIF files into WebP. Drop in one image or a batch, set the quality slider, and each file shows its new size and the saving against the original. Download files individually or all together as a ZIP. Transparency in PNG sources is kept. An animated GIF is converted as a single still frame, not as an animation.
Quality around 80 is a sound starting point for photos. Go to 90 or higher for screenshots and artwork with sharp edges, where artifacts show first. More on picking the number is in how to compress images without losing quality.
How to convert WebP to JPG
The WebP Converter only outputs WebP, so it is not the tool for the reverse trip. Use the Image Compressor instead:
- Drop the
.webpfile, or a batch of them, into the Image Compressor. - Set the output format to JPEG. Choose PNG instead if the image has transparency you need to keep.
- Set quality to 85 to 90. The WebP has already been through one lossy step, so a higher setting avoids stacking visible artifacts.
- Check the before and after preview, then download the file or the ZIP.
JPG has no transparency, so transparent areas in the WebP are filled with white.
Without any extra tool, Preview on macOS opens WebP files and exports them as JPEG from the File menu, and current versions of Paint on Windows can open a WebP and save it as JPEG. To stop a browser handing you WebP in the first place, there is no dependable setting. Converting after download is the practical route.
Which format to use
- Photos on a website: WebP, or AVIF with a WebP fallback.
- Transparent images on a website: WebP.
- Logos and icons: SVG first, as explained in SVG vs PNG, otherwise WebP or PNG.
- Files to email, print or upload elsewhere: JPG for photos, PNG for graphics.
- Master copies for editing: PNG or the original camera file.
For formats beyond these three, including GIF, HEIC and TIFF, see image file formats.
Try it
Drop a few JPG and PNG files into the WebP Converter, leave the quality at its default of 85, and read the saving shown on each card. Lower the slider until you can see a difference, then step back up.