The fastest way to compress a folder depends on your operating system
On Windows, right-click the folder you want to compress, select "Send to," then choose "Compressed (zipped) folder." Windows creates a new .zip file in the same location with the same name plus ".zip" at the end. The original folder stays where it is.
On Mac, right-click the folder and select "Compress [folder name]." macOS creates a .zip file next to the original. You can also drag the folder onto the Archive Utility application if you prefer.
On Linux, the method depends on your desktop environment and file manager. Most file managers let you right-click and choose "Compress" or "Create Archive," then select a format like .zip or .tar.gz. If your file manager does not have this option, you can use the command line with tar or zip commands.
Key Takeaways
- Windows, Mac, and Linux all have built-in compression tools accessible through the file manager's right-click menu.
- A compressed folder is a single file that contains everything from the original folder, taking up less disk space.
- The original folder remains unchanged after compression; the .zip or .tar.gz file is a separate copy.
- You can compress a folder with files already inside it, or compress an empty folder and add files to it later by extracting, adding files, and re-compressing.
Step-by-step compression on Windows
Open File Explorer and locate the folder you want to compress. Right-click on it and look for "Send to" in the context menu. Hover over "Send to" to reveal a submenu, then click "Compressed (zipped) folder."
Windows creates a new .zip file with the same name as your folder, placed in the same directory. The process takes a few seconds to a few minutes depending on the folder size. You can rename the .zip file by right-clicking it and selecting "Rename."
If you do not see "Send to" in your right-click menu, your version of Windows may differ slightly. Try right-clicking and looking for "Compress" or "Archive" instead. Alternatively, you can use the built-in File Explorer ribbon: select the folder, go to the "Share" tab, and look for a compression option there.
Step-by-step compression on Mac
Open Finder and navigate to the folder you want to compress. Right-click the folder and select "Compress [folder name]" from the menu. macOS immediately creates a .zip file in the same location.
The .zip file appears next to the original folder with the same name plus ".zip" at the end. If you compress a folder named "Photos," the resulting file is "Photos.zip." The compression happens in the background and usually completes within seconds.
You can also drag a folder onto the Archive Utility application (located in Applications > Utilities) to compress it. This method works the same way and produces an identical .zip file.
Step-by-step compression on Linux
The exact steps depend on which file manager you use. In GNOME Files (the default on many Linux distributions), right-click the folder and look for "Compress" in the menu. Select it, choose your format (.zip, .tar.gz, or .tar.bz2), name the archive, and click "Create."
In Dolphin (the KDE file manager), right-click the folder and select "Compress." A dialog box appears where you can choose the format and filename before creating the archive.
If your file manager does not have a compress option, you can use the terminal. Open a terminal window, navigate to the directory containing the folder, and run zip -r archive-name.zip folder-name to create a .zip file, or tar -czf archive-name.tar.gz folder-name to create a compressed tar file. Replace "archive-name" and "folder-name" with your actual names.
What happens to the original folder after compression
The original folder and all its contents remain exactly as they were. Compression creates a new file that contains copies of everything inside the folder. You now have two versions: the original folder and the compressed .zip (or .tar.gz) file.
If you want to save disk space, you can delete the original folder after confirming the compressed file was created successfully. However, keep the original until you have tested that the compressed file opens and contains what you expect.
Choosing between .zip, .tar.gz, and other formats
.zip is the most widely supported format across Windows, Mac, and Linux. Almost any computer can open a .zip file without installing additional software. Use .zip if you plan to share the compressed folder with others or move it between different operating systems.
.tar.gz (also written as .tgz) is common on Linux and Mac. It often compresses better than .zip, meaning the file takes up less space. However, Windows does not open .tar.gz files natively without additional software. Use .tar.gz if you are working only on Linux or Mac and want maximum compression.
.tar.bz2 compresses even more than .tar.gz but takes longer to create and extract. It is less common and mainly used on Linux systems. Most users should stick with .zip or .tar.gz unless you have a specific reason to use .tar.bz2.
Compressing multiple folders at once
On Windows, select multiple folders by holding Ctrl and clicking each one. Right-click any selected folder and choose "Send to" > "Compressed (zipped) folder." Windows combines all selected folders into a single .zip file.
On Mac, hold Cmd and click each folder you want to compress. Right-click and select "Compress [number] items." macOS creates one .zip file containing all the selected folders.
On Linux, the method varies by file manager. In GNOME Files, select multiple folders using Ctrl+click, right-click, and choose "Compress." In Dolphin, do the same and select "Compress." If using the terminal, the command is zip -r archive-name.zip folder1 folder2 folder3, replacing the folder names with your actual ones.
Frequently Asked Questions
Can I add more files to a compressed folder after creating it?
Not directly. A .zip file is a sealed archive. To add files, you must extract the entire .zip file, add the new files to the extracted folder, then compress the folder again. Some advanced tools let you edit .zip files without full extraction, but the built-in tools on Windows, Mac, and Linux do not offer this.
How much smaller will my folder be after compression?
The reduction depends on what is inside. Text files, documents, and images compress significantly—often to 50% of their original size or smaller. Videos and photos that are already compressed compress very little, sometimes only 5% to 10% smaller. Executable files fall somewhere in between.
Will compressed files work the same way as the original folder?
No. A .zip file is an archive, not a folder. You must extract it first to access the files inside. Once extracted, the files work exactly as they did before. Some programs can read files directly from a .zip without extracting, but this is not the default behavior.
What if the compressed file is too large to email or upload?
You can split a large .zip file into smaller pieces using tools like 7-Zip (Windows and Linux) or The Unarchiver (Mac). Alternatively, use a file-sharing service like Google Drive, Dropbox, or OneDrive that handles large files. Another option is to compress the folder with a higher compression level or choose .tar.bz2 format, which compresses more aggressively than .zip.
Can I password-protect a compressed folder?
Yes, but the method depends on your operating system and tool. Windows built-in compression does not support passwords. On Mac, you can use third-party tools like The Unarchiver or BetterZip. On Linux, most file managers do not support password protection natively, but command-line tools like 7z do. For maximum compatibility, consider using 7-Zip on any operating system.