The three ways to make a file smaller

A file gets smaller when you remove data from it. You have three choices: compress it without losing anything, compress it and accept some loss, or convert it to a format that stores the same information in fewer bytes.

Which one works depends on what the file is. A Word document and a photograph need different approaches. A video needs a third. The trade-off is always the same: smaller file size versus how much detail or quality you keep.

Key Takeaways

  • Lossless compression (ZIP, 7-Zip, RAR) shrinks files without throwing away data, but usually reduces size by only 10 to 50 percent depending on what's inside.
  • Lossy compression (JPEG instead of PNG, MP3 instead of WAV) removes detail you may not notice, cutting file size much more dramatically, but you cannot undo it.
  • Converting a file to a different format — like HEIC instead of JPEG for photos, or H.265 instead of H.264 for video — often shrinks it without any quality loss you can see.
  • Text files, spreadsheets, and PDFs compress well with ZIP; photos and video compress better by changing format or using lossy settings.
  • Always keep the original file before you compress with loss, because you cannot recover the removed data later.

Lossless compression: ZIP, 7-Zip, and RAR

Lossless compression reads the file and stores it in a more efficient way, but keeps every piece of data. When you decompress it, you get back exactly what you started with. This is what happens when you create a ZIP file.

How much smaller the file gets depends on what's in it. A folder of text documents might shrink by 50 percent. A folder of photos might shrink by only 5 to 10 percent, because photos are already compressed inside the JPG or PNG format. A folder of video files will barely shrink at all.

The three most common lossless formats are ZIP (built into Windows and Mac), 7-Zip (open source, often compresses better than ZIP), and RAR (proprietary, common for older archives). For most people, ZIP is enough. If you need to send a very large folder and want the smallest possible result, try 7-Zip — it usually beats ZIP by 10 to 20 percent, though it takes longer to compress.

Lossy compression: accepting quality loss for much smaller files

Lossy compression throws away data that you probably will not notice. A JPEG photo removes detail in colors and fine lines. An MP3 audio file removes frequencies your ear cannot hear. The file becomes much smaller, but you cannot get the removed data back.

This matters most for photos and audio. A PNG photo might be 5 MB. The same photo as a JPEG at medium quality might be 500 KB — ten times smaller. An uncompressed WAV audio file might be 50 MB. The same recording as an MP3 at 192 kilobits per second might be 5 MB. The loss is real, but most people cannot hear or see it at those settings.

The risk is compressing something twice. If you save a JPEG as a JPEG again, or an MP3 as an MP3 again, you lose quality both times. Always keep the original file — the PNG or the WAV — before you create the lossy version. That way, if you need a different quality level later, you start from the original, not from the already-compressed copy.

Format conversion: choosing a more efficient format

Sometimes a newer format does the same job in less space. HEIC (High Efficiency Image Container) stores photos in about half the space of JPEG with no visible quality loss. H.265 video codec compresses video to about half the size of H.264 with the same quality. WebP images are smaller than JPEG or PNG.

The catch is compatibility. Not every device or program opens HEIC or WebP. Windows still struggles with HEIC. Older phones do not support it. Before you convert everything to a newer format, check whether the people or devices that need to open the files can actually do it.

Format conversion is worth doing if you control the whole chain — if you are storing files for yourself, or sending them to people you know have compatible devices. It is less worth doing if you are sharing with people on older systems or if the file might need to open on many different devices.

Reducing photo file size

Photos are usually the biggest files in a folder. You have four levers: change the format, lower the quality setting, reduce the dimensions, or do all three.

If you are storing photos for yourself, convert to HEIC (on Apple devices) or WebP (on Android or Windows). If you are sharing with others, use JPEG and set the quality to 80 or 85 — most people cannot see the difference from 100, and the file shrinks by 30 to 50 percent. If the photo is larger than you need — if it is 4000 pixels wide but you only display it at 1000 pixels — crop or resize it down. A photo that is half the width and half the height is one quarter the file size.

Batch processing tools like ImageMagick (command line), XnConvert (graphical), or even Photoshop can resize and convert hundreds of photos at once. If you have a folder of 200 vacation photos, this is much faster than doing them one by one.

Reducing video file size

Video files are the largest files most people deal with. A one-hour video at standard quality is usually 1 to 3 GB. Reducing that size means changing the codec, the resolution, or the bitrate — or all three.

The codec is the format: H.264 is the standard, H.265 is newer and compresses better, and VP9 is an open alternative. If your video player and the devices you are sharing to support H.265, use it — you get the same quality at about half the file size. If you need maximum compatibility, stick with H.264.

Resolution is how many pixels wide and tall the video is. A 4K video (3840 × 2160) is four times the file size of a 1080p video (1920 × 1080) of the same length. If you are sharing on social media or watching on a phone, 1080p is enough. If you are archiving or editing, keep the original.

Bitrate is how much data per second the video uses. A bitrate of 5000 kilobits per second looks good on most screens. 2500 looks acceptable on phones. Below 1500, most people notice pixelation. Tools like HandBrake (free, graphical) let you set all three at once and see the estimated file size before you compress.

Reducing document and spreadsheet file size

Word documents, Excel spreadsheets, and PDFs are usually small enough that compression matters less, but you can still shrink them. A Word document with embedded high-resolution images might be 20 MB. Removing or replacing those images with lower-resolution versions can cut it to 2 MB.

For PDFs, the compression happened when the PDF was created. If you have the original Word or design file, recreate the PDF with lower image quality. If you only have the PDF, tools like Ghostscript or online PDF compressors can reduce file size by removing metadata and recompressing images, though the quality loss is usually small.

For spreadsheets, delete unused sheets and remove formatting that is not visible — hidden rows, unused columns, or cell formatting that does not display. These do not shrink the file much, but they clean it up. The real size reduction comes from removing embedded images or charts.

Frequently Asked Questions

Will compressing a file damage it?

Lossless compression (ZIP, 7-Zip) will not damage anything — you get back exactly what you put in. Lossy compression (JPEG, MP3) removes data permanently, but if you start with a high-quality original and use moderate settings, the loss is invisible. Always keep the original file before you compress with loss.

How do I know if a file is already compressed?

Photos, videos, and audio are almost always already compressed in their format (JPEG, MP4, MP3). Compressing them again with ZIP will not make them much smaller. Text files, spreadsheets, and uncompressed documents compress well. If you ZIP a folder and it shrinks by less than 10 percent, the files inside were probably already compressed.

What is the difference between ZIP and 7-Zip?

Both are lossless — you get back exactly what you put in. ZIP is built into Windows and Mac, so it opens anywhere. 7-Zip usually compresses better (10 to 20 percent smaller) but takes longer and requires software to open on some devices. For sending files to others, ZIP is safer. For archiving your own files, 7-Zip saves space.

Can I compress a file that is already a ZIP?

You can, but it will not get much smaller. A ZIP file is already compressed, so zipping it again removes almost no additional data. If you have a ZIP that is too large, the real solution is to use a better compression format (7-Zip) or to remove files from it, not to compress it again.

Should I convert all my photos to HEIC to save space?

HEIC saves about 50 percent space with no visible quality loss, but not all devices open it — Windows and older phones struggle. Convert to HEIC if you only use Apple devices. If you share photos with others or use Windows, stick with JPEG. You can always convert later if you change devices.