The fastest way to zip a single file or folder
On Windows, right-click the file or folder you want to compress, then select Send to and 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 file stays where it is.
On Mac, right-click (or Control-click) the file or folder, then select Compress from the menu. Mac creates a .zip file when ready in the same folder. Again, your original file remains untouched.
On Linux, the process depends on your file manager. In GNOME Files (the default on Ubuntu), right-click and look for Compress. In Dolphin (KDE), right-click and select Compress or Create Archive. If your file manager does not have a compress option, you will need to use the command line instead.
Key Takeaways
- Right-click a file or folder and select a compress or zip option — the exact wording differs by operating system, but the result is the same .zip file.
- The original file is never deleted; zipping creates a new compressed copy alongside it.
- A .zip file can hold a single file, multiple files, or an entire folder structure, and the recipient can open it on any major operating system.
- If your file manager has no compress option, you can use command-line tools like zip (Mac and Linux) or PowerShell (Windows) instead.
Using the command line on Mac and Linux
Open Terminal and navigate to the folder containing the file you want to zip. Type zip filename.zip originalfile.txt, replacing "filename.zip" with what you want to call the archive and "originalfile.txt" with the actual file name. Press Enter, and the .zip file appears in the same directory.
To zip an entire folder and everything inside it, use zip -r foldername.zip myfolder. The -r flag tells zip to include all subfolders and files recursively. This is faster than trying to select dozens of files by hand.
Using PowerShell on Windows
If the right-click method does not work or you prefer the command line, open PowerShell (search for it in the Start menu). Navigate to the folder where your file lives, then type this command: Compress-Archive -Path "filename.txt" -DestinationPath "filename.zip". Replace "filename.txt" with your actual file name and "filename.zip" with what you want the archive to be called.
To zip a folder, use the same command but point to the folder instead: Compress-Archive -Path "C:\Users\YourName\Documents\MyFolder" -DestinationPath "MyFolder.zip". PowerShell creates the .zip file in your current directory.
What happens when you zip a file
Zipping reduces file size by removing redundant data — the same way a sponge takes up less space when you squeeze it. The .zip file is a container that holds the original file in compressed form. When someone opens the .zip, they extract the original file back to its full size and original format.
The amount of space you save depends on the file type. Text files, spreadsheets, and documents often shrink by 50 to 80 percent. Image files (JPG, PNG) and video files (MP4, MOV) are already compressed, so zipping them saves little or no space. Executable programs (.exe, .app) usually shrink by 30 to 50 percent.
Zipping multiple files at once
On Windows, hold Ctrl and click each file you want to include, then right-click and select Send to > Compressed (zipped) folder. Windows puts all selected files into one .zip archive.
On Mac, hold Command and click each file, then right-click and select Compress. Mac combines them into a single .zip file named "Archive.zip".
On the command line, list the files you want: zip myfiles.zip file1.txt file2.txt file3.txt. Or use a wildcard to grab all files of one type: zip alldocs.zip *.txt zips every .txt file in the current folder.
Checking the contents of a .zip file without extracting
You do not have to extract a .zip file to see what is inside. On Windows and Mac, double-clicking a .zip file opens it in a preview window where you can browse the contents. On Windows, this is File Explorer; on Mac, it is Archive Utility or a similar tool.
On the command line, use unzip -l filename.zip (Mac and Linux) or Expand-Archive -Path "filename.zip" -List (PowerShell on Windows) to list the contents without extracting anything. This is useful if you want to confirm a file is in the archive before you extract it.
Sending a zipped file to someone else
Once you have created a .zip file, you can email it, upload it to a cloud service like Google Drive or Dropbox, or send it over a messaging app. The recipient can extract it on their own computer using the same right-click method or by double-clicking the .zip file.
Most email services accept .zip files without complaint, even if they would reject the individual files inside. A .zip containing ten large PDFs is often easier to send than ten separate emails. Just remember that the recipient needs to extract the .zip before they can use the files inside — they cannot open a Word document that is still inside a .zip archive.
Frequently Asked Questions
Does zipping a file make it smaller on my hard drive?
Yes, the .zip file takes up less space than the original. However, the original file still exists unless you delete it yourself. If you want to save space, delete the original after you confirm the .zip was created successfully and contains what you need.
Can I open a .zip file on any computer?
Yes. Windows, Mac, and Linux all have built-in tools to open .zip files. You do not need to read special software. Some older systems or specialized devices may need a third-party tool, but for standard computers, .zip is universal.
What if I zip a file and it gets corrupted during the process?
Corruption during zipping is rare, but if it happens, the .zip file will not open or will open with missing files. Always keep the original file until you have tested the .zip on another computer or confirmed you can extract it successfully.
Can I password-protect a .zip file?
On Windows and Mac, the built-in right-click method does not offer password protection. You would need third-party software like 7-Zip (free, Windows and Linux) or WinRAR (paid, Windows and Mac). On the command line, use zip -e filename.zip originalfile.txt (Mac and Linux) to create a password-protected archive.
What is the difference between .zip and other archive formats like .rar or .7z?
.zip is the most widely supported format and works on every major operating system without extra software. .rar and .7z compress files more efficiently but require special software to open. For sharing files with others, .zip is almost always the safest choice.