What happens when you compress a JPEG

A JPEG is already compressed when you save it, so "compressing" it further means making the file smaller by removing some of the image data. When you compress a JPEG, you're choosing how much detail to throw away — more compression means a smaller file but blurrier or blockier results. The trade-off is real: you can't get back what you've deleted.

Most people compress JPEGs for one of three reasons: to email them faster, to fit more photos on a device, or to upload them to a website that limits file size. Each reason might call for a different approach, because the right amount of compression depends on how the image will be used. A photo you're posting to social media can handle more compression than one you might print later.

Key Takeaways

  • JPEG files are already compressed, so further compression means deleting image data — you cannot recover quality once it's gone.
  • Most image editors (including free ones like GIMP or Preview on Mac) let you choose compression level when you save or export a JPEG.
  • Reducing the image dimensions (width and height in pixels) shrinks the file more than compression alone, but changes the photo's size.
  • Online tools can compress JPEGs without installing software, but uploading your photos to a website means trusting that site with your image.
  • The right compression level depends on use: social media posts tolerate more loss than photos you might print or archive.

Compressing a JPEG in Preview (Mac) or Photos

On a Mac, the easiest route is Preview, which comes built in. Open your JPEG in Preview, go to Tools menu, then select Adjust Size. You'll see options for width and height in pixels — reducing these numbers shrinks the file. Then go to File, click Export As, and choose JPEG from the format dropdown. A slider will appear labeled Quality, ranging from Low to High. Move it toward Low to compress more; the preview updates so you can see the trade-off before you save.

On an iPhone or iPad, the Photos app doesn't give you compression controls directly. Instead, use the Files app: locate your JPEG, press and hold it, tap Compress, and the system will reduce the file size automatically. You won't see a quality slider, so this works best when you just need something smaller without caring exactly how much detail is lost.

Compressing a JPEG in Windows Photos or Paint

Windows 10 and 11 include a Photos app that can resize images. Open your JPEG, tap the three dots menu, select Edit, then Crop & Rotate. You can adjust dimensions here, but for compression specifically, you'll need a different tool. Paint (the built-in drawing program) is faster: open your JPEG in Paint, go to File, then Export As, choose JPEG format, and a quality dialog will appear. Drag the quality slider down to compress; higher numbers keep more detail but make larger files.

If you have many JPEGs to compress at once, Windows doesn't have a batch tool built in. You'll need either a third-party program or an online tool (see below).

Using free desktop software like GIMP

GIMP is a free image editor that runs on Windows, Mac, and Linux. Download it from gimp.org, install it, then open your JPEG. Go to File, then Export As, and choose JPEG from the format menu. A dialog box titled "Export Image as JPEG" will appear with a Quality slider — this is where you control compression. The preview shows you the result at different quality levels. Quality 85 is usually a good balance between file size and visible detail; Quality 60 compresses heavily and shows artifacts (blocky or blurry areas), while Quality 95 keeps almost everything but saves little space.

GIMP also lets you resize the image before exporting. Go to Image menu, then Scale Image, and enter new width and height values. Smaller dimensions mean a smaller file, and this often saves more space than compression alone. You can do both: resize to a smaller dimension and lower the quality setting.

Online compression tools and when to use them

Websites like TinyJPG, Compressor.io, and ImageOptim Online let you upload a JPEG, compress it, and download the result without installing software. These work on any device with a browser. Upload your file, adjust the quality slider if the tool offers one, and download the compressed version.

The trade-off is privacy: you're sending your photo to someone else's server. Most of these sites say they delete files after a few hours, but you're trusting their word. If your photo contains sensitive information — a document, a receipt, anything you wouldn't want stored elsewhere — use desktop software instead. For casual photos you don't mind sharing, online tools are convenient and usually free.

Resizing versus compressing: which saves more space

Reducing the image dimensions (pixel width and height) usually saves more space than lowering the quality setting alone. A 4000×3000 pixel photo from a modern phone is enormous; scaling it down to 2000×1500 pixels cuts the file size roughly in half before you touch compression. If you're emailing a photo or posting it online, you rarely need the original resolution — most screens and email clients display smaller images anyway.

The catch: once you resize, you can't get the original size back without losing quality. If you might want to print the photo later or use it at full size, keep the original and create a separate compressed copy for email or web use. Most image editors let you export without changing the original file, so this is straightforward.

Choosing the right compression level for your use

Social media platforms (Instagram, Facebook, Twitter) compress images themselves, so your compression barely matters — you can use Quality 70 or lower and the result will look fine. Email is similar; most email clients resize images anyway, so Quality 75 is usually safe. If you're uploading to a website with a strict file size limit, aim for Quality 60 and see if it fits; if not, resize the dimensions as well.

For photos you plan to keep or print, use Quality 85 or higher. The file will be larger, but the difference in quality is visible on a printed page. If you're archiving photos long-term, consider keeping one uncompressed or lightly compressed copy (Quality 90+) and a separate compressed copy for sharing.

Frequently Asked Questions

Can I compress a JPEG multiple times?

Yes, but each compression cycle deletes more data, so quality drops faster than if you'd compressed once to the same final size. Compress once to the level you need, then save that version. Don't compress, save, then compress again.

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

Quality 80 keeps most fine detail and looks nearly identical to the original to the human eye; file size is typically 30 to 50 percent smaller. Quality 60 shows visible artifacts — blocky areas and color banding — but files are often 60 to 70 percent smaller. The exact difference depends on the image content.

Will compressing a JPEG make it blurry?

Aggressive compression (Quality 50 or lower) can make images look blurry or blocky. Moderate compression (Quality 75 to 85) is usually invisible on screen. Test your chosen quality level on a sample photo before compressing a whole batch.

Should I convert my JPEG to PNG to make it smaller?

No. PNG uses a different compression method that works better for graphics and text, but for photographs, PNG files are usually larger than compressed JPEGs. Stick with JPEG for photos.

How small can I make a JPEG before it looks bad?

That depends on the image. A simple photo with large areas of solid color can look fine at Quality 50. A detailed landscape or portrait usually needs Quality 75 or higher. The only way to know is to try it and look at the result on the device where you'll use it.