What happens when you compress a JPEG

A JPEG is already compressed — that's the whole point of the format. When you compress a JPEG further, you're making the file smaller by throwing away more image data. The question isn't whether you'll lose quality, but how much you can lose before the image looks bad to you.

Most JPEG files can be compressed to 50 to 70 percent of their current size with barely noticeable quality loss. Beyond that, you start to see artifacts — blocky areas, color banding, or a fuzzy look. The exact point depends on the image itself. A photo of a landscape tolerates more compression than a close-up of text or a face.

You have three practical routes: use an online tool, use software on your computer, or adjust the quality setting when you save the file in the first place. Each has different trade-offs for speed, control, and what happens to your original file.

Key Takeaways

  • JPEG files are already compressed, so further compression means reducing quality — you're choosing how much loss you can accept.
  • Online tools like TinyJPG or Compressor.io work in a browser with no software to install, but upload your image to their servers.
  • Desktop software like XnConvert or IrfanView keeps your image on your computer and gives you direct control over quality settings.
  • The best compression depends on what you're using the image for — web use tolerates more loss than printing or archiving.
  • Always keep your original file and save the compressed version with a new name so you don't accidentally overwrite it.

Using an online compression tool

Online tools are the fastest route if you have just one or two images. TinyJPG and Compressor.io are the most common. You upload your JPEG, they compress it on their servers, and you download the result. No software to install, no learning curve.

The trade-off is privacy: your image goes to someone else's server. TinyJPG says it deletes files after an hour, and Compressor.io says it deletes them after 24 hours, but you're trusting their word. If the image contains anything sensitive — a document, a photo you don't want shared — use a desktop tool instead.

Most online tools let you adjust quality on a slider before you download. Start at 80 percent quality and download a preview. If it looks acceptable, you're done. If it looks too blurry, move the slider up to 85 or 90 and try again. This takes a minute per image.

Compressing with desktop software

If you have many images to compress or you don't want to upload them anywhere, use software on your computer. XnConvert (free, Windows and Mac) and IrfanView (free, Windows) are both straightforward. Download and install one, then open your JPEG in it.

In XnConvert, go to the Output tab, choose JPEG as the format, and you'll see a Quality slider. Set it to 80 or 85, then click Convert. The software will save a new file with the compressed version. In IrfanView, go to File > Save As, choose JPEG, and a dialog will appear asking for quality — same idea.

The advantage is speed if you have 10 or 50 images. You can set the quality once, point the software at a folder, and it will compress every JPEG in that folder at once. You also keep everything on your computer — no uploading, no waiting for a server.

Adjusting quality when you save

If you're editing a JPEG in Photoshop, GIMP (free), or Paint.NET (free), you can control compression at the moment you save. Open your image, make your edits, then go to File > Export As (or Save As). Choose JPEG as the format.

A dialog will appear asking for quality. In Photoshop it's called "Quality" and ranges from 0 to 12. In GIMP it's called "Quality" and ranges from 0 to 100. Set it to 80 or 85, then click Export or Save. This is the most direct way to control compression because you see the quality slider right there and you're not creating an extra step.

This route only works if you're already editing the image. If you just want to compress an existing JPEG without changing it, use one of the other methods.

Batch compression for many files

If you have 50 or 100 JPEGs to compress — say, photos from a camera or screenshots — batch processing saves hours. XnConvert is built for this. Open it, click Add Files, select all your JPEGs at once, set the quality to 80 in the Output tab, and click Convert. It will compress every file in the list and save them all with new names in a folder you choose.

IrfanView can also do batch work, but the process is less intuitive. Go to File > Batch Conversion, select your files, set the output format to JPEG and quality to 80, and run it. Both tools will leave your originals untouched and create new compressed versions.

If you're on a Mac and want something simpler, Automator (built into macOS) can compress JPEGs in bulk, but it requires some setup. The easier route is to download XnConvert, which works the same way on Mac as it does on Windows.

Choosing the right quality level

Quality 80 is a good starting point for most images. It usually cuts file size in half with no visible loss to the human eye. Quality 85 is safer if you're unsure — the file will be slightly larger but you're less likely to regret it later. Quality 90 and above barely compresses at all, so there's no point unless you need the image to look perfect.

The right choice depends on what you're doing with the image. If it's going on a website, quality 75 to 80 is standard — web users don't notice the difference and the smaller file loads faster. If you're archiving photos or printing them, use quality 85 or 90. If it's a screenshot of text or a diagram, compression can make text fuzzy, so use quality 90 or don't compress at all.

Always test on a copy. Compress one image at your chosen quality, look at it on your screen, and decide if it's acceptable. Then apply that same quality to the rest.

Keeping your original file safe

Every compression tool and method creates a new file. Your original stays untouched. But it's easy to accidentally overwrite the original if you're not careful about file names.

When you compress, the tool will ask where to save the result. Create a new folder called "Compressed" or "Web" and save all compressed versions there. This way your originals stay in the original folder and you can always go back to them if you need higher quality later.

If you're using an online tool, download the compressed file and check that it downloaded before you delete anything. If you're using desktop software, look at the output folder and confirm the new file is there before you touch the original.

Frequently Asked Questions

Can I compress a JPEG multiple times?

Technically yes, but don't. Each time you compress a JPEG, you lose more data. Compress once to the quality level you need, then leave it alone. If you need a different quality level later, go back to your original file and compress that instead.

What's the difference between quality 80 and quality 85?

Quality 85 keeps slightly more detail and produces a slightly larger file — usually 10 to 20 percent larger than quality 80. Most people can't see the difference on screen. If file size is critical, use 80. If you want to be safe, use 85.

Will compressing a JPEG make it smaller on disk?

Yes. A JPEG at quality 80 is typically 40 to 60 percent smaller than the same image at quality 95. The exact amount depends on the image content — photos with lots of detail compress less than photos with large solid-color areas.

Can I compress a JPEG that's already very small?

You can try, but there's usually not much to gain. If a JPEG is already 50 KB or less, it was probably compressed aggressively to begin with. Compressing it further will make it look noticeably worse without saving much space.

Is it better to use PNG instead of JPEG?

PNG doesn't compress as aggressively as JPEG, so PNG files are usually larger. Use JPEG for photographs and complex images. Use PNG for screenshots, diagrams, or images with text, because PNG preserves sharp edges better than JPEG does.