How to Compress a Photo Without Losing Quality
By Umar Ali · Last updated: 14 November 2026
A photo from a phone can be several megabytes in size, and that makes it slow to send, hard to attach to a form, and slow to load on a web page. Compressing the photo makes the file smaller. The aim is to make the file much smaller while the picture still looks good. This guide explains what compression does, how the quality setting works, and how to pick a setting that keeps your photo looking clear. The steps below use the Compress Image tool on this site as the example.
Why photos are so large
A phone camera records a lot of detail. Every pixel holds colour and brightness, and a photo with millions of pixels holds a lot of data. Phones often save photos at high quality so nothing is lost, and the file ends up several megabytes in size. That is fine for one photo on your phone, but it becomes a problem when you need to send ten photos by email, upload a picture to a form with a size limit, or put photos on a web page. The file is large because it keeps fine detail that the eye may not even notice at normal size. Compression takes some of that detail away, and the file gets smaller. A photo full of fine detail, such as grass or a crowd, makes an even larger file than a plain sky or a wall.
What compression does to a photo
Compression re-saves the photo with less data. A JPG file throws away some fine detail, mostly in areas where the eye is less likely to notice, such as smooth skies or soft shadows. The picture keeps the same size in pixels, so it does not get smaller on screen, but the file takes up less room. A small amount of compression is hard to see at all. A large amount starts to show: edges can look rough, flat areas can show blocks, and small text in the photo can turn blurry. The trade is always the same. More compression means a smaller file and a softer picture. Less compression means a larger file and a clearer picture. How much detail is lost depends on the quality number you pick, so a careful choice keeps the picture looking clear.
The quality slider: 20 to 95
The Compress Image tool has a quality slider from 20 to 95, and it starts at 70. The number is the JPG quality used when the photo is saved again. A higher number keeps more detail and makes a larger file. A lower number takes away more detail and makes a smaller file. The slider is the only control you need. You pick a number, press the button, and the tool shows you the new file size and how much smaller it is than the first file. You can try again with a different number if the first result is not what you wanted. There is no set answer for every photo, because each photo starts at a different size and holds a different amount of detail.
Choosing the right quality
Start at 70, which is the setting the tool opens with. For most photos shared in a chat or attached to an email, a setting between 60 and 80 gives a file that is much smaller and still looks clear. If the photo will be printed, keep the setting above 80, because print shows soft detail more clearly than a phone screen does. If the photo is only for a small view on a web page, 50 to 60 can work. Look at the result before you keep it. Zoom in on faces and on any small text in the photo. If the edges look rough or flat areas show marks, raise the quality and try again. If the file is still too large, lower it a little at a time rather than jumping to 20.
What the Compress Image tool does
The tool works in your browser. You pick a photo, set the quality, and press the button. It draws the photo on a canvas at its full size in pixels, then saves it as a JPG at the quality you picked. It shows the first file size, the new file size, and how much smaller the file is in percent. You can see a preview of the result before you download it. The photo is never sent to a server. One point to know is that the result is always a JPG file, and the download is named with -small added to it. The tool compresses one photo at a time, and you can run it again on the same photo if you want to try another setting.
What does not work
Compression cannot make a photo sharper or add detail that is not there. A blurry photo stays blurry, only smaller. It cannot make a photo bigger in pixels, crop it, or fix bad light. The tool always saves the result as a JPG, so a PNG with a clear background will come back with a white background, because JPG files cannot hold transparency. A photo that is already small, or one saved at low quality before, may barely shrink at all, and pushing the slider down to 20 will only make it look worse without saving much room. If the file must stay under a strict limit, you may also need to resize the photo to fewer pixels, not just compress it.