Web Design & UI/UX8 min read

JPG vs WebP: Which Image Format to Export for Web, Email and Print

WebP for photos on a web page, JPG for email and print. The same photo measured in both formats, five more photos, the size limits, a decision table and the export settings.

By Boone
XLinkedIn
JPG vs WebP: Which Image Format to Export for Web, Email and Print

You finish a photo, hit export, and the menu asks: JPG or WebP? Both are fine for photos and they look the same on screen, so most people keep whatever the tool picked last time. The right answer depends on where the image goes next. Here is the same photo in both formats with the real file sizes, where each one breaks, and a table for the exports you make every week.

Same photo, two files

Both formats throw away detail your eye will not miss, which is why photos get so small. WebP does it with a newer method, so it reaches the same look with fewer bytes.

JPG, 74 KB

A potted plant photo saved as plant.jpg, labeled 74 KB, JPG quality 75

WebP, 56 KB

The same potted plant photo saved as plant.webp, labeled 56 KB, WebP quality 86
Same 800 by 1200 photo. We saved the JPG at quality 75, then raised the WebP quality step by step until it matched the JPG's measured sharpness (SSIM). That landed at quality 86 and 56,132 bytes against 74,227: 24% smaller for a picture you cannot tell apart.

The quality numbers do not line up between formats. A WebP at 86 is not "better" than a JPG at 75; the two scales are just different. Compare files by how they look, not by the slider.

How much smaller, really

One photo is not a rule, so we ran the same test on five photos from our library.

Photo, 800 by 1200JPG, quality 75WebP, same lookSaved
Plant on a plain wall74,227 bytes56,132 bytes24%
Croissant and coffee159,431 bytes127,058 bytes20%
Dog in a field86,304 bytes71,912 bytes17%
Concert crowd82,153 bytes74,078 bytes10%
Pasta on a plate140,165 bytes129,118 bytes8%

Every photo came out smaller as WebP, by 8% to 24%. Google's own study of lossy WebP reports 25% to 34% at the same quality, so treat the saving as real but dependent on the photo. Soft, smooth backgrounds gain the most; busy detail like a crowd or a textured plate gains less.

WebP is right on a web page

A shop product page for a desk plant at 34 dollars with an Add to Cart button, the photo saved as plant.webp

Every current major browser shows WebP: Chrome, Safari, Firefox and Edge. So on your own site there is no reason left to ship the bigger file. Three cases make it an easy call:

  • A photo on a web page. Product shots, hero images, blog photos. Same look, fewer bytes.
  • An image that needs a see-through background. WebP keeps transparency, even when it is compressed like a photo. JPG has no transparency at all.
  • Something that moves. WebP can hold an animation, so it replaces a GIF at a fraction of the weight. JPG is always one still frame.

Here is the transparency case. The same round sticker, placed on a colored section of a page:

Sticker as JPG

A round green New In sticker sitting inside a white square on a sage green banner

Sticker as WebP

The same round sticker sitting cleanly on the sage green banner with no box around it
A JPG has no see-through pixels, so the export fills the corners with white and the sticker lands in a box. The WebP keeps the edge clear, so the sage background shows around the circle. A PNG would also work here, at a bigger file.

JPG is right when the photo leaves your site

The moment the file goes somewhere you do not control, the newer format becomes a risk.

Email. The same newsletter, opened in the classic Outlook desktop app on Windows:

WebP in classic Outlook

A shop newsletter whose main photo shows as an empty box with a broken image icon labeled plant.webp

JPG in classic Outlook

The same newsletter with the plant photo showing, labeled plant.jpg
That app renders email with Word's engine and does not display WebP, so the hero photo is an empty box above the Shop Now button. Current Apple Mail shows WebP and Gmail quietly converts it to a JPG, but you cannot choose which app your list opens with. A JPG shows everywhere.

Print. Lossy WebP stores color only as 8-bit Y'CbCr, the screen-style color model, so it cannot carry CMYK, the four inks a press prints with. JPG can, and print shops accept it. Send JPG, or the PDF or TIFF the shop asks for.

Very large images. WebP has a hard ceiling of 16,383 pixels on each side. JPG goes to 65,535.

Bar chart: WebP longest side 16,383 pixels, a stitched panorama of 24,000 pixels past the WebP limit, JPG longest side 65,535 pixels

A stitched panorama, a long infographic or a full-page scroll capture can pass 16,383 pixels without anyone noticing. Keep those as JPG, or cut them into parts before you convert.

JPG or WebP: a decision table

Where the image goesPickWhy
Photo on your websiteWebPSame look, smaller file
Product grid or galleryWebPSavings add up across many photos
Image with a see-through background on a pageWebPKeeps transparency; JPG cannot
Short animation on a pageWebPReplaces a GIF; JPG cannot move
Email newsletterJPGClassic Outlook on Windows does not show WebP
Sent to a print shopJPG, PDF or TIFFWebP cannot carry CMYK
Wider or taller than 16,383 pxJPGOver WebP's size limit
A file a client will open and editJPGOpens in every app and old editor
Logo or iconNeither, SVGSee SVG vs PNG

Export it: the settings we used

If your design tool has no WebP option, export a high quality JPG or PNG and convert it. Google's free command line encoder, cwebp, is what we used for the numbers above:

bash
# photo for the web, method 6 is the slowest and smallest cwebp -q 86 -m 6 plant.png -o plant.webp

Squoosh, also from Google, does the same in a browser tab with a live side by side preview, so you can lower the quality until you see a difference and stop one step before it.

On your own site you can serve WebP and keep a JPG as a fallback for anything that cannot read it. The browser takes the first format it understands:

html
<picture> <source srcset="plant.webp" type="image/webp"> <img src="plant.jpg" alt="Desk plant in a white pot" width="800" height="1200"> </picture>

Keep the original full-quality file as the master. Every JPG and WebP is an export from it, never from each other, because saving a compressed file again loses detail twice. For the pixel size to export at, see what DPI for web images.

FAQ

Is WebP better than JPG?

For photos on a website, yes: it looks the same and the file is smaller, by 8% to 24% on the photos we measured. For email, print and images wider than 16,383 pixels, JPG is the safer format.

Is WebP smaller than JPG at the same quality?

Usually. Our plant photo was 56 KB as a WebP against 74 KB as a JPG at the same measured sharpness. Google's study reports 25% to 34% smaller. How much you save depends on the photo.

Can I use WebP images in email?

Not safely. Current Apple Mail shows them and Gmail converts them to JPG, but the classic Outlook desktop app on Windows (versions 2007 to 2019) does not, and the image turns into an empty box. Use JPG in newsletters.

Can you print a WebP image?

Convert it first. Lossy WebP cannot store CMYK color, and print shops work with JPG, PDF or TIFF.

Does WebP support transparency and animation?

Yes, both. It keeps a see-through background even when it is compressed like a photo, and it can replace an animated GIF. JPG supports neither.

Should I convert all my JPGs to WebP?

Only the ones on your website, and only from the original file. Converting an already compressed JPG to WebP stacks two rounds of compression. Keep JPG copies for email, print and clients.

Sources

More from Brainy Papers

Keep reading