Compress Images for a Website
Website image weight is a performance decision, not an aesthetic one. Since Largest Contentful Paint became a Core Web Vital, one oversized hero image can pull a page out of the good range on its own. This guide pairs the official LCP threshold with measurements from real files so you can set a budget you can defend.
Try the free tool now
100% in your browser — no upload, no account, no watermark.
Open Compress Images for a Website - Budgets That Match Core Web VitalsThe only external number you need
web.dev defines a good LCP as 2.5 seconds or less, measured at the 75th percentile of page loads, with values above 4.0 seconds rated poor. The page was last updated on 4 September 2025 and we retrieved it on 6 November 2026. Everything below is our own measurement, not a restatement of that guidance.
LCP is the render time of the largest image, text block or video in the viewport - so the image that matters is usually the hero, the product shot or the first card in a grid, not the thirty thumbnails further down.
Measured format comparison on three asset types
Each pair below comes from one run of the Compress Image tool on the stated file, with the output format selected. Byte counts are exact:
| Asset | Original | Best measured output | Setting |
|---|---|---|---|
| Photo, 4000x3000 JPEG | 1,360,339 B | 446,612 B WebP | 30% |
| Full-page screenshot, PNG | 197,518 B | 121,818 B WebP | 30% |
| Logo, 2048x2048 PNG | 129,117 B | 19,054 B WebP | 30% |
The photo and the screenshot needed the lowest preset to shrink substantially, while the logo lost 85% of its weight at the same setting and would still have been 71% smaller at 90%. Flat graphics are where WebP pays off immediately; photographs need a deliberate quality decision.
A budget per image role
These are starting points derived from the measurements above, not platform rules:
- Hero image: aim for 150-250 KB. It is the LCP candidate, so it is the one image worth spending bytes on - but not 1.3 MB.
- In-content photos: 80-150 KB at 1200-1600px wide. They are below the fold and can load lazily.
- Logos and icons: under 40 KB in WebP. A 2048px logo on a 200px slot is waste in both directions.
- Screenshots and diagrams: keep PNG if they contain text and are already small; otherwise WebP at 30-50%.
A page with twenty in-content photos at 120 KB each still weighs 2.4 MB. The budget has to be applied per image, because the total is what the visitor downloads.
Compress first, then serve the right dimensions
Compression cannot rescue an oversized image. A 4000px-wide photo displayed in a 600px column wastes bytes no matter how low the quality goes, and the browser still has to decode all those pixels. Resize to roughly twice the display width for high-density screens, then compress.
The resize and compress steps are separate tools here - Resize Image for Website handles the dimensions, Compress Image handles the bytes - and the order matters: resizing first gives the compressor fewer pixels to encode, which raises the quality it can afford at the same target.
Delivery details that cost nothing
- Serve WebP where you control the markup. Every measured conversion in this guide produced a smaller file for the same visual role.
- Add width and height attributes so the layout does not shift while images load.
- Do not lazy-load the hero image: deferring the LCP element delays the metric it is supposed to improve.
- Keep the ORIGINAL file. Recompressing an already compressed JPEG repeatedly degrades it; go back to the source each time.
Working locally
The tools run in your browser. That is convenient for client work under NDA and for unreleased product shots, because the files are never uploaded. The free tier allows 20 processed images per day and each file is processed on its own — there is no batch mode — so a full catalogue is a desktop-editor job.
Accepted inputs in Compress Image are JPG, JPEG, PNG, WebP and GIF up to 20 MB. Output is JPG, PNG, WebP or the same format as the input.
About this guide
- Written by
- The ImageTools Pro team
- Last reviewed
- October 2026
- How we test
- Steps run in a real browser on real PNG, JPEG and WebP files
We revise this page whenever browser APIs, format support or recommended settings change. Corrections are welcome — tell us from the contact page.
Tools we recommend
Frequently Asked Questions
What is a good image size for a website?
Under 250 KB for a hero image and under 150 KB for in-content photos, at dimensions close to how they are displayed. Our 12 MP test photo shrank from 1,360,339 to 446,612 bytes as WebP at 30%.
Is WebP always smaller than JPEG?
No. On the same photo, WebP at 90% produced 1,660,064 bytes against a 1,360,339-byte JPEG source. Below 70% it was consistently smaller in our runs.
Do I need to compress images if I use a CDN?
Yes. A CDN reduces transfer time, not decode time or file weight. The browser still downloads and decodes every byte you publish.
Does compressing images help LCP?
It can when the LCP element is an image, because the browser has less data to fetch before it can paint. It does nothing when the largest element is a text block delayed by fonts or JavaScript.
Are my images uploaded to your server?
No. Compression happens in the browser with canvas and Web Workers, so the files stay on your machine.