Windows 10 has a built-in file compression tool that you can use to compress the number of files and folders into one zip file. Windows uses a file compression algorithm to reduce the file size when compressing many files into one Zip file. This guide will walk you through how to Zip a File or Folder in Windows 10 without using any software.
How to Zip a File or Folder in Windows 10
Creating a zip file in Windows 10 is as easy as copy paste. Follow the steps below to create a Zip file.
- Go to the directory where files and folders are located.
- Select the Files or Folders you wish to compress into a Zip file.
- Right-click the selected Files or Folders, then select the send to > compressed (zipped) folder option.
- Now Windows will compress all the files and folders using the file compression algorithm into a zip file onto the same directory.
You can compress as many files or folders as you want; there is no limit. However, Windows may take some time to compress the files if the number of files is too much.
By default, the Zipped file name will be the same as the first file name among the files and folders you have selected; However, you can change the Zipped folder name. To change the folder name, right-click the folder and select rename option, then enter the new name and save.
Zip a File or Folder using Command Prompt
If you use the command prompt, you can also create a Zip archive using the command prompt. Windows 10 has a built-in Tar command-line tool that you can use to extract and create archives. Follow the steps to create a Zip file using the Tar command-line tool.
- Click the Start Menu button.
- Type “Command Prompt” in the Search Box.
- Open the command prompt from the search result.
- Type the following command, then hit the enter button to create a zip file.
command: tar -czvf filename.zip filename
filename.zip is the name of zip file, and filename is the location of the file.
Suppose you are in the same directory in the command prompt where files and folders are located that you want to archive into a zip file. In that case, you can pass the file or folder name instead of the full path of the file.
To unzip the zipped file, use the following command.
command: tar -xvf filename.zip
This command will extract the Zipped file in the same directory.
Create Tar.gz archive file
You can also create a tar.gz archive using tar command line tool.
Type the following command, then hit the enter button to create a tar.gz archive.
command: tar -czvf filename.tar.gz filename
This command will create a Tar.gz archive of the files and folders you’ve selected.
To extract the tar.gz file, we recommend to read the following guide: How to Unzip (Extract) Tar.gz File
How to create Password Protected Zip File
Windows 10 built-in file compression tool doesn’t offer the functionality to set the Zip file’s password. To create a password-protected zip file, you will need to rely on third-party software such as WinRAR, WinZip, or 7zip.
WinRAR, WinZip, and 7Zip are the popular file compression software available on Windows. You can use either WinRAR, WinZip, or 7Zip to create a password-protected Zip file.
Software like WinRAR and WinZip use a much better file compression algorithm than Windows built-in file compression algorithm to reduce the file size.
How to Unzip a Zip File or Folder
When you unzip the File or Folder, Windows decompresses all the files again. To unzip a zip file, right-click on the zipped file you want to unzip, then select the Extract All… option. Windows built-in file compression tool will decompress and extract all the files in the same directory.
If you want to extract some specific files from the Zipped file, then open the Zipped file (double-click the file to open it). Copy the files or folders you wish to move from the zipped file, then paste anywhere.
Windows built-in file compression tool only create a “.zip” file, you can’t create “.rar” file.
I hope this guide this guide is helpful for you. If you have any question, feel free to comment below.
You might like:
- How to Reset Forgotten Windows 10 password
- How to Factory Reset Windows 10
- How to Set GIF as Wallpaper on Windows 10 Desktop Background
- Get help in Windows 10