Back to Blog
    Guide
    7 min read
    Compressnfly Team
    Updated

    File Compression Explained: What Shrinks, What Doesn't, and Why

    Some files shrink by 90% when you compress them. Others won't budge by even 1%, no matter what tool you use. This guide explains why, using a set of real files we compressed ourselves, so you know what to expect before you start, and which method fits which file.

    The short answer

    • Plain data like text, CSV and spreadsheets shrinks a lot with lossless compression (ZIP).
    • Photos, videos, music and most modern documents are already compressed. Zipping them does almost nothing.
    • To shrink those, you need lossy compression: re-encoding the images inside at a smaller size or quality.

    Lossless vs lossy, in plain words

    Lossless compression finds repetition and writes it down more efficiently. If a spreadsheet has the word "Islamabad" 5,000 times, a lossless compressor stores it once and points back to it. When you unzip the file, you get back every byte exactly. ZIP, PNG and FLAC work this way.

    Lossy compression throws away information you're unlikely to notice: fine detail in a photo, frequencies in music you can barely hear. The file you get back is not identical, just close enough. JPG, MP3, MP4 and WebP work this way, and it's why they're so much smaller than the raw data.

    The key consequence: once a file has been compressed well, compressing it again achieves little.The repetition has already been squeezed out. That's why zipping a folder of photos is so disappointing.

    Our test: what actually shrinks

    We put seven files through Compressnfly. The CSV and the ZIP went through lossless compression. The documents and PDFs were tested with lossless clean-up and with lossy image re-compression.

    FileOriginalAfterSavedHow
    Sales data, CSV (30,000 rows)1.50 MB248 KB84%Lossless (ZIP)
    ZIP of 3 phone photos (no compression inside)11.64 MB11.61 MB0.2%Lossless (ZIP)
    Word document, text only49 KB48 KB3%Repacked
    Word document with 6 phone photos9.46 MB384 KB96%Photos inside re-compressed (Balanced)
    PDF, text only (19 pages)100 KB64 KB36%Lossless clean-up
    Scanned PDF (8 pages)9.49 MB9.48 MB0%Lossless clean-up
    Same scanned PDF9.49 MB804 KB92%Pages re-rendered (lossy)

    Three lessons jump out:

    1. Text-like data compresses beautifully. The CSV is full of repeated city names, product names and dates, so ZIP cut it by 84%.
    2. Photos inside a ZIP don't shrink. JPGs are already compressed, so the ZIP saved 0.2%. A ZIP is a handy way to bundle files, not to shrink photos.
    3. Documents are big because of the pictures in them. The text-only Word file was 49 KB and barely changed. The one with photos dropped from 9.46 MB to 384 KB once the photos inside were re-compressed, and the text was untouched.

    Why a .docx barely zips

    Here's something most people don't know: a modern Word file (.docx), Excel file (.xlsx) or PowerPoint file (.pptx) is already a ZIP archive. Rename one to .zip and you can open it and see the folders inside, including a media folder holding every picture you inserted. That's why zipping a .docx gains almost nothing, and why the only real way to shrink one is to shrink those pictures.

    That's exactly what Compressnfly does with Office files. It opens the archive, re-compresses the images in the media folder, and repacks everything. Your text, formatting and layout stay as they were. In our test, the settings made a big difference:

    • High Quality: 9.46 MB → 2.45 MB (photos still large and sharp)
    • Balanced: 9.46 MB → 384 KB (photos fine at page size)
    • Small Size: 9.46 MB → 159 KB (photos noticeably softer if you zoom in)

    If you'd rather fix it inside Word, see our guide to reducing Word document size.

    Which method for which file

    File typeAlready compressed?What works
    TXT, CSV, JSON, XML, logsNoZIP it: expect 60–90% smaller
    JPG, WebP, HEIC photosYes (lossy)Resize and re-compress: compress JPG
    PNG screenshots and graphicsYes (lossless)Compress PNG, or convert to JPG if it's a photo
    PDFDependsLossless clean-up for text PDFs; re-render pages for scans. See our PDF test
    DOCX, XLSX, PPTXYes (they're ZIPs)Re-compress the images inside
    MP4, MOV videoYes (lossy)Re-encode with a video tool such as HandBrake
    MP3, AAC audioYes (lossy)Lower the bitrate in an audio editor such as Audacity

    Video and audio need dedicated software. Compressnfly focuses on images, PDFs, documents and archives, which it can handle well inside a browser.

    Can compression damage a file?

    Lossless compression can't: you always get the exact original back. Lossy compression changes the file by design, so the rules are simple:

    • Keep the original. Compress a copy, especially before deleting anything.
    • Compress once, from the original. Re-compressing a compressed JPG stacks up the damage.
    • Check the result at the size it will actually be viewed, not zoomed to 400%.

    Where your files go

    Most online compressors upload your file to their server, process it there, and send it back. Compressnfly does the work inside your browser instead. The compression code is downloaded to your device, and your files never leave it. For contracts, ID scans and personal photos, that's the difference between trusting a company with your documents and not having to.

    FAQ

    Why did my file get only 1% smaller?

    It was almost certainly already compressed: a photo, a video, a ZIP, or a PDF made of scans compressed with a lossless method. Use a lossy option that resizes the images inside.

    Is ZIP or RAR better?

    For already-compressed files, neither helps much. For text and data, both work well and the differences are small. ZIP opens on every computer without extra software.

    What's the best format to send photos in?

    JPG, resized for the purpose. See the size-by-size results in our image compression test.