Compress Images for Web: Free Image Compressor
Make JPG, PNG and WebP images smaller for faster websites, losslessly or with smart lossy compression.
Make JPG, PNG and WebP images smaller for faster websites, losslessly or with smart lossy compression.
To compress images for the web, resize each image to the largest width it is actually displayed at, then save it as WebP or JPEG at quality 70–85. Aim for under 200 KB for a full-width hero image, under 100 KB for blog images and under 30 KB for thumbnails.
Image weight is usually the biggest part of a page download. Three steps cover almost every case:
Upload one image or a whole batch, choose Smart lossy or Lossless, and download the results. Everything runs in your browser, so nothing is uploaded to a server. If a compressed file would come out larger than your original, the tool keeps the original instead.
These are practical targets for a typical site, not hard rules. Use the width your layout actually displays, and double it only if you serve a separate high-density (retina) version.
| Image type | Max width | Target file size | Format | Quality |
|---|---|---|---|---|
| Full-width hero / banner | 1600–2000 px | Under 200 KB | WebP (or AVIF) | 70–80 |
| Blog or article image | 1200 px | Under 100 KB | WebP or JPEG | 75–85 |
| Product photo | 1000–1500 px | Under 150 KB | WebP or JPEG | 80–85 |
| Thumbnail / card | 300–600 px | Under 30 KB | WebP or JPEG | 70–80 |
| Logo, icon, screenshot | As displayed | Under 50 KB | SVG, PNG or lossless WebP | Lossless |
If a hero image still lands well above 200 KB at quality 70, it is usually too wide or has a lot of fine detail such as foliage or noise. Crop it tighter or reduce the width before lowering quality further.
| Format | Best for | Notes |
|---|---|---|
| WebP | Photos and graphics on almost any site | Supports transparency; supported by all current browsers. A safe default. |
| AVIF | Large photos where every kilobyte counts | Often smaller than WebP at the same quality, but slower to encode and not accepted by every CMS or upload form. |
| JPEG | Photos for email, older platforms, marketplaces | Works everywhere; no transparency. |
| PNG | Logos, UI screenshots, images with text | Lossless and sharp, but large for photos. |
In Smart lossy mode, the Auto output turns PNGs into WebP (keeping transparency) and JPEGs into optimized JPEGs. You can also force WebP or JPG. This compressor does not write AVIF; if you want AVIF files, use the image converter and set the quality there. For a deeper comparison, read WebP vs AVIF vs PNG vs JPG.
Smart lossy re-encodes the image at the quality you set on the slider (30–95%). The default of 75% is a good starting point for photos. Go up to 85% for product shots where texture matters, or down to 65% for small thumbnails.
Lossless leaves every pixel exactly as it is. It removes hidden metadata such as EXIF camera data and GPS location, and for PNGs it tries a re-encode in case that comes out smaller. Savings are smaller, often 5–20%, but the image is guaranteed identical. Use it for logos, diagrams and screenshots with text.
Largest Contentful Paint (LCP) measures how long it takes for the biggest visible element on a page to appear. On most pages that element is the hero image or a large product photo. Google treats an LCP of 2.5 seconds or less as good, and LCP is one of the Core Web Vitals used in its page experience signals.
A smaller hero file downloads sooner, especially on mobile connections, which directly helps LCP. A few habits make the biggest difference:
width and height attributes on images so the layout does not jump while they load.srcset and sizes.<img src="hero-1600.webp"
srcset="hero-800.webp 800w, hero-1600.webp 1600w"
sizes="100vw" width="1600" height="900"
alt="Describe the image" fetchpriority="high">Check your result with PageSpeed Insights or the Core Web Vitals report in Google Search Console. For a full workflow, see how to compress images for a faster website.
Use lossy compression at quality 75–85, which looks the same as the original on screen, or use Lossless mode, which only removes hidden metadata and keeps every pixel. Resizing to the displayed width usually saves more than any quality setting.
One that lets you pick the output format and quality, keeps the original when it cannot make a file smaller, and works on batches. This tool does all three in your browser, so your images are never uploaded.
As a practical target, keep hero images under about 200 KB, content images under 100 KB and thumbnails under 30 KB. Smaller is better as long as the image still looks sharp.
WebP is usually 25–35% smaller than JPEG at the same visual quality and is supported by all current browsers, so it is the better default. JPEG is still fine where WebP is not accepted, such as some email tools or older CMS plugins.
Yes. The largest image on a page is often the Largest Contentful Paint (LCP) element, so a smaller hero image loads sooner and improves LCP. Google rates LCP as good at 2.5 seconds or less.
Yes. Smart lossy mode turns a PNG photo into WebP by default, which is often several times smaller. For logos and screenshots with sharp edges, try Lossless first so the PNG stays pixel-perfect.
Lossy compression usually saves 40–80%. If a file cannot be made smaller, the original is kept.
Lossless mode keeps every pixel. Lossy mode at 70–80% quality is visually almost identical.