How to Zip and Unzip Files on Windows
Compress files into a ZIP archive and extract one on Windows 11 or 10 using File Explorer, with no extra software, plus the built-in tar command.
You need to send several files as one attachment, or you have received a .zip file and need what is inside. File Explorer handles both without any extra program.
Select the files to compress
Open File Explorer and go to the folder holding the files. Click the first one, then hold Ctrl and click the others, or press Ctrl + A to select everything. You can also select a single folder to zip its entire contents.
Create the ZIP file
Right-click the selection and choose Compress to ZIP file. A new .zip file appears in the same folder with its name ready to edit; type a name and press Enter. On Windows 10 the option is under Send to, Compressed (zipped) folder.
On the newest Windows 11 builds the option sits inside a Compress to submenu alongside 7z and TAR formats. ZIP is the one to use when the recipient may be on a Mac or an older PC.
Add more files to an existing ZIP
Drag files from another File Explorer window and drop them onto the .zip file, or double-click the .zip to open it and drag files into the window. Windows copies them in; the originals stay where they were.
Unzip an archive
Right-click the .zip file and choose Extract All. A dialog shows the destination folder, which defaults to a new folder with the same name next to the archive. Change it if you want, leave Show extracted files when complete ticked, and click Extract.
To pull out a single file instead, double-click the .zip to browse it and drag the file you need to the desktop or another folder.
If you prefer the command line. Windows 10 and 11 include the tar command. Open Command Prompt in the folder and run:
tar -a -c -f archive.zip folder
The -a flag picks the format from the .zip extension. To extract:
tar -xf archive.zip
Files land in the current folder.
See also
More Windows how-tos
- How to Boot into Safe Mode on Windows 11
- How to Change DNS Servers on Windows
- How to Change the Default Browser on Windows 11
- How to Check If a Port Is in Use on Windows
- How to Check Which Windows Version You Have
- How to Check Your PC Specs on Windows
- How to Enable Clipboard History on Windows
- How to Find Your IP Address on Windows
- How to Flush DNS on Windows
- How to Force Quit a Program on Windows
- How to Free Up Disk Space on Windows 11
- How to Map a Network Drive on Windows
- How to Open Command Prompt as Administrator
- How to Rename Multiple Files at Once on Windows
- How to Show File Extensions in Windows 11
- How to Take a Screenshot on Windows
- How to Turn Off Startup Programs on Windows 11
- How to Turn On Dark Mode on Windows 11
- How to Uninstall a Program on Windows 11