How to Reduce Image File Size Without Losing Too Much Quality
The order of operations that actually shrinks images: resize first, choose the right format, then tune quality.
Most people try to shrink an image by dragging a quality slider down until the file is small enough, then wonder why it looks rough. Quality is the last lever to pull, not the first.
Step one: resize to the display size
This is where the biggest saving lives, and it costs nothing visually. File size scales roughly with pixel count, so halving both dimensions removes about three quarters of the data. A 4000 pixel wide photo shown in a 800 pixel wide column carries five times more pixels than the screen can use.
Allow for high-density displays by exporting at roughly twice the CSS width you need, and no more. A 1600 pixel file covers a 800 pixel slot on a 2x screen perfectly.
Step two: pick the right format
A photograph stored as PNG is the single most common cause of a needlessly huge image. Converting it to WebP or JPEG frequently cuts the file by 80 to 90 percent before any quality tuning happens at all.
Step three: tune quality
Now the slider matters. For JPEG and WebP, the practical window is 60 to 85. Start at 80, look at the result at full size, and drop in steps of five until you can see the difference, then step back up once.
Some content needs more headroom. Smooth gradients, dark scenes and images with large flat areas show banding earlier. Detailed textures hide artifacts and tolerate lower settings.
What to avoid
- Re-compressing an already compressed file repeatedly; artifacts compound and never come back.
- Upscaling a small image, which adds bytes and no detail.
- Using a single enormous file for every screen size instead of serving several widths.
- Judging quality on a zoomed-out thumbnail rather than at the size the image will be displayed.
A realistic result
A 4.2 MB photo straight from a phone, resized to 1600 pixels wide and saved as WebP at quality 78, typically lands between 120 and 200 KB. That is a reduction of well over 95 percent, and on a web page nobody can tell the difference.
Try the tools
Everything described in this article can be done here in your browser, free of charge and without uploading files to a server.
Keep reading
- Image Resolution vs Image Dimensions: What's the Difference?Why a 300 DPI tag means nothing on the web, and how pixel dimensions actually determine sharpness on screen and in print.
- How Large Images Affect Website PerformanceThe measurable cost of oversized images, from Largest Contentful Paint to mobile data use, and the fixes that move the needle.
- PNG vs WebP: Which Format Is Better?A direct comparison for graphics, screenshots and transparent images, including where PNG remains the safer choice.