JPG to WebP
Published Updated
Re-encode a JPG as WebP at any quality from 10 to 100, starting at 80. A test photo came out 81% smaller in Chrome at the default, and 6.4 times larger at 100.
One photo at five slider positions
File size depends heavily on the slider. A 2000 x 1500 test photo stored as a 307,159-byte JPG, run through the tool's steps:
| Slider | WebP, Google Chrome 156 | WebP, Firefox 155 | Against the JPG |
|---|---|---|---|
| 10 | 20,884 B | 20,544 B | 93% smaller |
| 50 | 32,936 B | 32,444 B | 89% smaller |
| 80 (start) | 59,410 B | 59,108 B | 81% smaller |
| 92 | 164,308 B | 166,968 B | 47% smaller |
| 100 | 1,968,472 B, lossless | 1,535,620 B, lossless | 5 to 6.4 times larger |
Google's WebP overview puts lossy WebP at 25 to 34% smaller than a JPEG of equal SSIM quality. The table's savings are larger because its settings are not matched for equal quality, so judge the pictures as well as the numbers. At 100 the file holds a VP8L stream, the lossless mode of RFC 9649, which explains the jump.
A second round of lossy compression
A JPG has already thrown detail away. The tool decodes it to pixels and encodes those pixels again with VP8, which RFC 6386 describes as working only with 8-bit YUV 4:2:0 images. WebP cannot bring back what the JPG lost, and it adds its own small errors on top.
So start from the best copy you have, ideally the camera original, and convert once. To shrink a JPG without changing its format, use JPEG Compressor.
Converting JPG to WebP
Step 1
Add one JPG
Choose a .jpg or .jpeg file of up to 10,000 pixels per side.
Step 2
Set the quality
Pick a value between 10 and 100 (80 to begin). Each conversion starts from the original JPG, never from the last WebP.
Step 3
Check the size and download
The result line shows the JPG size beside the WebP size. The file keeps its name with .webp at the end.
Safari and the slider
Safari cannot encode WebP from a canvas, according to MDN's browser compatibility data, and MDN's toBlob page says PNG is used whenever the asked-for type is missing. In Playwright's WebKit build (not the Safari app) the canvas gave a PNG almost ten times the size of the JPG at every slider position. The tool checks the result, shows a message in place of that PNG and saves nothing. Chrome 156 and Firefox 155 wrote real WebP files in our test.
What the WebP keeps and drops
- Kept: the full pixel size, and the upright orientation of phone photos, because browsers draw images with image-orientation: from-image by default.
- Dropped: EXIF and XMP. WebP can hold both in chunks of its own, but the canvas carries only pixels. Chrome writes a colour profile; Firefox writes no extra chunks.
- Converted: colours. The canvas works in sRGB unless told otherwise, per the HTML canvas section, so wide-gamut colours are mapped into sRGB.
JPG to WebP: answers
What quality should I use?
Begin at the default 80, which cut the test photo by 81%. If hair or foliage turns smeary, try 90 to 92. Below 50 the file barely shrinks further (32,936 bytes at 50, 20,884 at 10) while more detail is lost.
Why did quality 100 make the file so much bigger?
At 100, Chrome and Firefox both switch to lossless WebP, which stores every decoded pixel exactly, including the noise and blocks the JPG compression left behind. The test photo became 1,968,472 bytes in Chrome and 1,535,620 in Firefox.
Does the WebP keep the camera details and GPS position?
No. Only pixels reach the canvas, so the EXIF block with camera model, capture time and location is left behind. Keep the JPG if you sort photos by that data.
Why will Safari not make a WebP?
In the WebKit build the canvas handed back a PNG instead: 2,995,880 bytes for the test photo, whatever the slider said. This page checks for that, shows a message and saves nothing. In our test Chrome 156 and Firefox 155 wrote real WebP files.
Can I convert a folder of JPGs?
This page takes one photo per run. Bulk Image Resizer saves up to 100 images as WebP in one ZIP, but it scales them all to one width and height.
Will a sideways phone photo come out sideways?
No. Browsers apply the EXIF orientation tag when they draw a JPG, so the pixels are saved already turned the right way. A 400 x 300 test file tagged as rotated came out as an upright 300 x 400 image in all three engines tested.