What decompressing a file means and why you need to do it

Decompressing (also called extracting or unzipping) turns a compressed file back into its original form so you can use it. When someone sends you a .zip, .rar, .7z, or .tar.gz file, the contents are squeezed down to take up less space and transfer faster. Your computer cannot read the files inside until you decompress them first.

The process is straightforward: you tell your operating system to open the compressed file, and it unpacks everything inside to a folder you choose. Most of the time this takes seconds. After decompression, you will have access to the original documents, images, programs, or folders that were compressed.

Key Takeaways

  • Windows and Mac both have built-in decompression tools for .zip files — right-click the file and select extract or uncompress.
  • Linux users can decompress files from the file manager or by typing a command in the terminal, depending on the file type.
  • For file types other than .zip (like .rar or .7z), you may need to download a third-party program first.
  • Always decompress to a folder where you have write permission, usually your Downloads or Documents folder.
  • Check what is inside a compressed file before decompressing if you are unsure what it contains.

How to decompress a file on Windows

Windows 10 and Windows 11 both have a built-in tool for .zip files. Find the compressed file on your computer, right-click it, and look for an option that says "Extract All" or "Extract Here". Click it, and Windows will ask you where to save the decompressed files. Choose a folder (your Downloads folder works fine), and Windows will create a new folder with the contents inside.

If you do not see an extract option when you right-click, your file might be a different type (.rar, .7z, or .tar.gz). Windows does not handle these formats without extra software. Download 7-Zip (free, from 7-zip.org) or WinRAR, install it, then right-click the file again. You should now see an extract option.

After decompression finishes, open the new folder that was created. The files inside are now ready to use — you can move them, open them, or delete the compressed file if you no longer need it.

How to decompress a file on Mac

Mac automatically decompresses .zip files. When you download a .zip file or receive one in email, your Mac often unpacks it without you doing anything. Look in the same folder where the .zip file is — you should see a new folder or file with the same name but without the .zip extension.

If the file did not decompress automatically, double-click the .zip file. Mac will unpack it immediately and place the contents in the same folder. You can then move the decompressed files wherever you need them.

For other file types like .rar or .7z, Mac does not have built-in support. Download The Unarchiver (free from the Mac App Store) or Keka, install it, then double-click the compressed file. The program will handle the decompression for you.

How to decompress a file on Linux

Linux handles many compressed file types, and you have two main routes: using your file manager or typing a command in the terminal. Most Linux file managers (like Nautilus on Ubuntu or Dolphin on Fedora) let you right-click a compressed file and select "Extract" or "Extract Here". The decompressed files appear in the same folder.

If you prefer the terminal, the command depends on the file type. For .zip files, type unzip filename.zip. For .tar.gz files, type tar -xzf filename.tar.gz. For .rar files, you may need to install the unrar package first (your package manager can do this), then type unrar x filename.rar. After you press Enter, the files decompress to your current directory.

What to do if decompression fails or seems stuck

If a file will not decompress, the most common cause is that the file is corrupted or incomplete. If you downloaded it, try downloading it again. If someone sent it to you, ask them to resend it.

Another reason decompression might fail is that you do not have write permission in the folder where you are trying to extract. Move the compressed file to your Downloads or Documents folder (where you always have permission) and try again.

If the decompression window appears to be frozen or stuck, wait a few minutes — large files can take time. If nothing happens after five minutes, close the window and try a different decompression tool. Sometimes one tool can handle a corrupted file better than another.

How to check what is inside a compressed file before decompressing

You do not have to decompress a file to see what is inside. On Windows, right-click the .zip file and select "Open" or "Open with File Explorer". On Mac, double-click the .zip file but do not extract it — just look at the contents in the preview window. On Linux, right-click and select "Open With" and choose your file manager.

This is useful when you receive a compressed file from someone you do not know well, or when you want to make sure the file contains what you expect before you decompress it and clutter your folder. Once you have looked inside and confirmed what you want, you can then decompress normally.

Cleaning up after decompression

After you decompress a file and confirm that all the contents are there and working, you can delete the original compressed file. It takes up space and you no longer need it — you now have the decompressed version to work with.

If the decompressed folder contains many files you do not need, you can delete those too. Keep only what you actually use. This keeps your computer organized and frees up storage space.

Frequently Asked Questions

Can I decompress a file without installing any software?

On Windows and Mac, yes — both have built-in tools for .zip files. On Linux, most distributions include decompression tools by default. For other file types like .rar or .7z, you will need to download a program first.

What happens to the original compressed file after I decompress it?

Nothing happens automatically. The compressed file stays where it is. You can delete it once you have confirmed the decompressed files are complete and working, but you do not have to.

Why is my decompressed file the same size as the compressed one?

Some files do not compress well — images, videos, and already-compressed files (like .mp4 or .jpg) often stay nearly the same size even when zipped. Text files and documents compress much more noticeably.

Can I decompress a file directly to a USB drive or external hard drive?

Yes, as long as the drive has enough free space and your computer can write to it. Choose the external drive as your destination folder when you decompress, just as you would choose any other folder.

What if the decompressed folder has a lot of files and I only need one?

You can delete the rest. Decompress the whole folder first, then go through and remove the files you do not need. Some decompression tools let you select individual files before extracting, which saves space if the folder is very large.