Compress JPEG: Shrink Photos Without Losing Quality

Compress JPEG: Shrink Photos Without Losing Quality

Learning how to compress JPEG files properly is one of the most useful photo skills you can pick up. A single phone photo can weigh 4 MB or more — far too heavy for a website, an email attachment, or a form that caps uploads at 1 MB. The good news is that most of that weight is invisible padding: with the right quality setting, you can shrink a JPEG by 50 to 80 percent and still have a photo that looks identical on screen.

Key takeaways

  • JPEG compression is lossy: it throws away fine detail your eyes barely notice, and the quality slider controls how much goes.
  • Quality 80 to 85 is the sweet spot — going from quality 95 to 82 can halve a file with almost no visible change.
  • Resize first, then lower quality. A photo shown at 1200 pixels wide does not need to be 4000 pixels wide.
  • Never re-compress an already compressed JPEG at a low setting, and never save at quality 100 for the web.
  • WebP beats JPEG by roughly a quarter at the same quality, but JPEG remains the safest choice when compatibility matters.

What JPEG compression actually does

A JPEG file is not a pixel-for-pixel copy of the scene your camera saw. It is a clever approximation, built by an encoder that studies the image and discards the information your eyes are least likely to miss. That is why the format is called lossy: once detail is thrown away, it cannot be recovered. A jpeg compressor simply gives you control over how aggressive that discarding process is.

It starts with colour. Human vision is far more sensitive to brightness than to colour, so the encoder keeps far less colour detail than brightness detail. This step, known as chroma subsampling, can cut a file by 29 to 32 percent with no measurable change in quality on typical test images, according to a benchmark published by FitMyPic in October 2026. Most JPEGs already use 4:2:0 subsampling.

Next, the image is split into tiny 8 by 8 pixel blocks, and each block is transformed by a piece of mathematics called the discrete cosine transform, or DCT. Instead of storing 64 individual pixel values, the encoder stores frequency values describing how quickly brightness changes across the block. Smooth areas, such as a clear sky, need only a few values; busy areas, such as grass or hair, need more. The encoder then rounds these values — a step called quantisation — and the quality setting decides how roughly it rounds. At quality 95 the rounding is gentle; at quality 60 it is coarse, and blocks start to look flat or blotchy. A final packing step then gives short codes to the most common patterns, losing nothing further. All the visible damage in a JPEG comes from quantisation, which is why the quality number matters so much.

JPEG compression is also cumulative. Every time you open a JPEG, edit it, and save it again as a JPEG, the encoder runs the whole process over an image that has already lost detail. It cannot tell original detail from compression artefacts, so it treats the artefacts as real picture content and adds fresh ones of its own. Keep an original copy and always compress from it, never from a file that has already been squeezed.

How to compress JPEG files: finding the quality sweet spot

If there is one number to remember from this guide, it is 80 to 85. That range is where most photos give up the bulk of their file size while keeping their looks. Google Lighthouse recommends serving JPEGs at quality 85 as a web baseline, a figure highlighted by ToolHQ in August 2026.

A test published by BananaFast on DEV on 31 October 2026 put 28 photographs through 15 JPEG and WebP settings, measuring results with SSIM, a similarity score where 1 means identical to the original. Dropping JPEG quality from 95 to 82 cut the typical photo by about 51 percent, while the SSIM score only moved from 0.998 to 0.978 — far too small a difference for the human eye to spot. The median file at quality 80 was 1,071 KB, against 2,420 KB at quality 95.

A separate benchmark from FitMyPic, published on 22 October 2026, tells the same story from the other direction. On a photographic test image, raising quality from 75 to 90 tripled the file size, from 141.2 KB to 414.7 KB, while the SSIM score moved by only 0.005. Between quality 85 and 95 the file grew 3.5 times, from 270.2 KB to 952.8 KB, and both PSNR and SSIM — two standard measures of image fidelity — actually got slightly worse. Leaving the slider at 95 or 100 out of habit wastes bytes for no gain.

Quality setting Typical file size Visible quality Best for
95–100 Very large, often 2–3 times the size at 85 Perfect Archiving originals and print work — not the web
85–90 Large, but roughly a third of the size at 95 Indistinguishable in normal viewing Hero images and portfolios
80–85 About half the size of the quality-95 version Excellent; differences need a zoomed comparison The sweet spot for most web photos
70–75 Small, roughly a third of the quality-95 size Good; slight softness in fine detail Thumbnails, social posts, email attachments
60 and below Very small Noticeable blockiness and banding in skies Only when a hard size limit forces it

The first drop, from 100 down to 85, saves the most bytes for the least visible cost, and each step below 80 buys fewer bytes while costing more quality. Start at 82 or 85, check the result at full size, and only drop lower if the file is still too big. Your encoder matters too: MozJPEG, Mozilla’s improved encoder, produces files 30 to 40 percent smaller than standard libjpeg at the same quality, per the same ToolHQ summary.

JPEG quality settings and file size comparison

Compress JPEG by resizing first: the lever most people miss

When a JPEG is too big, most people reach for the quality slider first. It is usually the wrong lever. Dimensions matter far more than quality, because file size grows with the number of pixels. Halving the width and height of a photo quarters the pixel count — and roughly quarters the file size — before you touch quality at all.

Think about where the photo will actually be seen. A blog image displayed at 800 pixels wide does not need to be 4000 pixels wide, and a profile picture shown at 200 pixels does not need 3000. The extra pixels are never displayed; they only slow the page down and eat storage. As a rule, resize to no more than twice the display width — 1200 to 1600 pixels on the long edge for a typical article image — and for a form upload with a 1 MB limit, 1600 pixels at quality 80 lands under the limit for most phone photos.

If your photo is far larger than its destination, use Fileoraa’s image resizer to bring the dimensions down first, then compress the resized file. That order keeps quality in its sweet spot instead of forcing it down to 50 to hit a size target resizing alone could have met. Resize once, to the final size, rather than in several small steps.

Before and after: the same photo at high and low JPEG file size

When to switch format instead: WebP and AVIF

Sometimes the honest answer to a JPEG problem is to stop using JPEG. Newer formats compress the same picture into far fewer bytes. According to MDN, WebP files are typically 25 to 35 percent smaller than JPEG at the same visual quality, and AVIF files are about 50 percent smaller. A web.dev test found quality 60 cut a sample JPEG by 79 percent with imperceptible differences — but switching to WebP at a comfortable quality often beats squeezing JPEG to the edge. The BananaFast test confirms it: WebP at quality 80 came out about 26 percent smaller than JPEG at quality 82, with comparable visual quality.

So why is this guide about JPEG at all? Because compatibility still matters. JPEG opens everywhere — every phone, every email client, every old piece of software, every form upload that lists “.jpg” as an accepted type. WebP support is now near-universal in browsers, but many upload forms and older systems still reject it, and AVIF support is still patchy outside the browser.

If the image lives on a website you control, serve WebP with a JPEG fallback, or convert to WebP outright. If the image is going into an email, a form, a marketplace listing, or any system you do not control, stick with JPEG and compress it well. And if you need transparency or crisp lines rather than photographs, neither JPEG nor WebP is the right answer: convert the file to PNG instead, which keeps edges sharp and supports transparent backgrounds. Fileoraa’s JPG to PNG converter handles that switch in the browser. Format and quality are separate choices: a WebP at quality 95 is still wasteful, and a JPEG at quality 80 is still a good file.

Compress a JPEG in under a minute

You do not need photo editing software: a browser tool does the whole job, processing on your own device so your photos are never uploaded. Here is the workflow, using Fileoraa’s free Compress Image to KB tool.

Step 1: Open the tool and choose your photo

Open Fileoraa’s Compress Image to KB tool in your browser — it works on desktop and on your phone, with nothing to install. Drag your JPEG onto the page, or tap to pick it from your files. Use the original camera file where possible.

Step 2: Set your target size or quality

Decide what the file is for before you touch a slider: a 500 KB form limit means a 500 KB target, a blog post means quality 82 at around 1400 pixels wide, and an email means quality 75 at 1200 pixels. Having the target in mind first stops you over-compressing out of caution.

Step 3: Preview and compare

Compress once, then look at the result at full size — not as a thumbnail — checking smooth skies, skin and fine detail. If you can see blockiness or banding, nudge the quality up five points and try again. If it looks clean, you are done.

Step 4: Download and check the size

Download the compressed file and check its size against your target. If it is still too big, resize down a step before lowering quality further. Save the copy under a new name so the original stays untouched.

Compressing a JPEG photo on a phone in a browser

Common mistakes when you compress JPEG files

Most bad-looking JPEGs come from a handful of avoidable habits.

Re-compressing an already compressed file

A photo downloaded from social media or a messaging app has already been compressed hard by that platform. Compressing it again at a low setting stacks fresh artefacts on top of old ones, and the result quickly looks muddy. Always compress from the best-quality copy you have; if that is all you have, use quality 85 or above.

Saving at quality 100

Quality 100 feels safe, but it is almost pure waste: the FitMyPic benchmark showed the file growing 3.5 times between quality 85 and 95 with no measurable gain, and quality 100 is heavier still. Save it for a master archive copy, never for a file you intend to share.

Ignoring dimensions

A 4000-pixel photo compressed to quality 60 is usually both bigger and worse-looking than the same photo resized to 1400 pixels at quality 82. If your file is too big, check the dimensions before you touch the quality slider. Oversized images are the most frequent cause of slow pages and rejected uploads, and the easiest problem to fix.

Compressing the wrong kind of image

JPEG is built for photographs. It is a poor choice for screenshots, logos, diagrams and images with large flat areas of colour or sharp text, where its 8 by 8 blocks produce visible smudging around edges. For those, use PNG. And remember compression is a one-way street: once detail is discarded, no tool can bring it back, so keep the original safe.

Frequently asked questions about compressing JPEGs

Does compressing a JPEG reduce its quality?

Yes, JPEG compression is lossy, so some detail is always discarded. In practice, though, quality 80 to 85 removes detail your eyes cannot see in normal viewing. Visible loss only appears when the setting drops too low or a file is compressed repeatedly.

What is the best quality setting to compress a JPEG?

For most photos, quality 80 to 85 is the best balance of size and appearance; quality 85 is the Google Lighthouse baseline for the web. Use 85 to 90 for hero images, 80 to 85 for general web use, and 70 to 75 for thumbnails and email. Avoid 95 and above for anything published online.

How much can I reduce JPEG size without losing quality?

Typically 50 to 80 percent. In a test of 28 photos published in October 2026, moving from quality 95 to 82 cut the typical file by about 51 percent with almost no measurable change. Adding a resize to the display size can take the total saving past 80 percent.

Is it better to resize or compress a JPEG?

Resize first, then compress. Resizing cuts the pixel count, the biggest driver of file size, while compression only changes how roughly each block is stored. A photo resized to its display size at quality 82 will usually be smaller and better-looking than the full-size original crushed to quality 60.

Can I compress a JPEG without losing quality at all?

Not with lossy JPEG compression — some data is always discarded. But you can get so close to the original that no one can tell the difference. If you truly need zero loss, save as PNG instead and accept the larger file.

With the quality slider in its sweet spot, the dimensions matched to the job, and the original kept safe, you can cut most photos by more than half with no visible difference — in under a minute. Try it now with Fileoraa’s free Compress Image to KB tool: pick a photo, set your target size, and download a lighter file that still looks like the picture you took.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *