How it works
- Drop your JPG files.
- Choose quality or lossless.
- Download the WebP files or a ZIP.
Why use it
- Smaller files at a similar look.
- Adjustable quality or lossless mode.
- Optional maximum size.
- Batch and offline, nothing is uploaded.
JPG to WebP: smaller photos for the web
What you gain
WebP compresses photos more efficiently than JPG: it predicts each block of the picture from its neighbours and stores only the difference. For the same look, the file is smaller, and smaller pictures make web pages load faster, which visitors notice and search engines measure.
We saved six photos as JPG at quality 90, a common setting for cameras and editors, then converted them with this page's default of 82:
| Photo | JPG at 90 | WebP at 82 | Smaller by |
|---|---|---|---|
| Cat, soft background | 251 KB | 82.9 KB | 67% |
| Lake and forest | 1,024 KB | 444 KB | 57% |
| Coffee in knitted gloves | 353 KB | 138 KB | 61% |
| Neon sign at night | 728 KB | 213 KB | 71% |
| Macaw feathers | 469 KB | 134 KB | 72% |
| Sunset | 330 KB | 108 KB | 67% |
At exactly the same visual quality, measured in our comparison of JPG, PNG, WebP and AVIF, WebP was 45 percent smaller than JPG on high quality photos and 17 percent smaller on heavily compressed ones. The rest of the saving in the table comes from 82 being a lower setting than 90, a step that is very hard to see at normal viewing size.
Converting a JPG loses a little
A JPG is already compressed, and converting it to WebP compresses it again. The WebP cannot be better than the JPG it came from, and at a low setting the two kinds of loss add up. Convert from the best version you have: the camera original or a high quality export rather than a JPG that was already shrunk for email. Keep the originals, and use WebP for what you publish.
Choosing the quality
- 82, the default, suits most photos on websites.
- 75 to 80 for large background photos and galleries where size matters most.
- 90 and above only for photos people will zoom into, such as product shots. Files grow quickly up there.
Resizing saves even more than quality: a photo shown 1,200 pixels wide on a page does not need its 4,000 pixel original. Use the longest side setting, or resize image for exact sizes.
Using WebP on a website
Every current browser shows WebP, so a plain <img src="photo.webp"> works for nearly every visitor. Outside browsers, some email apps, older editors and upload forms still expect JPG; keep a JPG for those. For an exact file size limit, compress image can search for the best WebP quality under a target such as 200 KB.
If something goes wrong
- The WebP looks blotchy. The JPG was already heavily compressed, or the quality is low. Start from a better original or raise the quality.
- The WebP is bigger than the JPG. The JPG was saved at a low quality. Keep it as it is, or lower the WebP quality.
- A program refuses the file. It does not support WebP. Keep the JPG for it.
How we tested. Six CC0 photos scaled to 2048 pixels wide, saved as JPG at quality 90 with MozJPEG, then converted with the libwebp encoder and default setting of this tool in Chrome.
Questions and answers
How much smaller is WebP than JPG?
Typically 20 to 35 percent at similar visual quality, depending on the picture.
Should I delete my JPG originals?
Keep them. WebP is lossy too, so converting again from a WebP loses a bit more detail.
Which browsers show WebP?
All current browsers.
Related guides
JPG, PNG, WebP or AVIF: which format to use
We saved six photos and a graphic in all four formats at the same visual quality and compared the sizes. The newer formats win on photos by a wide margin, but each format still has a job.