- The 80% rule, and why it breaks on real files
- What the quality slider actually controls
- Measured: six images across five quality levels
- Resizing beats recompression every time
- What platforms do to your file after upload
- The batch workflow, step by step
- When to stop compressing, and the mistakes that undo it
There is no universal "lossless" quality number. For photographs, 85–90 is where careful viewers stop noticing; 80 suits previews and listings but softens fine texture; below 75 skies band. Resize first: a 1600 px export at quality 85 beats a 4000 px export at quality 60 on bytes and appearance. Compress once, from the original master.
How we tested this
- Chrome 141 and Edge 141 on Windows 11; Firefox 145 and Safari 26.1 on macOS as cross-checks.
- Six sources: outdoor foliage, studio portrait, night sky, product on white, text screenshot, and an already-compressed social download.
- Each exported at quality 95, 90, 85, 80 and 70 with the long edge fixed at 2000 px and 4:2:0 chroma unless stated.
- Output sizes read from the files on disk; artefacts judged at 100% and 150% zoom on a 1440p display.
- These are browser encoders on ordinary hardware, not a calibration bench; colour verdicts are visual, not measured.
The 80% rule, and why it breaks on real files
The "quality 80" advice is everywhere, and it is not wrong — just an average. It comes from watching large platforms: social networks land around 70–85 when they re-encode an upload, WordPress resizing plugins default to 82, and every SEO checklist repeats the number. For a mid-sized photo of a garden, 80 genuinely is invisible.
Three variables decide whether 80 is invisible, and the rule ignores all of them. Content: smooth gradients band early, busy texture hides damage well, and sharp text is destroyed before the slider matters. Dimensions: 80 on a 4000 px file and on a 1200 px file produce different artefacts, since the block size is fixed but the viewing scale is not. Encoder: "quality 80" in Photoshop, libjpeg and a browser canvas use different quantisation tables, so the number does not travel between tools.
Most importantly, 80 assumes a first-generation file. Apply it to a JPEG Instagram already compressed to roughly 72 and you get two generations of damage — doubled block edges, smeared colour — for a saving barely worth the risk.
What the quality slider actually controls
A JPEG encoder cuts the image into 8×8 pixel blocks, converts each block into 64 frequency coefficients, then divides those coefficients by values from a quantisation table. Low frequencies — overall shape and brightness — survive; high frequencies — fine texture, hair, grass, star points — get rounded toward zero. The quality number scales that table: it decides how aggressively high-frequency detail is discarded, not which detail is kept.
Chroma subsampling is a separate dial that most sliders do not show. Human vision resolves brightness far better than colour, so JPEG can store colour at a fraction of the luma resolution. In 4:2:0, the default in cameras and browsers, each colour sample covers a 2×2 pixel block: a quarter of the colour information. In 4:4:4 every pixel keeps its own colour. That is why a saturated red logo on white looks muddy even at quality 95, and why 7 pt text develops coloured halos no quality setting removes.
Two further options change bytes without touching pixels. Progressive encoding stores the same coefficients in several passes, usually saving 3–8% on large images and painting a blurry preview sooner — quality identical. Metadata stripping removes EXIF, GPS and thumbnails, often 30–120 KB on a phone photo, and is a privacy win. Strip the ICC profile only if the destination assumes sRGB; removing it from a Display-P3 iPhone shot shifts colours on managed viewers.
Measured: six images across five quality levels
Sizes below come from one batch run at a fixed 2000 px long edge; treat the bytes as representative. The last column matters most: where a careful viewer first notices damage at 100%.
| Source | q95 | q90 | q85 | q80 | q70 | First visible artifact |
|---|---|---|---|---|---|---|
| Foliage landscape | 1.82 MB | 1.05 MB | 780 KB | 612 KB | 386 KB | q70: individual blades mush together |
| Studio portrait | 1.64 MB | 940 KB | 703 KB | 548 KB | 342 KB | q85: skin texture slightly plastic at 150% |
| Night sky with stars | 1.31 MB | 812 KB | 604 KB | 470 KB | 296 KB | q90: faintest stars disappear; q80 bands |
| Product on white | 690 KB | 402 KB | 316 KB | 251 KB | 168 KB | q70: faint ringing and a grey cast in white |
| Text screenshot | 1.10 MB | 806 KB | 690 KB | 604 KB | 452 KB | q90: coloured fringing on letters |
| Already-compressed download | 420 KB | 344 KB | 302 KB | 268 KB | 214 KB | q85: doubled block edges |
The pattern is consistent: 95 to 85 removes 55–60% of the bytes with no cost on photographs of ordinary texture. Going from 85 to 70 halves it again — exactly where skies band and text turns to mush. The screenshot row is the exception: visibly damaged at quality 90, while a PNG of the same screen is 214 KB. For flat graphics, no quality number helps.
Resizing beats recompression every time
If a form displays your image at 800 px wide, the other 1200 px are carried for nobody's benefit. A 4000 px photo at quality 85 lands around 2.4 MB; the same photo at 1600 px lands around 470 KB and needs only quality 92 to match the bigger file's visible detail. Five times smaller, with no loss at viewing size.
"Visually lossless" needs a working definition, because it is thrown around carelessly. Here it means: a careful viewer, at 100% zoom on a normal display, cannot tell which of two files is compressed when compared side by side on that specific content. It is not a mathematical guarantee and does not survive heavy re-cropping or large prints; such a file is a master, not a delivery copy.
Practical starting points: web hero images 1600 px long edge at quality 85, usually 300–500 KB. Email attachments 1200 px at 85, under 300 KB. Marketplaces 1000–1200 px. Print 300 PPI at final size — the print arithmetic is here — quality 90–95, exported from the original.
What platforms do to your file after upload
Compressing before a platform that will compress again is often wasted effort. Instagram and Facebook resize and re-encode uploads, capping the long edge near 1080–2048 px at roughly quality 70–85. A file already softened at quality 70 gets a second generation stacked on top, and the result looks muddy in a way users blame on the app. Upload cleaner — 2048 px at quality 90 — and let them do the single damaging pass.
Email is a different case. Gmail allows 25 MB per message, but most clients display inline images near 1024 px wide and some corporate gateways block anything above a few megabytes. A 1600 px export at quality 85 gets through almost everything and looks sharp.
Print labs want the opposite of web files: 300 PPI at the final size, sRGB or the lab's requested profile, quality 90 or higher, and no metadata surprises. Sending a 1600 px web export to fill an 8×10 inch print gives the printer about 160 PPI — visible softness no sharpening fixes. Government portals are their own genre: hard caps of 2 MB, 500 KB or even 300 KB, and no interest in your colour profile. Resize to their dimension limit first, then step quality down until it passes.
The batch workflow, step by step
- Keep an untouched master folder. Every export goes to a new directory; if an attempt fails, the source is intact.
- Group files by destination. Web, email, social, print and government forms each get their own batch and settings.
- Resize before anything else. 1600 px long edge for web and email, 2048 for social, and final size multiplied by 300 for print.
- Export at quality 85 for photographs. Raise to 90 when the frame contains text, fine fabric texture or a smooth sky; use 95 only for a print master.
- Strip metadata, keep the ICC profile unless you have confirmed the destination assumes sRGB.
- Inspect three files per batch at 100%: one portrait, one gradient, one with text. If those pass, the batch passes.
- Only then chase the size cap. Lower quality in 5-point steps; if that is not enough, go back to step three and cut resolution instead.
- Write the settings down. "1600 px, q85, metadata off" makes the next batch a two-minute job instead of an experiment.
When to stop compressing, and the mistakes that undo it
Compression is a delivery step, not an archive step. Sometimes the right move is to leave the file alone:
- The destination is a print lab. Give it 300 PPI and quality 90+, and let its RIP handle the rest.
- The file is a record. Scans of contracts, evidence photos and medical images are originals; a smaller copy is for sharing, not a replacement.
- You have already saved it twice. A third generation adds visible damage for a saving under 15%.
- The content is text. PNG or lossless WebP will be smaller and pixel-exact on a screenshot.
- The saving is below 10%. That is metadata and Huffman optimisation, not real compression.
- Someone will crop it later. Crop headroom needs pixels, and pixels are what you just deleted.
A checklist worth running before every export: master or copy; long edge at display size; quality 85+ for a photo; any text in the frame; the destination's byte limit; one file inspected at 100%.
Compressing an already-compressed JPEG is the most common and most expensive mistake. Every save re-quantises the blocks and artefacts compound — the last table row lost 36% of its bytes and gained visibly doubled edges. Always re-export from the master, or convert once from the original with a tool that reads the source directly, such as the format converter or the WebP to JPG converter.
The second mistake is meeting a byte cap by lowering quality while keeping full resolution: a 4000 px file at quality 60 is both larger and uglier than a 1600 px file at 85. The third is converting a text screenshot from PNG to JPEG to save space — text gets halos, the file is often bigger, and PNG was right from the start. The fourth is judging on a thumbnail: damage invisible at 25% is obvious at 100%, the zoom every reviewer and print lab uses.
Finally, expect little from "lossless JPEG optimisation" tools: they reorder Huffman tables and drop metadata for a 5–15% gain. Half the bytes means re-encoding from the source or resizing — there is no shortcut.
Need a smaller file that still looks sharp? Re-encode in your browser at the settings above — nothing is uploaded, and you can compare the output before you commit.
Open the image format converter →Frequently asked questions
Is there a genuinely lossless way to shrink a JPEG?
Not really. Tools that claim it usually strip metadata and rewrite the Huffman tables, returning 5–15% with identical pixels. The compressed image data cannot be recovered or shrunk without changing values. For a real reduction, re-encode from the original at quality 85–90, or reduce dimensions — resizing 4000 px to 1600 px typically removes 70–80% of the bytes.
Why does quality 85 ruin my sky photo but quality 80 looked fine on a portrait?
Because the two images contain different frequencies. A clear sky is an almost flat gradient, and JPEG's block quantisation creates visible steps in exactly that surface, so banding shows early. Portrait skin has grain and texture that mask the same error. Judge settings on the content you actually shoot, not on a test image with different subject matter.
Should I compress before uploading to Instagram or Facebook?
Only lightly. Both platforms resize and re-encode anyway, so a heavily compressed upload gets a second damaging pass. Export at 2048 px on the long edge, quality 90, sRGB, and let the platform do its own single compression. Cropping and sharpening matter more to appearance than saving a few hundred kilobytes before upload.
Does compressing for the web hurt print quality?
If you print from the web copy, yes — a 1600 px file cannot fill an A4 page at 300 PPI. Keep the original and export a separate print file at 300 PPI and quality 90–95 instead; two outputs from one master, rather than one file serving both jobs.
A portal caps my upload at 300 KB. What settings should I use?
Start with 1200 px on the long edge, quality 80, metadata stripped — usually 180–260 KB for a photograph. If it still exceeds the cap, drop to 1000 px rather than to quality 60. Portals check bytes, not pixels, and lowering resolution preserves far more apparent quality than crushing the quantisation table.
Why did my file get bigger after compression?
Usually the source was already a low-quality JPEG and the tool re-encoded at a higher quality, or the original was a PNG and the output added colour data. Tools can also add a profile, thumbnail or EXIF. Compare the output against the untouched source, not an edited copy.