How to Compress Images Without Noticeable Quality Loss
Learn how to reduce image file size with resizing, lossy or lossless formats, quality settings, metadata removal, and a visual check before you publish.
By TIG Tools editorial teamPublished October 25, 20266 min read
Reducing an image’s file size does not have to make it look worse. The most reliable approach is to resize it to the dimensions you need, choose a suitable format, adjust compression gradually, and compare the result with the original at the size people will actually see it.
There is no single quality setting that works for every image. A photograph, a logo, and a screenshot respond differently to compression, so check each result before replacing the original.
Lossy and lossless compression
Lossy compression reduces file size by discarding some image information. The change may be hard to notice at a moderate setting, but stronger compression can create visible blur, blocky patches, color banding, or halos near sharp edges. JPEG, WebP, and AVIF can use lossy compression.
Lossless compression reduces file size without discarding the image’s original pixel information. It is useful when exact pixel values matter, or when an image will be edited further. PNG supports lossless compression; WebP and AVIF can also be encoded losslessly. Lossless does not always mean a smaller file: the result depends on the image and its format.
Choose based on the content. Photos often compress well with lossy settings. Logos, diagrams, and screenshots with small text or sharp color boundaries may show artifacts sooner, so try lossless compression or a higher-quality lossy setting. If you need transparency, confirm that the output format and the application displaying it support it.
Resize before compressing
Pixel dimensions have a major effect on file size. If an image is much larger than its displayed size, resizing it first can remove unnecessary pixels without making it look different at its intended display dimensions.
For example, a 4000 × 3000 photo displayed in a page area about 1200 pixels wide may not need to keep its original width. A smaller copy sized for the page can use fewer pixels while still looking sharp there. Keep the aspect ratio unless you have a reason to crop, and consider larger dimensions if the image must also look sharp on high-density screens or when users can open it full size.
Use the Image Resizer to set the output dimensions. Make a copy rather than overwriting your source, especially if you may need to create other sizes later. Resizing and cropping are different: resizing changes the pixel dimensions of the whole image, while cropping removes part of its composition.
Set a quality level gradually
A quality control usually sets a trade-off between file size and visual fidelity. Higher values generally preserve more detail and create larger files; lower values generally create smaller files and more visible changes. The scale and behavior vary by format, encoder, and tool, so a value such as 80 is not a universal promise of a particular appearance or file size.
A practical method is to start with a moderate-to-high quality setting, inspect the output, and lower the setting in small steps only if you still need a smaller file. For a photo, look closely at faces, hair, foliage, gradients, and areas of fine texture. For a screenshot or graphic, inspect text edges, thin lines, and solid-color areas. If you can see artifacts at normal viewing size, raise the quality or choose another format.
Avoid repeatedly saving an already compressed image with lossy settings. Each new lossy encode can discard additional information. Whenever possible, return to the original and create a fresh output with the desired dimensions and settings.
Consider WebP or AVIF
WebP and AVIF are modern image formats that can offer smaller files than older formats for some images at a similar perceived quality. The exact result depends on the image and the encoding settings; neither format is automatically the best choice for every file.
Check where the image will be used before converting. A website or current browser may support a format that an older application, workflow, or recipient does not. If the image needs to work in a particular content system, email client, or editing program, confirm that it accepts the format. Keep a broadly compatible copy when compatibility matters.
Use the Image Converter to try a different output format. Compare the converted image with the original rather than choosing by file extension alone. Also check transparency: JPEG does not support an alpha channel, so transparent areas need a format that supports transparency or a background color added before conversion.
Remove metadata when appropriate
Image files may contain metadata such as camera settings, capture time, device details, or location information. Removing metadata can reduce a small amount of data and help avoid sharing information you did not intend to publish. The amount removed varies; metadata cleanup is not usually a substitute for resizing or image compression.
Metadata can also include information useful to a workflow, such as a color profile or orientation data. A tool may apply orientation to the pixels when exporting, or handle profiles differently. After stripping metadata, check that the image still displays in the correct orientation and that its colors look right. Keep the original if you need its capture details or editing information later.
A worked example
Suppose you have a 4000 × 3000 JPEG photograph that is 2.4 MB and will appear in a page column at about 1200 pixels wide. The goal is a smaller download, not a full-resolution archive.
- Save a copy of the original so you can return to it.
- Resize the copy to a suitable width for the page, keeping its proportions. If the site needs a larger version for high-density displays, make that version separately.
- Export the resized image as JPEG or try WebP if the destination supports it.
- Start at a moderate-to-high quality setting. If the file is still larger than needed, reduce quality gradually and export another copy.
- Compare the versions at the size they will appear on the page, then inspect a few detailed areas at 100% zoom. Choose the smallest file that still looks acceptable for its intended use.
The output size cannot be predicted from the starting file size alone. A detailed, noisy photograph may compress differently from a smooth portrait, even at the same dimensions and settings.
Check the result before using it
Use the Image Compressor to create a compressed copy, then check both its appearance and its file details. It re-encodes the image in your browser, so EXIF data such as camera details and GPS location is not kept, and it tells you if the result is larger than the original. Compare images at the same zoom level; a larger preview can make small differences seem more important than they will be in the final layout. Also check the image at its actual display size, since that is where most viewers will see it.
Look for softened details, blockiness, color shifts, banding in gradients, and artifacts around text or edges. Confirm that the dimensions, transparency, and orientation are still right. If the result looks poor, try a higher quality level, lossless compression, or a different format rather than accepting visible damage for a smaller file.
Keep the source file until the compressed version has been checked in its final context. A preview in an editor may not match how a website or other application renders the image, so test it where it will be used when that is practical.
Summary
- Resize an image to the dimensions it needs before adjusting compression.
- Use lossy compression for smaller files when slight changes are acceptable; use lossless when preserving pixel data matters.
- Treat quality values as encoder-specific and inspect each image rather than relying on a universal number.
- Try WebP or AVIF only when the destination supports them, and check transparency and metadata after exporting.
Try it now
Use the Image Compressor for free, right in your browser. No sign-up, and your files stay on your device.
Open Image Compressor