The Art of Throwing Away Data You'll Never Miss
In a hurry? Skip straight to the numbers.
Open the Image Compression Calculator →The image compression calculator shows how dramatically a format like JPEG shrinks a photo, often to a tenth of its raw size or less. That shrinkage is not magic and not free: JPEG achieves it by discarding image data, permanently. The genius is in choosing what to throw away, information the human eye can barely perceive, so that a much smaller file still looks almost identical to the original. Understanding this "lossy" bargain explains both why JPEGs are so small and why they should be handled with care.
Lossy Versus Lossless
There are two philosophies of compression. Lossless methods pack data more efficiently but preserve every bit, so the original can be perfectly reconstructed, which is why they achieve only modest shrinkage on complex photos. Lossy methods, like JPEG, go much further by actually deleting information judged unimportant, achieving far smaller files at the cost of some fidelity. The calculator's large compression ratios for JPEG versus small ones for lossless formats reflect exactly this divide: you can only shrink so far without discarding.
Exploiting the Eye's Weaknesses
JPEG's cleverness is that it discards precisely the data the human visual system is least sensitive to. Our eyes are far more attuned to broad areas of brightness and gentle gradients than to fine, rapid variations in color and detail. JPEG identifies and drops much of that fine, high-frequency information, along with subtle color detail our eyes barely register, while carefully preserving the brightness structure we notice most. It is compression tailored to the biology of human perception.
| Image information | Eye's sensitivity | JPEG's treatment |
|---|---|---|
| Overall brightness | High | Preserved |
| Fine color detail | Low | Heavily reduced |
| Subtle high-frequency detail | Low | Discarded |
The Quality Dial
JPEG lets you choose how aggressively to discard, the "quality" setting, which is really a dial on how much information to throw away. At high quality, only barely-perceptible data is dropped and the image looks pristine while still being much smaller than raw. Push the quality down, and the format discards more and more, until the losses become visible as blocky patches and halos around edges, the telltale "JPEG artifacts." The calculator's compression ratio is essentially where you set this dial.
Why It Matters How You Handle JPEGs
Because the discarding is permanent, a crucial pitfall follows: every time you re-save a JPEG, it is compressed again, discarding a little more data each time, so repeatedly editing and re-saving the same JPEG causes cumulative, irreversible degradation. This is why photographers keep an untouched master, often in a lossless or raw format, and export JPEGs only as final deliverables. The calculator helps you predict a JPEG's size, but the deeper lesson is that its smallness comes from a one-way street: what JPEG throws away, it cannot give back.
To work backward from a target print size, see the Image DPI Calculator; for the print dimensions your pixels support, the Print Size DPI Calculator.
Ready to Put This Into Practice?
Now that you understand how it works, plug in your own numbers and get an instant, accurate result.
Use the Image Compression Calculator Now →