JPEG Optimizer: Smaller Files, Same Quality
JPEG Optimizer: Smaller Files, Same Quality
A photo straight out of a modern phone can easily weigh 4 to 6 MB. Put ten of those on a web page and you are asking visitors to download 50 MB before they see a single word. A good JPEG optimizer fixes that in seconds — shrinking the file dramatically while keeping the picture looking exactly the way it should.
That is the promise of a good JPEG optimizer: a much smaller file with no visible change. This guide explains how it really works, which settings are worth using, and the exact workflow that gets you the smallest file at the best quality.
Key takeaways
- Start at quality 80. For most web photos, quality 75–85 looks identical to quality 95 — and the file is often half the size.
- Resize before you compress. Shrinking a photo to its real display size saves far more bytes than any quality tweak.
- Lossless optimisation is free money. Stripping metadata and rebuilding Huffman tables can cut 5–10% with zero quality loss.
- Never optimise your only copy. Keep the original safe, and optimise a copy for the web, email, or upload.
- JPEG is not dead. It still powers the majority of the web’s largest images, so optimising it properly still matters.
What a JPEG Optimizer Actually Does
A JPEG optimizer is a tool that makes a JPEG file smaller. There are two very different ways to do it, and a good tool uses both.
Lossy optimisation: throwing away what eyes cannot see
JPEG is a lossy format, which means every JPEG already discards some image data. When you save a photo as a JPEG, the encoder splits it into 8×8 blocks of pixels and rounds off the fine detail your eyes are least likely to notice. The quality setting controls how aggressively that rounding happens. A lower number means more rounding, a smaller file, and eventually visible damage — blocky patches in smooth skies and smearing in fine textures.
Lossy optimisation re-encodes the image at a lower quality setting, and this is where the big savings live: dropping a camera JPEG from quality 95 to quality 80 can cut the file size by 50–65% with no visible difference on a screen. The catch is that the process is one-way. Once detail is discarded, it is gone, and re-saving the same file again compounds the damage. That is why you should always optimise a copy and keep the original untouched.
Lossless optimisation: the same pixels, fewer bytes
Lossless optimisation never touches a single pixel. Instead, it tidies up how the data is stored: stripping embedded metadata (camera settings, thumbnails, GPS data), rebuilding the Huffman tables that pack the data more efficiently, and converting a baseline JPEG into a progressive one.
How much does that actually save? A test published by Iminify in October 2026 ran mozjpeg’s lossless tool over 25 ordinary JPEGs — phone photos, camera shots, screenshots, and AI-generated images. Together the files shrank 9.5%, from 164.1 MB to 148.5 MB, with the median file losing 6.6% and the best saving 16.3%. Every file still decoded to the same pixels. That is free space.
Chroma subsampling: the quiet space-saver
One more technique sits between the two. Chroma subsampling reduces the resolution of the colour information while keeping brightness detail at full resolution. Human vision is far more sensitive to brightness than to colour, so the change is almost impossible to spot in a normal photograph. Most encoders default to 4:2:0 subsampling, which stores colour at half resolution in both directions. It is also why JPEG is a poor choice for screenshots with sharp coloured text: the colour bleeding around letters becomes visible. For photos, though, it is a gift.
Progressive JPEG: a better loading experience
A standard (baseline) JPEG loads top to bottom, line by line. A progressive JPEG loads in waves: a blurry full preview first, then progressively sharper passes, so visitors see the whole image quickly on a slow connection. Progressive files are usually a few percent smaller too. There is no downside for web use, which is why most good optimizers produce progressive JPEGs by default.
JPEG Optimizer Quality Settings Explained: The Numbers That Matter
Every JPEG optimizer exposes a quality setting, usually a slider from 0 to 100. That number does not mean “percent of original quality” — it selects a quantization table that decides how much detail gets rounded away. The scale is not standardised either: quality 60 in Photoshop is not the same as quality 60 in libjpeg or in mozjpeg, so treat other people’s numbers as starting points, not gospel. Here is what each band typically delivers for a photograph viewed on screen:
| Quality | Typical size reduction | Visible difference | Best for |
|---|---|---|---|
| 90–100 | 10–30% | None | Print, archival, source files |
| 80–89 | 40–60% | None on screen | Product photos, portfolios, hero images |
| 75–79 | 55–70% | None for most viewers | General web delivery — the sweet spot |
| 60–74 | 70–85% | Slight softening on close inspection | Thumbnails, social posts, email attachments |
| Below 60 | 85%+ | Obvious blocking and artefacts | Only when size matters more than looks |
For web delivery, quality 75–85 is the sweet spot: roughly 55–70% file size reduction with no visible degradation at normal viewing distances. Going above 85 buys almost nothing visible for the extra bytes. Google’s Lighthouse audit recommends quality 85 as a web baseline, according to a ToolHQ guide published in August 2026.
The encoder behind the slider matters as much as the number. MozJPEG, Mozilla’s optimised JPEG encoder, produces files 5–15% smaller than standard libjpeg at the same quality setting, thanks to better quantization tables and a technique called trellis quantization (Dev.to / Pixotter guide, March 2026). Some measurements put the advantage higher still — 30–40% smaller at quality 80–85 with comparable visual quality. The practical lesson is simple: if your tool lets you choose an encoder, pick the modern one, and if it does not, know that the same “quality 80” can produce noticeably different files in different tools.
The most reliable way to pick your number is to test it on your own images. Export the same photo at 90, 80, and 70, open them side by side at 100% zoom, and look at the tricky areas: smooth gradients like skies, fine textures like hair, and any text in the frame. Most people cannot tell 80 from 95. Many cannot tell 70 from 95 on a phone screen. Once you find your threshold for a type of image, stick with it.

The Step-by-Step JPEG Optimisation Workflow
Optimisation works best as a short routine, done in the right order.
Step 1: Resize to the real display size
This is the single biggest win, and it comes before any compression. A 6000-pixel-wide camera photo displayed at 800 pixels on your website is carrying eight times more data than anyone will ever see. Resize it to the largest size it will actually be shown at — plus a little headroom for high-density screens, usually 1.5× to 2× the display width. If you need a quick resize, Fileoraa’s free image resizer handles it in the browser with no upload.
Step 2: Run lossless optimisation first
Before you touch the quality slider, strip the metadata and rebuild the file’s internal tables. This alone typically saves 5–10% and costs nothing in quality. Many optimizers do this automatically, but if yours has a separate “lossless” or “strip metadata” option, use it. One caution: stripping metadata can also remove the colour profile (ICC) in some tools. If colour accuracy matters — product photos, for example — keep the ICC profile and strip only the rest.
Step 3: Pick your quality and preview
Start at quality 80. Compare the result against the original at full zoom, looking at skies, skin, and fine detail. If it looks identical, try 75. If you spot artefacts, step up to 85. For hero images and product shots, stay at 80–85; for blog illustrations and thumbnails, 70–75 is usually plenty.
Step 4: Check the file size target
Sometimes you are optimising to hit a number — an upload limit, an email attachment cap, or a form that demands a photo under 200 KB. Work backwards: start at quality 80, check the size, and step down in fives until you land under the limit. A tool that compresses to an exact target size does this automatically. Fileoraa’s compress image to KB tool lets you set the exact size you need, so you can hit a limit without guessing.
Step 5: Save as progressive, and keep the original
Export the finished file as a progressive JPEG for better loading on the web, and save it under a new name. Never overwrite your original.
Quick checklist
- Resize to display size (plus retina headroom) before compressing.
- Strip metadata and optimise tables losslessly first.
- Start at quality 80; adjust in steps of 5.
- Preview at 100% zoom — skies, skin, and text reveal artefacts first.
- Export as progressive JPEG for web use.
- Keep the original file safe, and optimise a copy.

When NOT to Optimise a JPEG
Optimisation is a one-way street, so there are times when the right move is to leave the file exactly as it is.
Your only copy of a photo. If a JPEG is the only version of a memory, do not optimise it in place. Copy it, optimise the copy, and keep the original somewhere safe. Storage is cheap; memories are not.
Images destined for print. Printers need far more data than screens. A photo that looks perfect at quality 75 on a phone can show banding and soft detail when printed at A4 or larger. For print work, keep quality at 90 or above and keep the full resolution.
Photos you will edit again. Every lossy save discards more detail. If you plan to crop, retouch, or recolour a photo later, do that work on the highest-quality version you have, and optimise only the final export. Optimising mid-workflow is like photocopying a photocopy — the degradation compounds.
Images with text, line art, or sharp graphics. JPEG’s block-based compression smears sharp edges, and chroma subsampling bleeds colour around fine lines. A screenshot, diagram, or logo saved as a JPEG will look worse after optimisation. PNG is the right format for those — it is lossless and keeps edges crisp.
Photos needed as evidence. For insurance claims, legal records, or anything where authenticity might matter, keep the original with its metadata intact. Stripping EXIF data removes the camera, date, and location information that proves where and when a photo was taken.
JPEG vs WebP and AVIF: Should You Still Optimise JPEGs?
JPEG is over thirty years old, and newer formats beat it on paper. WebP, introduced by Google in 2010, delivers files roughly 25–35% smaller than JPEG at the same perceived quality. AVIF, built on the AV1 video codec, is around 50% smaller. Both now enjoy near-universal browser support. So is optimising JPEGs a waste of time? Not yet — and the numbers explain why. According to the 2025 Web Almanac, cited by Core Web Vitals in 2026, JPEG still accounts for 57% of Largest Contentful Paint images on both mobile and desktop, while WebP has grown to just 11%. Every camera, phone, and social platform still produces and accepts JPEGs by default, and email clients, messaging apps, and older systems handle them without a second thought.
The newest challenger, JPEG XL, had a dramatic 2026. Chrome removed it in 2022, then restored it in Chrome 145 in February 2026 — behind a flag — after a memory-safe Rust rewrite of its decoder. Mozilla announced in August 2026 that Firefox would ship it, with Firefox 158 enabling it by default in October 2026, and Safari has supported it since 2023. Even so, global browser support was only around 12% in early 2026, almost entirely from Safari users, so it is not a format you can rely on for a general audience yet.
The practical answer is to use the right format for the job. Keep optimising JPEGs for anything that needs universal compatibility: email attachments, social uploads, and client deliveries. Use WebP or AVIF when you control the delivery — your own website with modern fallbacks, for instance — because the savings are real. And if your photos start life as HEIC files on an iPhone, convert them to JPEG first with Fileoraa’s HEIC to JPG converter before optimising, since HEIC support outside Apple devices is still patchy.

Frequently Asked Questions
What does a JPEG optimizer do?
A JPEG optimizer reduces a JPEG file’s size in two ways: lossy compression, which discards detail your eyes are unlikely to notice, and lossless optimisation, which strips metadata and repacks the data more efficiently without changing a single pixel. A good optimizer combines both.
What is the best quality setting for JPEG optimisation?
For most web photos, quality 75–85 is the sweet spot, and quality 80 is a safe starting point: files are typically 50–65% smaller than the original with no visible difference on screen. Use 85–90 for hero images and product photos, and 70–75 for thumbnails and casual blog images.
Does JPEG optimisation reduce image quality?
Lossy optimisation does, by design — but at the right setting the loss is invisible. Quality 80 looks identical to quality 95 for most viewers. Lossless optimisation reduces file size with zero quality loss, typically saving 5–10%.
Can I optimise a JPEG without losing quality?
Yes, with lossless optimisation. Stripping metadata, rebuilding Huffman tables, and converting to progressive encoding can cut roughly 5–10% — in one October 2026 test of 25 files, the total saving was 9.5% — without changing any pixels. For bigger savings, some quality loss is unavoidable, but at quality 80 it is invisible.
Is WebP better than an optimised JPEG?
Usually, yes: WebP files are roughly 25–35% smaller than JPEG at the same perceived quality, and AVIF is around 50% smaller. But JPEG remains the most compatible format, accounting for 57% of the largest images on pages according to the 2025 Web Almanac. Optimise JPEGs when compatibility matters, and use WebP or AVIF when you control the delivery.
How small should a JPEG be for a website?
As a rule of thumb, keep hero images under 200 KB, content images under 100 KB, and thumbnails under 30 KB. Resize to the display size first, then compress at quality 75–85. If a photo will not fit under your target, reduce the dimensions before dropping the quality further.
Smaller Files, Same Quality — Start Optimising
A JPEG optimizer is one of the simplest wins in digital housekeeping. Resize first, start at quality 80, let lossless optimisation do its quiet work, and keep your originals safe. The result is a photo that loads faster, costs less bandwidth, and looks exactly the same.
Try it now: upload a photo to Fileoraa’s free compress image to KB tool, set your target size, and download the optimised file in seconds. No sign-up, no watermark, and your photo never leaves your browser.
