How to Reduce Image File Size

How to Reduce Image File Size

Sarah MitchellSarah Mitchell Updated 2026-06-25 image-compression

Upload your image to TinyPNG or Squoosh — both compress files by 50-80% in the browser. For photos, aim for 75-80% quality. For screenshots and graphics, 50-60% works well since solid-color areas compress more efficiently. Before changing anything, record the original dimensions, format, file size, and destination use. A photo, transparent graphic, thumbnail, and print file need different trade-offs, so choose the smallest change that meets the real display requirement.

Step-by-step

1

Understand what affects image file size

File size depends on three factors: resolution (pixel dimensions), format (JPG, PNG, WebP, AVIF), and compression quality. A 4000×3000 photo saved as uncompressed PNG can easily exceed 20MB, while the same image as 80% quality JPG might be just 800KB. Reducing any of these three levers shrinks the file — the key is knowing which one to adjust for your use case. Preserve the original and write down the chosen dimensions, format, quality, and final byte size. Check the result in the target page or app, because a smaller file is not useful if it loses transparency, orientation, or readable detail.

2

Choose the right tool for your file type

For JPG and PNG photos, TinyPNG applies smart lossy compression automatically — just drag the file in and download. It handles JPG, PNG, and WebP with no quality settings to worry about. When you want precise control, Squoosh shows a real-time quality slider so you can compare the original and compressed version side by side. For batch processing multiple files, ShortPixel and iLoveIMG both support uploading several images at once. Preserve the original and write down the chosen dimensions, format, quality, and final byte size. Check the result in the target page or app, because a smaller file is not useful if it loses transparency, orientation, or readable detail.

3

Set the right quality level

Quality 75-80% is the sweet spot for JPG photographs — file size drops by 60-70% and the difference from 100% is invisible on screens. Go down to 50-60% for graphics, screenshots, and images with large areas of flat color — these compress far more aggressively without noticeable quality loss. Avoid going below 40% unless the image is purely decorative, since compression artifacts like banding and blurring become visible around text edges and fine details. Preserve the original and write down the chosen dimensions, format, quality, and final byte size. Check the result in the target page or app, because a smaller file is not useful if it loses transparency, orientation, or readable detail.

4

Compare before and after to catch artifacts

Open the original and compressed versions side by side at 100% zoom. In Squoosh, drag the comparison slider across areas with fine detail — look for banding in gradient skies, blurring around text, and pixelation in hair or foliage. TinyPNG shows the exact percentage reduction after processing. If the compressed image looks identical to the original at normal viewing distance, the quality level is good. Preserve the original and write down the chosen dimensions, format, quality, and final byte size. Check the result in the target page or app, because a smaller file is not useful if it loses transparency, orientation, or readable detail.

5

Convert to a more efficient format

WebP produces files 25-35% smaller than JPG at the same visual quality — it is the best default for web images. AVIF pushes compression even further, saving an additional 20-30% over WebP, though browser support is still catching up. Use Squoosh to convert PNG screenshots to WebP and cut sizes by half or more. Keep PNG only when you need transparency. For print or archival needs, stick with high-quality JPG or lossless PNG. Preserve the original and write down the chosen dimensions, format, quality, and final byte size. Check the result in the target page or app, because a smaller file is not useful if it loses transparency, orientation, or readable detail.

6

Resize dimensions when possible

Displaying a 4000×3000 photo at 800×600 wastes bandwidth — the browser downloads the full resolution and scales it down. Before compressing, check what size the image actually needs to be on your page or app. Resize first with Squoosh or any image editor, then compress the smaller file. This alone can cut file size by 80% or more without any quality loss at all. Preserve the original and write down the chosen dimensions, format, quality, and final byte size. Check the result in the target page or app, because a smaller file is not useful if it loses transparency, orientation, or readable detail.

7

Download and verify the final file size

Download the compressed image and check its file size against your target. For web images, aim under 200KB for photos and under 100KB for thumbnails and icons. TinyPNG typically achieves 60-70% reduction on photos. Squoosh shows the exact output size before you download. If the file is still too large, lower the quality another 5-10% or reduce the dimensions by 20-30%. Preserve the original and write down the chosen dimensions, format, quality, and final byte size. Check the result in the target page or app, because a smaller file is not useful if it loses transparency, orientation, or readable detail.

8

Set a target based on the destination

Choose a byte target from the actual page layout instead of applying one number to every image. A hero image, thumbnail, icon, and downloadable original have different jobs. Measure the largest rendered dimensions and decide whether the source needs transparency or print detail. Then test a copy with one change at a time—resize, format conversion, or quality adjustment—so you know which change produced the savings. Keep a short record of the result and reject any version that makes text or important detail unreadable.

9

Build a repeatable batch process

For several images, prepare a manifest with the source filename, expected output filename, target dimensions, and selected format. Process a small sample first, compare counts, and inspect the largest and most detailed outputs. Check that nested folders and duplicate names do not overwrite one another. After the batch, open representative files and test them in the real page. Keep the manifest with the project so a future refresh can reproduce the same size and quality decisions without guessing.

Recommended Tools

FAQ

How do I reduce image file size without losing quality?
Use lossless compression by converting PNG to WebP or reducing dimensions before saving. For photos, 80-85% JPG quality looks identical to the original on screens while cutting file size significantly. Always compare before and after at 100% zoom.
Is JPEG or PNG smaller for the same image?
JPG is almost always smaller than PNG for photographs — typically 60-80% smaller. PNG uses lossless compression, which preserves every pixel but creates much larger files. Use JPG for photos and graphics with many colors, and PNG only for images that need transparency.
How do I reduce the KB size of an image?
The fastest method is uploading to TinyPNG — it automatically optimizes the file and shows the exact KB reduction. For more control, use Squoosh to lower the quality slider and watch the KB count update in real time. Resizing dimensions also reduces KB directly.
What is the best file size for web images?
For hero images and large photos, aim under 200KB. For thumbnails and icons, under 100KB. For product images on ecommerce sites, 50-150KB is the range that balances quality with fast page loads. Most users will not notice the difference between 200KB and 2MB photos on a screen.
Should I resize before compressing?
Usually, yes when the source is much larger than its rendered size. Resize a copy to the largest required dimensions, then compress and compare the result. Keep the original for later uses that need more pixels.
Why did the file get smaller but look worse?
The quality setting may be too aggressive, the format may not suit the image, or the dimensions may have been reduced too far. Reopen the original, change one variable, and compare text, gradients, and fine detail at 100% zoom.

Related