2026 · Novus Stream Solutions (hub)About 9 min readNovus Stream Solutions

Lossy vs lossless compression: what each is for

Every image, audio, and video file you save is compressed one of two ways: lossy, which discards data for much smaller files, or lossless, which keeps every bit. Choosing the wrong one means a blurry photo or a bloated archive. Here is what each is actually for.

Two compression paths side by side — lossy discarding data for a much smaller file, lossless keeping every bit at a larger size — with the use cases each one fits

Overview

Every digital file you save — a photo, a song, a video, a document — is stored using compression, because raw, uncompressed media is enormous and impractical to keep or send. There are two fundamentally different ways to compress, and the difference between them is one of the most useful things to understand about working with media: lossy compression makes files dramatically smaller by permanently throwing some data away, while lossless compression makes files smaller without discarding anything, so the original can be reconstructed bit-for-bit. Neither is better in the abstract; they are tools for different jobs, and the entire skill is knowing which job you are doing. Choose wrong and you get a blurry, artifact-ridden photo where you needed fidelity, or a needlessly gigantic file where a small one would have been perfect.

The confusion that surrounds this topic comes mostly from treating "compression" as one thing, when the two kinds behave so differently that they are almost opposites in intent. Lossy compression bets that you will not notice what it removes, and when the bet is right — as it usually is for photographs and music — it delivers files a fraction of the size with quality the eye or ear accepts as identical. Lossless compression makes no such bet; it guarantees the data comes back exactly, which is essential when every bit matters and fatal to nothing except file size. This guide explains what each actually does, the crucial trap of compounding loss, which common formats fall into which camp, and a simple rule for choosing — so that "which format should I save this as?" stops being a guess.

What lossy compression actually does

Lossy compression shrinks a file by analyzing its content and permanently discarding the parts a human is least likely to perceive. In a photograph, that means subtle color and detail variations the eye barely registers; in audio, it means frequencies and quiet sounds masked by louder ones; in video, it means redundancy between frames and within them. The result is astonishing efficiency: a lossy file can be a small fraction of the original size while looking or sounding, to most people in most conditions, the same. This is why the photos on virtually every website, the music in every streaming service, and the video on every platform are lossy — at that scale, the size savings are not a nicety, they are what makes the whole thing possible to deliver.

The catch is that the discarded data is gone for good. A lossy file cannot be turned back into the original; the information was thrown away, not hidden, so what you have is a permanent approximation. For most delivery purposes this is exactly the right trade — nobody needs a bit-perfect copy of a product photo on a web page — but it has a consequence that bites people who do not expect it: quality only ever degrades, never recovers, and pushing the compression too hard introduces visible artifacts (blocky patches, color banding, a smeary halo around edges) that no later processing can remove. Lossy is a one-way door, which is fine when you are walking through it deliberately and a problem when you do not realize you are.

What lossless compression actually does

Lossless compression also makes files smaller, but it does so by finding and encoding patterns and redundancy more efficiently, without throwing any information away — so the original can be perfectly reconstructed, every bit identical. The way to picture it is like packing a suitcase neatly versus loosely: the contents are exactly the same, they just take less space. Because nothing is discarded, a lossless file has no artifacts and no generation loss, and it can be opened, edited, and re-saved any number of times without ever degrading. This is what makes lossless the right choice whenever fidelity is non-negotiable: the master copy of a recording, an image with crisp text or sharp edges, a screenshot, a logo, or anything you will edit repeatedly.

The price of that guarantee is size. Lossless files are far larger than lossy ones for the same content — often several times larger for a photograph — because the only savings available are from genuine redundancy, not from discarding perceptible-but-acceptable detail. For content with lots of flat areas and repetition, like graphics, screenshots, and line art, lossless compresses well and the size penalty is modest. For content with continuous, noisy detail, like a photograph of foliage, lossless can barely shrink it at all, which is precisely where lossy shines. So lossless is not "the better, safe choice" to default to everywhere; it is the correct choice when fidelity matters, and the wrong, wasteful choice when it does not and the file is photographic.

The generation-loss trap

The single most important practical consequence of the lossy/lossless distinction is what happens when you save a file more than once, and it is the thing that catches the most people. Because lossy compression discards data every time it runs, repeatedly editing and re-saving a lossy file compounds the loss: each save throws away a little more, and the degradation accumulates like a photocopy of a photocopy of a photocopy. A JPEG opened, lightly edited, and re-saved as a JPEG a dozen times will visibly deteriorate even though no single save looked destructive, because the losses stack. This is generation loss, and it quietly ruins images and audio that were edited carelessly over time.

The defense is a simple workflow rule: keep your working and master copies lossless, and only go lossy once, at the end, for delivery. Edit in a lossless format (or the editor's native format) so that every save is bit-perfect, and export a lossy copy as the final step for the web, for sharing, or for streaming — treating that lossy export as a disposable end product, not something you edit further. If you need to make changes, you go back to the lossless master and export a fresh lossy copy, rather than editing the lossy one. Following this one rule prevents the slow, invisible decay that otherwise afflicts anything saved lossily and touched repeatedly, and it is the practical reason the distinction is worth understanding at all.

The generation-loss trap: a lossy file degrading with each re-save like a photocopy of a photocopy, versus a lossless master that stays identical no matter how many times it is saved
Edit lossless, deliver lossy: a lossy file degrades a little with every re-save (generation loss), while a lossless master stays bit-perfect — so keep masters lossless and go lossy once, at the end.

Which common formats are which

Knowing which everyday formats are lossy and which are lossless turns the theory into decisions. On the image side, JPEG is lossy and the workhorse for photographs; PNG is lossless and the right choice for graphics, screenshots, logos, and anything with transparency or crisp edges; GIF is lossless in its color data but limited to 256 colors; and the modern formats WebP and AVIF are flexible, offering both lossy and lossless modes so you choose per image. That flexibility is why the modern formats are worth learning, and why the ecosystem compares them directly in /product-blog/png-vs-webp-vs-avif-for-transparency and frames the most common everyday choice in /product-blog/jpg-vs-png-when-to-use-which.

In audio, MP3, AAC, and Ogg Vorbis are lossy and dominate delivery, while FLAC, ALAC, and WAV are lossless and used for masters, archives, and audiophile listening. In video, essentially everything you stream — H.264, H.265, VP9, AV1 — is lossy, because uncompressed video is impractically huge; lossless video exists but is reserved for production intermediates. The pattern across all media is consistent: lossy formats own delivery and distribution because size is what matters there, and lossless formats own creation, editing, and archiving because fidelity is what matters there. Recognizing which camp a format belongs to tells you, immediately, what it is designed for and whether it fits your job.

A simple rule for choosing

All of this collapses into a rule that covers the large majority of real decisions: use lossy for photographs and for final delivery where small size matters, and use lossless for graphics, for anything with sharp edges or text, and for masters and archives you will edit or keep. If the content is a continuous-tone photo headed for the web, lossy (a JPEG, or a lossy WebP/AVIF) gives you the size you need with quality the viewer accepts. If the content is a logo, a screenshot, an illustration, a transparent image, or the master you will keep editing, lossless (a PNG, or a lossless mode) preserves the crispness and the data. When in doubt about a photo for delivery, lossy; when in doubt about a graphic or a master, lossless.

The few cases that need more thought are the edges of that rule, and they resolve cleanly once you name what you are optimizing for. A photograph you will edit further is a master, so keep it lossless until the final export, despite being a photo. A graphic going onto a performance-critical web page might justify a lossy mode if its size is genuinely a problem and the artifacts are invisible, despite being a graphic. The principle underneath every case is the same: decide whether this particular file's job is fidelity or size, and pick the compression that serves that job. Once you frame each file that way — what is this for, fidelity or size? — the choice between lossy and lossless stops being a technical puzzle and becomes an obvious answer to a question you have already asked.

Compression in a real workflow

Putting it together, a sane media workflow uses both kinds of compression in their right places rather than picking a side. You capture and edit in lossless or native formats so your working files never degrade, you keep lossless masters of anything important, and you export lossy delivery copies as the final step, sized for where they are going. A photographer keeps the raw and a lossless edit, then exports JPEGs for the gallery. A designer keeps the source file, then exports a PNG for a logo and a lossy WebP for a hero photo. A musician keeps a WAV or FLAC master, then exports MP3 or AAC for distribution. In every case, lossless protects the source and lossy serves the audience.

Doing this well does not require expensive software; the choices are about format and intent, and free in-browser tools can handle the conversions and the final compression. The ecosystem's practical walkthrough at /product-blog/how-to-compress-an-image-without-losing-quality covers hitting a target file size for delivery without visible quality loss, which is the lossy-export step done carefully. The takeaway is that lossy and lossless are not rivals to choose between once and for all; they are two stages of one pipeline — lossless to create and keep, lossy to deliver — and understanding the difference is what lets you keep your originals pristine while still shipping files small enough to load fast and share easily.

Frequently asked questions

Quick answers to common questions about this topic.

What is the difference between lossy and lossless compression?

Lossy compression permanently discards data the human eye or ear is least likely to notice, producing much smaller files that cannot be restored to the original. Lossless compression shrinks files by encoding redundancy more efficiently without discarding anything, so the original is reconstructed bit-for-bit — at the cost of larger files.

When should I use lossy compression?

Use lossy for photographs and for final delivery where small file size matters — web images, streaming audio and video, sharing. Formats like JPEG, MP3, AAC, and H.264 are lossy. The trade is size for a permanent, usually-imperceptible loss of detail.

Why does my JPEG get worse every time I save it?

That is generation loss: lossy compression discards a little data on every save, and the losses compound like a photocopy of a photocopy. Avoid it by editing and keeping a lossless master and only exporting a lossy copy once, at the end, for delivery — never editing the lossy file repeatedly.

Is lossless always the safer choice?

No — it is the right choice when fidelity matters (graphics, text, edges, transparency, masters, archives) and a wasteful one when it does not. For a photograph headed to the web, lossless files are needlessly huge and lossy is correct. Decide per file whether the job is fidelity or size.