To compress WebP, re-encode it in lossy mode at a quality around 75, the default in Google's cwebp encoder, then resize it to the width it's actually displayed at. Use lossless or near lossless mode for flat graphics and screenshots. For a hard size limit, a WebP compressor that takes a target in KB finds the right quality for you.
WebP already tends to beat JPEG and PNG on file size, but a badly saved WebP can still be heavy. The mode, the quality number and the pixel dimensions all matter, and dimensions usually matter most.
How to compress WebP images online
When a form or a page budget gives you a fixed number, a target size tool is quicker than trial and error. The Compress WebP tool runs in your browser, so the file isn't uploaded to a server.
- Open the tool and add one or more WebP files.
- Enter the size you need in KB, or set the quality by hand.
- Start the compression. It lowers quality first and only reduces the dimensions if quality alone can't get under the target.
- Download the result and check it at 100% zoom on its busiest area, such as hair, foliage or small text.
If you're starting from a JPEG or PNG, convert it with PNG or JPG to WebP first. Convert from the original whenever you can. WebP faithfully keeps the blocky artifacts of an already compressed JPEG, and you pay bytes to store them.
New to the format? The guide on what a WebP file is covers where it came from, what it supports and which apps open it.
Lossy, lossless or near lossless: which WebP mode should you use?
WebP has more than one way of storing an image, and the mode matters more than any single quality number.
Lossy WebP
This works like JPEG. It discards detail you're unlikely to notice. Use it for photos, product shots, hero images and anything with soft gradients. It also supports transparency, which JPEG can't do, so a product cut out on a transparent background can stay lossy and small.
Lossless WebP
Every pixel is kept exactly, like PNG. Use it for logos, icons, diagrams and screenshots with sharp text. It usually comes out smaller than the same image saved as PNG.
Near lossless WebP
A middle option in Google's encoder. It adjusts pixel values slightly so the lossless encoder can pack them better, with little visible effect. It suits screenshots and illustrations where lossy mode would smear the edges but lossless is still too big.
Not sure which mode fits? Export the image both ways and compare. Keep whichever file is smaller and still looks right at full size. A screenshot with a photo pasted into it is the classic tricky case, and near lossless often wins there.
Google documents all three modes, plus the quality and target size options, on the cwebp reference page.
What quality setting should you use to compress WebP?
WebP quality runs from 0 to 100, and cwebp uses 75 when you don't set one. That default is a good place to start for photos. From there:
- Go up to about 80 to 85 for large hero images that people will look at closely, or images with skin tones and fine texture.
- Go down to about 60 to 70 for thumbnails, card images and background photos covered by text.
- Avoid very low values on images with text in them. Letters smudge quickly in lossy mode.
WebP quality numbers don't map one to one onto JPEG quality numbers. Don't copy your JPEG setting across and assume it means the same thing. Compare the output by eye at the size it will be shown, ideally on a phone as well as a laptop.
How to reduce WebP size by resizing
Dimensions usually matter more than quality. An image saved 3000 pixels wide for a slot that's 800 pixels wide on screen carries roughly 14 times as many pixels as it needs. No quality setting closes a gap like that.
- Find the largest width the image appears at on your site. Your theme or layout settings usually tell you.
- Double it if you want it crisp on high density phone and laptop screens.
- Resize to that width with the Resize Image tool or your editor, keeping the aspect ratio locked.
- Compress the resized copy.
For responsive sites, export a few widths and let the browser choose with srcset. MDN's guide to responsive images explains how that markup works. The browser then downloads the small file on a phone and the large one on a wide monitor.
Animated WebP files need the same thinking. Each frame adds weight, so cutting the frame count or the pixel size helps far more than nudging quality. A short loop at a smaller size is usually the practical fix.
Why is my WebP file bigger than the original?
This happens more often than people expect. Common causes:
- The source was a small, well optimized PNG with few colors, converted in lossy mode at high quality. Try lossless mode for that kind of image.
- The source was already a low quality JPEG. Re-encoding it at a higher quality makes WebP store all the JPEG noise in detail.
- Quality was set to 100. In lossy mode that produces a large file with almost no visible gain.
- The image kept its full camera dimensions.
Some tools automatically keep the original if the new version comes out larger. If yours doesn't, compare the two sizes yourself before replacing anything on your site.
Metadata is rarely the culprit with WebP. By default cwebp copies no EXIF, XMP or color profile data from the source, though other apps may. If colors look washed out after conversion, a missing color profile is a likely reason. Re-export with the profile kept (cwebp has a -metadata icc option for this).
Which WebP compressor settings suit websites and forms?
For a website, think in page weight. A hero image is the heaviest thing on most pages, so give it the most attention: right width, lossy mode, quality in the 70s or low 80s. Thumbnails and icons can go much lower or switch to lossless. The WebP vs PNG guide goes deeper on picking formats for site performance.
All current major browsers display WebP, so it's safe for websites. Upload forms are another matter. Plenty of portals and older desktop apps still reject it. On a Mac, Preview opens WebP files, but its export menu doesn't offer WebP as an output format, so you can't re-save one there.
If a portal or app refuses your file, convert it with WebP to image. Choose JPG for photos and PNG if the image has transparency. Then compress the JPG or PNG to the form's limit as usual.
Free tools that run in your browser
Frequently asked questions
What is the best quality setting to compress WebP?
Start at 75, the default in Google's cwebp encoder, and adjust by eye. Large hero images may need 80 to 85, while thumbnails often look fine at 60 to 70.
How do I reduce WebP size without losing quality?
Use lossless mode for graphics and screenshots, and resize the image to the width it's displayed at. Lossless keeps every pixel, and smaller dimensions cut the file without visible loss at display size.
Is there a free WebP compressor that doesn't upload my files?
Yes. ConvertorLab's Compress WebP tool runs in your browser, so the image stays on your device. You can set a target size in KB or choose quality by hand.
Is lossless WebP smaller than PNG?
Usually, yes. Lossless WebP keeps every pixel like PNG but tends to pack graphics, logos and screenshots into a smaller file.
Does compressing WebP remove transparency?
No. Both lossy and lossless WebP support an alpha channel, so transparent backgrounds survive compression. Transparency is only lost if you convert to a format like JPG.
Why did converting to WebP make my image larger?
Usually the wrong mode or quality was used, such as lossy mode at high quality on a simple graphic, or re-encoding a noisy JPEG. Try lossless for graphics and a lower quality for photos.
