Free online tool

Upload a file

Drop your file hereTap to choose a file

or click to browse, or paste from the clipboard

← Back to Blog

How to Compress WebP Images: Quality Settings and Size Limits

To compress WebP images, save them again as lossy WebP at a lower quality setting, or scale them down to the size your page actually shows them. Quality 75 is a sensible starting point for photos, and if a file has to fit a limit such as 100 KB, you can set the limit instead and keep the highest quality that fits. Zutilium's WebP Compressor does both in most browsers, turns JPG and PNG images into WebP, and shows the old and new size of every file. A WebP that was already compressed well shrinks less than you might expect, so the measured examples below show where the savings come from.

How to compress WebP images with Zutilium

  1. Open the WebP Compressor and click Choose images, drop files on the page, or paste with Ctrl+V or ⌘V. It takes WebP, JPG, PNG, GIF, AVIF, BMP and SVG files, up to 100 images of 50 MB each.
  2. Leave Output format on WebP, the default.
  3. Set Quality, 75 by default. To meet a file size instead, choose a Target size from 50 KB to 1 MB, or Custom size… for any other limit. The slider then reads Best quality allowed, the highest quality the tool may use.
  4. If images are larger than your site shows them, enter a Max width (px) or Max height (px). Bigger images are scaled down to fit, never enlarged or cropped.
  5. Read the line under each file, such as "161 KB → 145.8 KB · 9.4% smaller", and the details below it: dimensions, format and the quality used. With a target, a check mark confirms that the file fits.
  6. Click Compare and drag the divider across edges, text and smooth areas such as sky.
  7. Click Download on a row, or the Download all (ZIP) button to get every result in one ZIP.

Two results need a second look. "Original kept" means a new copy would have been larger, so Keep the original when it is already smaller, ticked by default, returned your file untouched. "Larger" can appear when you convert a JPG or PNG: lower the quality or keep the original file.

Chrome, Edge and Firefox on a computer or Android phone compress everything on your device, and new files carry no camera or location metadata. Safari, and every browser on iPhone and iPad, cannot write WebP, so there WebP output is made on Zutilium's server: the first image is uploaded as soon as you add it, with a notice, and each upload is deleted about a minute later and the result about ten minutes later. To keep everything on your device in those browsers, choose JPG or PNG under Output format before adding images. For more than 100 images, the Bulk Image Compressor takes up to 200; see how to batch compress JPG, PNG and WebP images.

What recompressing a WebP actually saves

A WebP usually shrinks noticeably only when the new quality is below the one it was saved with. The table shows a 1200 × 675 landscape photo stored as a 161 KB lossy WebP, run through the compressor's own code with libwebp, the library behind Chrome's WebP encoder, at Chrome's settings, so your browser's figures will differ slightly. Sizes use the tool's units, where 1 KB is 1,000 bytes.

Setting New file What the row shows
Quality 100 1.06 MB original kept
Quality 90 187.4 KB original kept
Quality 80 158.9 KB 1.3% smaller
Quality 75 (default) 145.8 KB 9.4% smaller
Quality 60 125.8 KB 21.9% smaller
Quality 50 108.1 KB 32.8% smaller
Quality 75, max width 800 72.9 KB 54.7% smaller
  • Raising the quality does not bring detail back. At 90 the new copy was 16% larger than the original, and Google's WebP FAQ warns that re-encoding a lossy image at a higher quality usually makes it bigger.
  • This photo behaves like one saved at about quality 80: re-encoding at 80 barely changes its size.
  • Fewer pixels beat lower quality. At 800 × 450 the image keeps 44% of its pixels, and quality 75 at that size saved more than quality 50 at full size.

A WebP exported at a high setting has more to give. The same photo saved at quality 95, 235.2 KB, dropped to 143.2 KB at quality 75, a 39.1% saving.

Which WebP quality setting to use

Quality runs from 10 to 100 and trades detail for bytes; it is not a percentage of the original. The default, 75, is also the default of Google's own cwebp encoder. Treat these as starting points:

Image Start at Look closely at
Photos in articles and listings 75 Grass, hair, fabric
Hero images, product close-ups 80 to 85 Skies, soft shadows
Thumbnails 60 to 70, resized first Edges
Screenshots, charts, text 90 Letter edges
Logos, icons, flat art Lossless Halos around shapes

Quality 100 is a special case. On a computer or Android phone, Chrome, Edge and Firefox switch their WebP encoder to lossless mode at the top of the scale (Chromium source, Firefox source), so 100 there means a lossless file, not a slightly better lossy one. That backfires on photos, as the 1.06 MB row above shows. In Safari and on iPhone and iPad, where the server makes the WebP, 100 stays lossy.

Lossy vs lossless WebP

WebP has two compression modes:

  • Lossy WebP works like JPEG and suits photos. It stores color at half resolution (4:2:0) and drops detail you are unlikely to notice, and Google's WebP overview puts it 25 to 34% smaller than JPEG at equal SSIM, a measure of visual similarity.
  • Lossless WebP works like PNG: every pixel comes back exactly, and Google puts it 26% smaller than PNG. It suits screenshots, logos and flat graphics, but photos come out huge.

Both modes keep transparency, and Google reports that lossy WebP with transparency is typically a third the size of a PNG.

The compressor writes lossy WebP at every quality from 10 to 99. For a lossless file, use cwebp's -lossless option, shown below, or choose PNG output with All colors (lossless). Don't rely on quality 100 for screenshots either: where Chrome and Edge make it lossless, they use libwebp's fastest lossless method, and in the same measurements a 91.5 KB PNG screenshot came out at 184.9 KB.

To see which mode a file uses, look for VP8L near its start, as the guide to converting WebP to PNG shows.

Quality or a size limit

Use Quality when images should look consistent, as in a product gallery. Use Target size when a CMS, marketplace or page budget sets a hard cap, and each file gets the highest quality that fits.

In Chrome, Edge and Firefox on a computer or Android phone, a target makes the compressor try your Best quality allowed first, then search down to quality 50. Only if 50 is still too big does it reduce the dimensions, and after two reductions the floor drops to 25.

On the landscape photo, a 100 KB target returned 99 KB: quality 50 alone gave 108.1 KB, so the tool trimmed the image to 1198 × 674 and settled on quality 53 (resizing softens the picture slightly, which saved 11% at quality 50; browsers resize a little differently, so expect nearby numbers). A 50 KB target needed 775 × 436 pixels at quality 50. If you know the display width, enter it in Max width (px) so the budget is spent at a size you chose.

The tool counts 1 KB as 1,000 bytes, so results also pass forms that count 1,024. For a JPG under a form's limit, Compress Image to 100KB uses the same engine, and the guide to compressing an image to 100KB explains the units.

Turning JPG and PNG into small WebP files

Converting is where WebP saves the most, provided the source is good. These rows use the same landscape saved as JPG at quality 90 and 60, and a 1440 × 1000 web page screenshot saved as a 91.5 KB PNG.

Source WebP quality Result Change
JPG q90, 285.5 KB 75 142 KB 50.3% smaller
JPG q90, 285.5 KB 90 244.1 KB 14.5% smaller
JPG q60, 126.9 KB 75 122.7 KB 3.3% smaller
JPG q60, 126.9 KB 90 216.1 KB 70.3% larger
PNG, 91.5 KB 90 53.8 KB 41.2% smaller
PNG, 91.5 KB 75 34.5 KB 62.3% smaller
  • Convert from the best copy you have, such as the camera original. A JPG that was already squeezed has little left to remove, and asking for a higher WebP quality than it can use only adds bytes: the quality-60 JPG grew 70% at quality 90.
  • The original is kept only when the format stays the same, so a JPG that comes out larger is still handed back as a larger WebP. Check the row before you download.

Check the result before you publish

  • Open Compare and drag the divider slowly across the details in the quality table: texture, gradients, letters and edges.
  • The comparison scales large images to fit the page. For a pixel-level check, open the downloaded file in a new browser tab at 100% zoom, then look at it at the size your page displays.
  • Thin red or blue details and small colored text can look soft, because lossy WebP keeps color at half resolution; cwebp's -sharp_yuv option and GIMP's Use Sharp YUV setting help.
  • Moving the slider recompresses from the files you added, not the last result, so trying settings adds no extra loss.

Other ways to compress WebP

cwebp is Google's command-line encoder. It reads PNG, JPEG, TIFF and still WebP files, copies no metadata unless you ask, and offers the same settings:

cwebp -q 75 photo.jpg -o photo.webp
cwebp -q 75 -resize 1200 0 photo.png -o photo.webp
cwebp -size 100000 photo.jpg -o photo.webp
cwebp -lossless screenshot.png -o screenshot.webp

Line two scales to 1200 pixels wide, keeping the proportions; line three aims at 100,000 bytes over several partial passes; line four writes lossless WebP.

GIMP's WebP export offers the same choices in a dialog: Lossless, Image quality, Alpha quality and Use Sharp YUV, plus Save animation for animated files.

Troubleshooting

Every WebP says "original kept"

Your files were already compressed at or below the quality you chose. Try 60 to 70, or set Max width (px) to the width your page shows, which saved the most in the example above.

The page says WebP images are compressed on the server

Safari, and every browser on iPhone and iPad, cannot create WebP files from a web page, so WebP output is made on Zutilium's server: the first image is uploaded as soon as you add it, with a notice. That route accepts JPG, PNG, WebP, AVIF and TIFF files up to 10 MB. Choose JPG or PNG under Output format before adding images to keep files on your device; on a computer or Android phone, Chrome, Edge or Firefox also work.

An animated WebP became a still image

The compressor makes still images, so an animated WebP comes out as its first frame, and the Safari server route refuses animated files. Export the animation again from the app that made it, with a lower quality or frame rate.

The site does not accept WebP

Some upload forms take only JPG or PNG. Choose JPG under Output format, or use the WebP to JPG Converter for files you already have.

Frequently asked questions

What is the best quality setting for WebP?

For most photos, 75, the default here and in Google's cwebp. Hero and product images can justify 80 to 85, and screenshots with text usually need 90. Then pick the lowest setting at which the comparison looks right to you.

Can you compress a WebP without losing quality?

Not a lossy one: every lossy save discards a little detail, so the practical goal is no visible change. Keep the quality close to the file's original and reduce the dimensions instead. A lossless WebP can be re-encoded with cwebp -z 9, the slowest lossless level, which keeps every visible pixel.

Why is my WebP bigger than the original JPG?

Usually the JPG was already heavily compressed, the WebP quality is higher than the JPG's, or the WebP is lossless, which quality 100 produces in Chrome, Edge and Firefox on a computer or Android phone. In the example above, a quality-60 JPG grew 70% at WebP quality 90 but shrank slightly at 75.

Does compressing a WebP keep transparency?

Yes. WebP and PNG output keep transparent areas. Only JPG output fills them, with the color under Background for transparent areas, white by default.

How do I reduce WebP file size to under 100 KB?

Choose 100 KB under Target size. The compressor keeps the highest quality, up to Best quality allowed, that fits, and marks each file "under 100 KB ✓" when it fits. In Chrome, Edge and Firefox on a computer or Android phone, it shrinks the image only if quality 50 is still too big.