If your website is slow, images are almost certainly the reason. They're the largest files on most pages, they load before most other content, and they're the one optimization that consistently makes a measurable difference — often cutting page load times in half with no visible change to how the page looks. The problem is that most people either skip image compression entirely, or they compress so aggressively that photos come out looking like they were faxed in 1994.
Getting it right isn't complicated, but it does require understanding a few things: what compression actually does, which format to use for which type of image, and what quality settings actually look like in practice. This guide covers all of it.
What Image Compression Actually Does
There are two fundamentally different kinds of compression, and they behave very differently:
Lossless compression reduces file size without discarding any image data. The original image can be perfectly reconstructed from the compressed file. PNG uses lossless compression, which is why it's the format of choice for logos, screenshots, and anything with hard edges or text — there's no degradation, period. The tradeoff is that lossless compression achieves smaller savings than lossy compression, particularly on photographs.
Lossy compression reduces file size by selectively discarding image data — specifically, the subtle color and detail variations that human vision is least sensitive to. JPEG uses lossy compression. Done well, the discarded data is genuinely imperceptible — you cannot tell the difference between a high-quality JPEG at 85% quality and the original. Done badly (quality set too low, or repeated re-saving of an already-compressed JPEG), the artifacts become visible: blocky areas, smearing around edges, color banding.
The goal with lossy compression isn't to hit a specific file size — it's to find the lowest quality setting where the result still looks perfect to a human eye. That threshold is lower than most people expect, which is why images compressed correctly can lose 60–80% of their file size without looking any different.
File Size vs. Display Quality: The Numbers
To make this concrete: a typical uncompressed photograph taken on a modern smartphone might be 4–8 MB straight out of the camera. That same photo exported as a JPEG at 85% quality — which is visually indistinguishable from the original — might be 300–600 KB. Optimized for web display at an appropriate resolution, it might be 80–150 KB. The difference between serving an 8 MB image and an 80 KB image is enormous in terms of load time, particularly on mobile connections.
Most images on most websites are overweight for one of three reasons: they were uploaded straight from a camera or design tool without compression, they're sized for print rather than screen display, or they're the wrong format for the content type. Usually it's all three at once.
Choosing the Right Format
Format choice matters as much as compression settings. Using the right format for the right content type is the first decision to make before you touch a compression slider.
JPEG for photographs and complex imagery with continuous color gradients. It handles photographic content efficiently and is supported everywhere. Not suitable for images with text, hard edges, or transparency.
PNG for logos, icons, screenshots, diagrams, and anything with text or transparency. Lossless compression means no artifacts regardless of what's in the image. File sizes are larger than JPEG for photographic content, which is why PNG is wrong for photos.
WebP for everything, if browser support isn't a concern. WebP achieves significantly smaller file sizes than JPEG for photographs (typically 25–35% smaller at equivalent visual quality) and significantly smaller than PNG for graphics with transparency. Browser support is now nearly universal — the only exception is very old browsers. If you're not already using WebP for your web images, it's worth switching.
GIF is essentially obsolete for anything except short animations, and even there it's being replaced by WebP animations and MP4 video. If you're using GIF for static images, convert them to PNG or WebP.
What Quality Settings to Use
JPEG and WebP both use a quality scale, typically 0–100, where 100 is maximum quality (and maximum file size). The right setting depends on the image content and how it will be displayed:
80–85% is the sweet spot for most web photographs. At this range, compression artifacts are essentially invisible, even at full size. File sizes are typically 50–70% smaller than the uncompressed original. This is where the ImageToolHub compressor defaults, and it's the right choice for hero images, product photos, blog images, and anything else that will be viewed at reasonable size.
70–75% works well for thumbnails and images that will be displayed small. At thumbnail size, the slightly lower quality is imperceptible, and the additional file size reduction is meaningful when you're loading a grid of dozens of images.
60% and below starts producing visible artifacts on most photographic content. There are use cases — heavily downsized thumbnails, images behind text overlays, low-priority decorative images — but for anything that will be examined at any size, 60% is pushing it.
90%+ is rarely justified for web display. You're paying a significant file size penalty for quality improvements that are genuinely invisible on a screen. Save the 90%+ settings for cases where the image will be downloaded and reprinted, or where you need to preserve maximum quality for downstream processing.
Resolution: The Other Half of the Equation
Compression quality is only part of the equation. An image that's dimensionally oversized — say, a 4000×3000 photo displayed in an 800×600 container — wastes bandwidth regardless of how well it's compressed. The browser downloads all 4000×3000 pixels and then scales it down to fit, which means you paid the bandwidth cost of a 4K image to display an 800px thumbnail.
The fix is simple: resize images to approximately the largest size they'll actually be displayed, then compress. For a standard blog post with a content area 800px wide, there's no reason to serve an image wider than 1200–1600px (the extra width covers high-density displays). A 4000px-wide photo in that context is serving 6–8× more data than necessary.
Retina / high-DPI displays are the nuance here. Devices with high pixel density displays — most modern phones, MacBooks with Retina displays, and a growing share of Windows laptops — render images at 2× pixel density, meaning a 400px container actually uses 800 physical pixels. Serving a standard-resolution image to these displays looks slightly blurry. The common solution is to serve images at 2× the display size (so 800px for a 400px container) and compress aggressively — the extra resolution compensates for the higher compression, and the result looks sharp on both standard and high-DPI displays.
How to Compress Images with ImageToolHub
The ImageToolHub Image Compressor handles JPEG, PNG, WebP, and GIF compression entirely in your browser — nothing is uploaded to a server, so there's no privacy concern with sensitive images and no waiting for upload/download cycles on large files.
The workflow is straightforward: drag your image onto the compressor, adjust the quality slider if you want to go lower than the default 85%, and download the compressed result. The tool shows you the original and compressed file sizes side by side so you can see exactly what you're saving. If you're working with a folder of images at once, the Bulk Compressor handles multiple files in a single pass and packages the results as a ZIP download.
A few practical notes on using it effectively:
- Start at the default. The default quality setting is calibrated to produce invisible compression on most photographic content. Unless you have a specific reason to go lower, start there and check the result before adjusting.
- Compare at actual display size. Compression artifacts that look alarming when you zoom to 200% in an image editor are often completely invisible at the size the image will actually appear on the page. Judge the result at display size, not zoomed in.
- Resize before compressing. If your image is significantly larger than it needs to be for display, use the Image Resizer to bring it down to the right dimensions first, then compress. Compressing a 4000px image to a small file size and relying on the browser to scale it is less efficient than resizing to 1200px and compressing at a reasonable quality setting.
- Consider converting to WebP. If you're optimizing images for a website and can control the format, converting to WebP with the WebP Converter before or after compression will typically get you another 25–35% reduction over JPEG at the same visual quality.
What Kind of Savings Should You Expect?
Real-world results vary by image content and starting format, but as a rough benchmark:
- A typical smartphone photo (JPEG, 3–6 MB) compressed at 85% quality: 200–500 KB. That's an 85–95% reduction with no visible quality difference.
- A PNG screenshot or graphic compressed with lossless optimization: 20–40% reduction, with no quality change at all.
- A JPEG photo converted to WebP at equivalent quality: 25–35% smaller than the JPEG version.
A full product page with 10 unoptimized hero and product images (say, 25 MB total): the same page with properly sized and compressed images might be 2–4 MB total. That difference — 20+ MB — is the gap between a page that loads in under a second on a typical mobile connection and one that's still loading when the visitor gives up and leaves.
Image compression isn't glamorous, but it's one of the few optimizations where the effort-to-impact ratio is genuinely hard to beat. If your site has images you haven't compressed — and most do — the compressor is right there. It takes about thirty seconds per image.