Short answer: JPG or WebP?
Use WebP for images on websites and in apps, where it usually gives a smaller file than JPG and also supports transparency and animation. Use JPG when the file must open in any program, device or upload form without question, such as photos you send to other people, print or attach to forms.
JPG and WebP compared
| Property | JPG | WebP |
|---|---|---|
| Compression | Lossy | Lossy or lossless |
| Transparency | No | Yes |
| Animation | No | Yes |
| File extensions | .jpg, .jpeg, .jpe, .jfif | .webp |
| MIME types | image/jpeg | image/webp |
| Developed by | Joint Photographic Experts Group | |
| First released | 1992 | 2010 |
| What opens it | JPEG opens in every web browser, in Windows Photos, macOS Preview, the photo apps of iOS and Android, and in editors such as Photoshop and GIMP. | WebP opens in current Chrome, Firefox, Edge and Safari (from Safari 14), on Android, and in editors such as GIMP and recent versions of Photoshop. |
Measured file sizes
These are file sizes we measured with NexMedia's own conversion engines, not estimates. In our test of 4 images, every file was converted at NexMedia's default settings, and each cell is the size of the file the converter produced.
| Sample | PNG source file | JPG (default settings) | WebP (default settings) |
|---|---|---|---|
| Photograph A (Kodak test set) | 503 kB | 54.6 kB | 35.1 kB |
| Photograph B (Kodak test set) | 558 kB | 50.9 kB | 32.4 kB |
| Screenshot of a web application | 37.2 kB | 34.3 kB | 18.9 kB |
| Flat-colour cartoon illustration | 269 kB | 17.6 kB | 9.8 kB |
| All samples together | 1.37 MB | 157 kB | 96.3 kB |
Across all 4 images together, WebP (default settings) came to 61% of the size of JPG (default settings).
WebP (default settings) was smaller than JPG (default settings) for 4 of the 4 images.
The samples
- Photograph A (Kodak test set). Released by Eastman Kodak Company for unrestricted usage. https://r0k.us/graphics/kodak/kodak/kodim03.png
- Photograph B (Kodak test set). Released by Eastman Kodak Company for unrestricted usage. https://r0k.us/graphics/kodak/kodak/kodim23.png
- Screenshot of a web application. CC0 1.0 (Wikimedia Commons, File:Screenshot of Glazba Modelling Homepage.png). https://commons.wikimedia.org/wiki/Special:FilePath/Screenshot_of_Glazba_Modelling_Homepage.png
- Flat-colour cartoon illustration. CC0 1.0 (Wikimedia Commons, File:Spot the cow.png). https://commons.wikimedia.org/wiki/Special:FilePath/Spot_the_cow.png
How this was measured
Engines: libvips 8.14.1 for images and ffmpeg 5.1.9-0+deb12u1 for audio and video, the builds inside NexMedia's conversion worker image. Measured on November 12, 2026.
Image settings were NexMedia's defaults: quality 82, with the lossless option off except where a column says lossless mode. The PNG column is a PNG written by NexMedia's converter (the source PNG went through a lossless TIFF step first), so it reflects NexMedia's PNG encoder rather than the tool that made the original file.
Progressive (interlaced) output is on by default, which typically makes PNG files larger than the same pixels saved without interlacing.
Quality is not measured here. A smaller file is not a better file: encoders trade size against detail differently, and the same quality number means different things in different codecs. Only lossless and uncompressed outputs keep every detail of the data they were given.
Results depend on the content of each file, so other files can give different sizes. Treat these numbers as one reproducible test, not as a rule.
When to choose which
Faster web pages
Replacing JPG photos with WebP is a common way to cut page weight, and every current browser displays WebP. Keep the JPG original as the master.
Photos you share by email or messaging
JPG is accepted by essentially every device and service. WebP is not always accepted by older programs and some upload forms, so JPG is the safer attachment.
Transparent or animated images
JPG can hold neither. WebP keeps a transparent background and can replace an animated GIF.
Repeated editing
Both formats are lossy by default, so each re-save discards more detail. Edit from the original and export once. WebP also has a lossless mode if you need to keep every pixel.
The formats
Convert between them
Converter and compression tools
More comparison guides
Frequently asked questions
Is WebP smaller than JPG?
Often, but not always. The size depends on the image and on the quality setting, and the same quality number means different things in each encoder. The measured section above shows the result for our samples at NexMedia's default settings.
Can all devices open WebP?
All current browsers can, and most current apps and operating systems can. Older photo viewers and some editing programs and upload forms cannot, which is the main reason to keep JPG for files you hand to others.
Will converting JPG to WebP lose quality?
Yes, a little: converting between two lossy formats re-encodes the image, which discards some detail. Use a high quality setting, or convert from the original if you still have it.
