Skip to content
Back to Blog
informational

Lossy vs Lossless: What Compression Actually Means

2026-05-17 9 min read

The Core Difference: Throwing Data Away vs. Keeping It All

When you save a file, the software makes a choice: keep every single bit of the original, or throw some away to shrink the size. That’s it. That is the entire difference between lossless and lossy compression, and getting a handle on it will change how you work with files forever. Lossless compression is a clever accounting trick. It finds patterns and describes them instead of writing them out longhand. Imagine a PNG image with a 200-pixel-wide strip of solid blue sky. Instead of saving 'blue, blue, blue...' 200 times, the algorithm just says '200 blue pixels.' When you open the file, every single pixel is perfectly restored. The file gets smaller, but nothing is lost. ZIP archives do the exact same thing; every byte of your original document survives the round trip, guaranteed. Lossy compression is more like a triage surgeon. It analyzes what your eyes and ears are least likely to miss and cuts it out—permanently. A JPEG encoder, for example, looks at 8×8 pixel blocks and throws away subtle details in low-contrast areas. An MP3 encoder uses psychoacoustic modeling to remove audio frequencies that get drowned out by louder sounds happening at the same time. The resulting file can be 10 or even 20 times smaller than the original, but that discarded data is gone for good. You can’t get it back. So which one is better? Neither. The right choice depends entirely on the context—what you're doing with the file and how many times you plan to save or re-export it.

How JPEG Compression Actually Damages an Image (And How Much)

Ah, the JPEG quality slider. It’s the control for the most common lossy format, and almost certainly the most misunderstood. That 0-to-100 scale you see in most apps isn't linear; a small drop at the high end can have a massive impact on file size. At quality 95, a JPEG looks nearly perfect to the human eye but might be 800 KB. Drop that to quality 80—which Adobe Photoshop calls 'High'—and the file could plummet to 200 KB with artifacts you'd really have to hunt for. The damage becomes obvious around quality 60, where you'll see blocky patterns in gradients and weird halos around sharp edges. Below quality 40, the image just looks bad to most people. The real killer is generational loss. This is where people get into trouble. If you open a quality-80 JPEG and re-save it as another quality-80 JPEG, you're not starting from the original; you are compressing an already-compressed image. Each save cycle bakes in new artifacts on top of the old ones. After five or six rounds of this, even a quality-90 setting produces a visibly degraded image. This is exactly why professional photographers work in RAW or TIFF and only export to JPEG once, as the absolute final step. You can see this happen live in Photoshop under File > Export > Export As; just drag the quality slider and watch the preview update. Lightroom's export dialog even gives you a file size estimate. In CocoConvert's JPEG converter, you can set a specific quality value from 1 to 95 for predictable results. Just remember, no converter can magically restore detail that a previous save already threw away. That data is gone.

Lossless Formats: PNG, FLAC, and WebP-Lossless Compared

Not all lossless formats are the same. They have different strengths, excel with different kinds of content, and vary in how well software supports them. PNG is the undisputed king of graphics with large areas of flat color, sharp edges, and text—logos, screenshots, and diagrams are its sweet spot. It uses a filtering process and DEFLATE compression to shrink a 3 MB BMP screenshot down to 400 KB with zero loss. Plus, it supports a full alpha channel for transparency, which is why it's a web staple. Its main weakness? Photographs. A high-resolution photo is full of complex detail, leaving very little redundant data for PNG to compress efficiently. An 8 MB TIFF might only shrink to 6 MB as a PNG. For audio, FLAC (Free Lossless Audio Codec) is the go-to. It reliably cuts original WAV file sizes by 40-50% while preserving every single audio sample. A 40 MB WAV file of a piano piece can become a 22 MB FLAC. Audiophiles and high-quality streaming services use it for their master archives. The main catch is compatibility. Your older car stereo or that smart speaker in the kitchen probably only speaks MP3 or AAC. Then there's the newer kid on the block, lossless WebP. It often beats PNG at its own game, compressing the same types of images 25% to 35% smaller than PNG can. That 400 KB PNG logo could become a 280 KB lossless WebP. Browser support for WebP is now universal, though some desktop image editors are still catching up. CocoConvert supports converting PNG to lossless WebP and back, a huge help for web performance optimization. A point of honesty: CocoConvert does not currently support FLAC output. For lossless audio conversion, you'll want a dedicated tool like Audacity or fre:ac.

Where Lossy Compression Is the Right Call

Once people learn about compression, they often get a bit zealous and insist that lossless is the only 'responsible' choice. That's just plain wrong. For a huge range of applications, using lossy compression isn't just acceptable; it's the correct engineering decision. Web delivery is the clearest example. Nobody needs a lossless product photograph on an e-commerce site. Your visitor is viewing it on a standard screen, maybe over a shaky mobile connection. Serving them a 4 MB lossless WebP instead of a 120 KB JPEG at quality 82 makes the page load 30 times slower for zero perceptible benefit. Google's PageSpeed Insights will rightly flag that huge image as a performance problem. It's the same story for streaming audio. Spotify streams at 320 kbps OGG Vorbis for its premium users. That's a lossy format. And you know what? In a blind A/B test, even on good headphones, the average listener cannot tell the difference between that and a lossless source. The bandwidth and storage savings at that scale are astronomical. Video is almost always lossy. Codecs like H.264 and H.265 (HEVC) are the lossy engines behind everything from YouTube to Blu-ray discs. A two-hour 4K film, uncompressed, would require a staggering 6 TB of storage. H.265 gets that same film down to a manageable 25 to 50 GB at perfectly acceptable quality. Lossless video codecs like Apple ProRes 4444 XQ exist, but they are strictly for professional post-production work, not for distribution. The practical rule is simple: use lossless when a file needs to be edited again or archived. Use lossy for the final version that gets delivered to an end user, as long as the quality is sufficient for how they'll experience it.

The Myth of 'Converting Back' to Lossless

Let's clear up one of the most pervasive myths in file conversion. We get this question constantly at CocoConvert, and it deserves a direct answer. If you convert a JPEG photograph to a PNG, you do get a lossless file. But you do not get a higher-quality image. The PNG simply contains the exact same pixel data as the JPEG, complete with all its compression artifacts. The file is bigger because PNG is storing the degraded data without adding more compression, but the image quality is identical to the JPEG you started with. You can't un-bake the cake; nothing has been restored. The same is true for audio. Converting an MP3 to FLAC results in a much larger file that sounds identical to the MP3. It's a lossless container holding lossy data. The audio frequencies that the MP3 encoder removed are gone forever; they don't magically reappear just because you changed the file extension. Now, AI-based upscaling tools like Topaz Gigapixel or Adobe's Super Resolution can synthesize plausible-looking detail, but this is not restoration. It is an educated guess. The AI generates new pixels based on patterns it learned from millions of other images, it doesn't recover your original pixels. The results can look amazing, but it's a fundamentally new, generated image, not your old one brought back to life. CocoConvert's tools don't apply any AI upscaling or enhancement. When you convert a JPEG to PNG on our platform, you get a lossless file containing the exact pixel data from your source JPEG. We think it's crucial to be transparent about what a converter can and can't do.

Practical Settings for Common Conversion Tasks

Theory is great, but what settings should you actually use? Here are some concrete recommendations for the most common compression decisions. For web images, a JPEG at 80-85 quality is a solid default for photographs. If the image has sharp text or needs a transparent background, JPEG is out—it mangles text and can't do transparency. Use lossless WebP or PNG instead. If you need the absolute smallest file for a photo and can count on modern browsers, lossy WebP at quality 80 will typically beat an equivalent JPEG by 25-35% on file size. For print work, this is a hard rule: never deliver JPEGs to a professional printer. Anyone who has fought a misbehaving PDF export knows this pain. Use TIFF (LZW-compressed is fine) or a PDF with high-resolution images embedded. A JPEG that looks flawless on screen can reveal ugly compression artifacts when printed at 300 DPI on a large format. For archiving photographs, always keep the original RAW file from your camera if you have it. That's your digital negative. If you must convert to a standard format for archiving, use TIFF or PNG. Do not archive photos as JPEGs. Even at quality 100, JPEG is still technically lossy due to its transform and quantization steps. For audio mastering and archiving, WAV or AIFF are the industry standards. FLAC is perfectly acceptable if storage space is a major concern. For client delivery, always provide the format they ask for; if they don't specify, a 24-bit/48 kHz WAV is a safe, professional default. On CocoConvert, you can set JPEG quality right in the options panel. For PNG output, there's no setting to worry about—it's always lossless. For WebP, you can toggle between lossy and lossless modes in the same panel, which is perfect for experimenting to find the right balance for your image.

Choosing the Right Format Is a Workflow Decision, Not a Technical One

After all this technical detail, it becomes clear that the lossy versus lossless question isn't really about which format is 'best.' It’s about workflow. The right format depends on where your file is in its lifecycle and what you plan to do with it next. A file that's a work-in-progress must be lossless. Editing and re-saving a lossy file is like making a photocopy of a photocopy—each generation gets worse. Use lossless formats like TIFF, PNG, or PSD as your working format, and only compress to a lossy format for the final export. When a file is being delivered to an end user—on a website, in an email, or on a streaming platform—it should be sized for the context. A 10 MB lossless PNG on a blog post isn't a commitment to quality; it's a performance mistake. The user won't see the benefit of the extra data, but they will absolutely feel the slow load time. A file being archived for the long term should be lossless and, crucially, in an open format. A proprietary lossless format could become a digital paperweight if the company behind it disappears. Stick with open standards like PNG, TIFF, FLAC, and WAV for broad, long-term support. File conversion tools like CocoConvert are the bridges between these workflow stages. They're for turning a finished TIFF into a web-ready JPEG, converting a master WAV into an MP3 for a podcast, or batch-converting PNGs to lossless WebP for a performance boost. What no converter can do is create quality out of thin air. The best it can offer is an accurate, well-configured transformation of the data you already have. Understanding compression means realizing that quality is set at the moment of creation. Every step after that either preserves it or degrades it. Your choice of format is simply how you control that process.