How to Compress Images for the Web (Faster Pages, Same Look)

Updated September 12, 2026

Just need the tool?Image Compressor โ†’

That 12-megapixel photo straight off your phone is around 4 MB and 4,032 pixels wide. The blog column it's headed into is maybe 700 pixels wide. The browser downloads the whole 4 MB, scales it down on the fly, and throws away most of those pixels before your visitor sees anything. You paid the full download cost for an image five times larger than the page could ever display.

That gap is where almost all image bloat lives, and it's why "compressing images" is only half the job.

Images are the heaviest thing on most pages

On a typical article or landing page, images are 50-70% of the total bytes. Text, CSS, and even most JavaScript are tiny next to a few unoptimized photos. So when a page feels slow, images are the first place to look.

Speed isn't cosmetic. Google's own data has long shown bounce rate climbing sharply as load time grows โ€” a page that takes 5 seconds instead of 1 loses a real chunk of visitors before it renders. Since 2021, Google also uses Core Web Vitals as a ranking input, and the big image on your page is usually your Largest Contentful Paint (LCP) โ€” the element that decides when the page "looks loaded." A heavy hero image drags that number straight down.

The lever nobody pulls: resize the actual pixels

Most people open a compressor, drag the quality slider, and call it done. That helps. But the bigger win is dimensions.

Compression squeezes the file. Resizing removes pixels you were never going to display. Here's the same photo through both:

That's 3.8 MB down to under 200 KB โ€” about a 95% cut โ€” and in a 700-1,200 px column it looks identical. The resize did most of the work; compression cleaned up the rest.

Rule of thumb: figure out the widest your image will ever display (check the column width, then roughly double it for high-DPI "retina" screens), and resize to that. Don't ship a 4,000 px image into an 800 px slot.

Lossy vs lossless, and where the damage hides

Lossless compression (what PNG does, or optimizing an existing PNG) shrinks the file without changing a single pixel โ€” it just stores the same data more efficiently. Lossy compression (JPEG, WebP, AVIF) throws away detail your eye is unlikely to notice, and that's where the real savings come from.

The quality slider is where people either save a ton or wreck the image. For photos, quality 75-85 is usually indistinguishable from the original. Drop below ~60 and the tells show up: blocky squares in smooth areas, and a shimmer of "mosquito noise" around hard edges. Flat gradients โ€” a clear sky, a solid-color background โ€” break down first.

So 80 is a sane default for photos. Text and screenshots are different: their hard edges and thin lines show JPEG ringing badly even at high quality, which is why screenshots belong in PNG or a high-quality WebP, not a low-quality JPEG.

Pick the format that matches the image

If you have a big PNG photo, converting it to JPEG or WebP is often the single largest saving available โ€” a photograph stored as PNG can be 5-10x bigger than it needs to be.

Compress once, keep the master

JPEG and WebP lossy compression is generational. Every time you re-save a lossy file, the encoder runs its "throw away detail" pass again โ€” on top of detail that was already thrown away. Do it a few times and edges go muddy, gradients get blotchy, and there's no undo.

So: keep the original high-resolution file as your master, and always export web copies from that master. Never take an already-compressed 180 KB JPEG and run it through a compressor a second time to shave "a few more KB." If you need a different size later, go back to the original.

One more free win: strip metadata. A phone photo carries EXIF data โ€” camera settings, timestamps, and often GPS coordinates โ€” that can add tens of KB and quietly leak where the photo was taken. Most compressors drop it, which is both smaller and more private.

You can do the resize, format change, and compression right in the browser with everyboringtool's Image Compressor โ€” the file never leaves your device, which matters when you're handling client photos, people's faces, or anything you'd rather not upload to a random server.

When this isn't the right approach

Compression isn't always the lever worth pulling:

The honest version fits in one line: resize to the real display size first, convert photos to WebP or JPEG, compress once at quality ~80 from the original, and keep your master. Do that and a 4 MB photo becomes a 200 KB one that looks the same โ€” drop it into a compressor, check it at 100% zoom, and if you can't see the difference, neither can your visitors.

Do it now โ€” free and private

The tool runs entirely in your browser: nothing you add is uploaded, and there is no sign-up.

Image Compressor โ†’

Related tools

Image ResizerPNG to JPGJPG to PDF