The free Vivlab image compressor shrinks your photos by converting them to WebP, right in your browser. Your files never leave your computer.
Upload an image, tweak the quality and size, compare before and after, then download the optimized version to speed up your site.
How it works
Drag a JPG, PNG or WebP file into the zone, or click to pick one from your device.
Adjust the quality and the maximum long-edge size, then compare before and after by dragging the handle across the image.
Grab the lighter file as WebP; the percentage of weight saved shows next to the preview.
Images that are too heavy slow down your pages, especially on mobile and over 4G. And speed directly shapes your visitors' experience and your ranking: Google favors fast sites. Lighter visuals mean better performance and better SEO.
The WebP format delivers quality on par with JPEG or PNG at a much smaller size. It's now one of the best-suited formats for the web: every modern browser supports it, and it often cuts a file's size in half.
Compression works on two fronts: quality, which simplifies the least visible details, and dimensions, which reduce the number of pixels. By adjusting these two sliders and comparing before and after, you find the right balance between sharpness and lightness.
Resize your image before putting it online: there's no point showing a 4000 px wide photo in an area that's only 800 px. Matching the real size to the display stays the most effective way to lighten a file.
Frequently asked questions
Which formats can I compress?
You can load a JPG, PNG or WebP. The output is always WebP, a modern format read by every recent browser and much lighter, for photos as well as screenshots.
How much weight will I save?
It depends on the source image, but a photo often drops to between half and a fifth of its original size. A flat-colour PNG can shrink even more once it becomes WebP.
Which quality should I choose?
80 works for most photos shown on the web, with barely visible loss. Go down to 70 to save a few more kilobytes. Below 60, artefacts start to show in gradients.
Can I also reduce the dimensions?
Yes, the maximum-size slider resizes the longest edge. A 4000 px photo rarely needs to exceed 1600 to 2000 px for a website, which trims the file noticeably.
Are my files sent anywhere?
No. Compression runs in your browser through a WebP encoder executed locally. Your images never leave your computer, even for a confidential visual.
Keep exploring