What uncompressing a file means and why you need to do it
An uncompressed file (also called extracting or decompressing) takes a squeezed-down folder or file and restores it to its original size and usable form. When someone sends you a .zip, .rar, .7z, or .tar.gz file, that's a compressed container — you can't open the files inside until you extract them first.
Your computer can't run a program, open a document, or play media from inside a compressed file. You have to extract it to a regular folder first. The good news: this takes seconds and uses tools that come built into most operating systems, or free software you can download in under a minute.
Key Takeaways
- Windows and Mac both have built-in tools to extract .zip files — right-click the file and select "Extract All" (Windows) or "Archive Utility" (Mac).
- Linux users can extract most compressed files from the file manager or by typing a command like unzip filename.zip in the terminal.
- For file types other than .zip — like .rar, .7z, or .tar.gz — you may need to download free software such as 7-Zip, WinRAR, or The Unarchiver.
- Always extract to a folder you can find later, like your Downloads or Desktop, so you know where the files ended up.
- If extraction fails or asks for a password, the file may be corrupted or intentionally locked — contact whoever sent it to you.
Extracting a .zip file on Windows
Windows 10 and 11 have built-in support for .zip files. Find the .zip file on your computer (usually in Downloads), right-click it, and look for "Extract All" in the menu that appears. Click it.
A window will open asking where you want the files to go. The default location is usually fine — it creates a new folder in the same place as the .zip file. Click "Extract" and wait a few seconds. When it finishes, you'll see a new folder with the same name as the .zip file (minus the .zip part). Open that folder and your files are ready to use.
If you don't see "Extract All" in the right-click menu, your .zip file may be corrupted. Try downloading it again, or ask the person who sent it whether they can resend it.
Extracting a .zip file on Mac
Mac's built-in Archive Utility handles .zip files automatically in most cases. When you download a .zip file, your Mac often extracts it right away — you may already see the uncompressed folder sitting next to the .zip file in your Downloads.
If that didn't happen, double-click the .zip file. Archive Utility will open and extract it within a few seconds. The new folder appears in the same location as the .zip file. If nothing happens when you double-click, right-click the .zip file, select "Open With," and choose "Archive Utility."
Extracting files on Linux
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." Choose where you want the files to go and click the button. The extraction happens in seconds.
If you prefer the terminal, open it and navigate to the folder containing your compressed file. For .zip files, type unzip filename.zip and press Enter. For .tar.gz files, type tar -xzf filename.tar.gz. For .7z files, type 7z x filename.7z. The files extract into the current folder.
Handling .rar, .7z, and other compressed formats
Windows and Mac don't have built-in support for .rar or .7z files. You'll need to download free software first. On Windows, 7-Zip (7-zip.org) handles .7z, .rar, .zip, and many other formats. On Mac, The Unarchiver (from the App Store or unarchiverapp.com) works with almost every compressed format.
Download and install the software, then right-click your compressed file. You should see a new option like "Extract with 7-Zip" or "Open with The Unarchiver." Click it and choose where to extract. The software does the rest.
For .tar.gz files on Windows, 7-Zip also works. On Mac, The Unarchiver handles them. On Linux, the terminal command tar -xzf filename.tar.gz extracts them without needing extra software.
What to do if extraction fails or asks for a password
If you see an error message when trying to extract, the file may be corrupted — especially if it was interrupted while downloading. Try downloading it again from the source. Make sure you have enough free space on your hard drive; if your drive is nearly full, extraction may fail.
If the extraction tool asks for a password and you weren't given one, the file is intentionally locked. Contact whoever sent it and ask for the password. If they say there isn't one, the file may be damaged and they should resend it.
Where your extracted files end up
By default, extracted files go into a new folder in the same location as the compressed file. If you extracted from Downloads, look in Downloads for a new folder with a similar name. Open that folder and you'll find all the files that were inside the compressed archive.
You can move this folder anywhere you want after extraction — to your Desktop, Documents, or a project folder. The extracted files are now regular files and folders, no different from anything else on your computer. You can edit them, move them, delete them, or organize them however you need.
Frequently Asked Questions
Can I open files directly from inside a compressed folder without extracting?
On Windows and Mac, you can sometimes open files directly from a .zip without extracting, but it's slower and can cause problems if you try to save changes. It's better to extract first. On Linux, you usually can't access files inside a compressed archive without extracting.
What's the difference between .zip, .rar, .7z, and .tar.gz?
.zip is the most common and works on all operating systems. .rar and .7z compress files more tightly but need extra software. .tar.gz is common on Linux and servers. For most everyday use, .zip is what you'll encounter, and your operating system handles it automatically.
Do I need to keep the original compressed file after extracting?
No. Once you've extracted the files, you can delete the .zip, .rar, or .7z file if you want to save space. Keep it only if you think you might need to extract it again later or if you want a backup copy of the original compressed version.
Why is my extracted folder so large if the compressed file was small?
Compression squeezes files down to save space during transfer or storage. When you extract, the files return to their original size. A 50 MB .zip might contain 200 MB of files. This is normal and expected.
Can I extract part of a compressed file, or do I have to extract everything?
Most extraction tools let you choose which files to extract. Right-click the compressed file, open it with your extraction software, select the files you want, and extract only those. This saves time and space if the archive contains many files you don't need.