JPG vs WebP: which should you use?

A direct answer, a property comparison, measured file sizes and when to pick each format.

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

PropertyJPGWebP
CompressionLossyLossy or lossless
TransparencyNoYes
AnimationNoYes
File extensions.jpg, .jpeg, .jpe, .jfif.webp
MIME typesimage/jpegimage/webp
Developed byJoint Photographic Experts GroupGoogle
First released19922010
What opens itJPEG 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.

Output size of each sample image
SamplePNG source fileJPG (default settings)WebP (default settings)
Photograph A (Kodak test set)503 kB54.6 kB35.1 kB
Photograph B (Kodak test set)558 kB50.9 kB32.4 kB
Screenshot of a web application37.2 kB34.3 kB18.9 kB
Flat-colour cartoon illustration269 kB17.6 kB9.8 kB
All samples together1.37 MB157 kB96.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

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.