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 click "Compressed (zipped) folder." Windows creates a new .zip file in the same location with the original folder's name plus ".zip" at the end. The process takes a few seconds for small folders and longer for folders with thousands of files.

On Mac, right-click the folder, select "Compress [folder name]," and the system creates a .zip file on your desktop or in the same directory. The compressed file appears within seconds for typical folder sizes.

On Linux, the method depends on your desktop environment. In most file managers (like Nautilus on Ubuntu or Dolphin on Fedora), right-click the folder and look for "Compress" or "Create Archive." If that option does not appear, you can open a terminal, navigate to the folder's parent directory, and type zip -r foldername.zip foldername to compress it from the command line.

Key Takeaways

  • Windows users right-click a folder, choose "Send to," then "Compressed (zipped) folder" to create a .zip file when ready.
  • Mac users right-click a folder and select "Compress [folder name]" to generate a .zip file in seconds.
  • Linux users can right-click in their file manager and choose "Compress" or use the terminal command zip -r foldername.zip foldername.
  • Compressed folders preserve the original folder structure and all files inside, so nothing is lost when you compress.
  • The compressed file is smaller than the original folder, making it easier to email, upload, or store on limited space.

What happens to files inside a compressed folder

When you compress a folder, every file and subfolder inside stays intact. The .zip format straightforward reduces the total size by removing redundant data — it does not delete or alter the original files. If your folder contains 50 documents, 10 images, and 5 subfolders, all 65 items remain in the compressed version, just taking up less disk space.

The compression ratio varies by file type. Text files, spreadsheets, and documents compress heavily because they contain a lot of repeated information. Images and videos compress much less because they are already optimized for storage. A folder with mostly Word documents might shrink to 30 percent of its original size, while a folder with mostly photos might shrink to only 90 percent.

How to compress a folder on Windows step by step

Open File Explorer and locate the folder you want to compress. Right-click directly on the folder name — not on a file inside it. A menu appears with several options.

Look for "Send to" in the menu. Hover over it, and a submenu opens showing "Compressed (zipped) folder" as one of the choices. Click that option. Windows when ready creates a new .zip file in the same location as your original folder. The new file has the same name as the original folder with ".zip" added to the end.

If you want to rename the compressed file, right-click it, select "Rename," and type a new name. You can now move, email, or upload the .zip file while leaving the original folder untouched.

How to compress a folder on Mac step by step

Open Finder and navigate to the folder you want to compress. Right-click the folder itself. A context menu appears with various options.

Select "Compress [folder name]" — the option shows the actual name of your folder. Mac creates a .zip file with the same name as the original folder, placing it in the same location. The process usually completes within a few seconds, even for large folders.

If you want the compressed file in a different location, you can move it after creation. Drag the .zip file to your desired folder, or use the standard cut-and-paste method. The original folder remains unchanged.

How to compress a folder on Linux using the file manager

Open your file manager — Nautilus, Dolphin, Thunar, or whatever your desktop environment uses. Navigate to the folder you want to compress and right-click it.

Look for an option labeled "Compress," "Create Archive," or "Compress Folder." The exact wording depends on your file manager. Click that option, and a dialog may appear asking what format you want (usually .zip, .tar.gz, or .7z). Select .zip for the widest compatibility with other systems. The file manager creates the compressed file in the same directory as the original folder.

If your file manager does not show a compress option, you can use the terminal instead. Open a terminal window, type cd /path/to/parent/directory to navigate to the folder containing the one you want to compress, then type zip -r foldername.zip foldername and press Enter. Replace "foldername" with the actual name of your folder.

Compressed folders versus other archive formats

.zip is the most common format because it works on Windows, Mac, and Linux without extra software. When you compress a folder on any major operating system, .zip is the default choice.

Other formats exist for specific purposes. .tar.gz (also called .tgz) is common on Linux and Mac for preserving file permissions and ownership. .7z offers better compression than .zip but requires special software to open on Windows. .rar is used mainly for splitting large archives into smaller pieces, though it also requires additional software.

For most situations — sending files to others, backing up folders, or reducing storage space — .zip is the right choice. It opens without extra software on every major operating system, and the compression is sufficient for typical use.

How to extract a compressed folder after creating it

On Windows, right-click the .zip file and select "Extract All." A dialog appears asking where you want the files to go. Choose a location and click "Extract." Windows unpacks all the files and folders into that location.

On Mac, double-click the .zip file. The system automatically extracts it in the same location, creating a folder with the original name.

On Linux, right-click the .zip file in your file manager and select "Extract" or "Extract Here." The file manager unpacks the contents into a new folder. Alternatively, open a terminal, navigate to the folder containing the .zip file, and type unzip filename.zip.

After extraction, you have both the compressed .zip file and the uncompressed folder. You can delete the .zip file if you no longer need it, or keep it as a backup.

Frequently Asked Questions

Can I compress a folder that is already inside another folder?

Yes. The location of the folder does not matter. Right-click it and compress it using the same method you would use for any other folder. The compressed file appears in the same location as the original folder.

Does compressing a folder delete the original?

No. Compressing creates a new .zip file while leaving the original folder and all its contents exactly as they were. You have both the original folder and the compressed version until you manually delete one.

What if the compressed folder is too large to email?

Most email providers limit attachments to 20–25 MB. If your compressed folder exceeds that, use a file-sharing service like Google Drive, Dropbox, or OneDrive instead. Upload the .zip file there and share a link with the recipient.

Can I compress a folder that contains shortcuts or symbolic links?

Yes, but the behavior varies by operating system. Windows typically includes the shortcut itself, not the file it points to. Mac and Linux usually include the link as-is. If you need the actual files, copy them into the folder before compressing.

Does compression work on external drives or network folders?

Yes. You can compress folders on external hard drives, USB drives, and network locations using the same method. The compressed file appears in the same location as the original folder.