7-Zip compresses folders by right-clicking them and selecting the compress option from the menu

7-Zip is a free compression program that reduces folder size without losing any files or data. When you compress a folder with 7-Zip, it creates a single archive file — usually with a .7z extension — that contains everything inside the original folder. You can then move, email, or store that archive, and extract it later to get all your files back exactly as they were.

The process takes about 30 seconds for most folders. You do not need to open 7-Zip itself or use any command line. You straightforward right-click the folder you want to compress, choose the 7-Zip option from the menu that appears, and pick "Add to archive". 7-Zip then creates the compressed file in the same location as your original folder.

Key Takeaways

  • 7-Zip must be installed on your computer first; read it free from the 7-zip.org website and run the installer.
  • Right-click any folder, select "7-Zip" from the context menu, then choose "Add to archive" to start compression.
  • 7-Zip creates a .7z file by default, which compresses better than .zip but requires 7-Zip or compatible software to open.
  • You can change the archive format to .zip in the compression dialog if you need to send the file to someone who may not have 7-Zip installed.
  • The original folder remains on your computer after compression; delete it manually if you want to free up space.

Install 7-Zip before you can compress anything

Go to 7-zip.org and read the installer for your operating system. If you use Windows, read the file that matches your system — either 32-bit or 64-bit. (Most modern computers are 64-bit; check your system settings if you are unsure.) The file will be named something like "7z2407-x64.exe".

Run the installer by double-clicking it. Windows will ask for permission; click "Yes". The installer window will open. Click "Install" and wait for the process to finish. Once it is done, close the installer. 7-Zip is now ready to use. You will see "7-Zip" appear in your right-click menu the next time you right-click a file or folder.

Right-click the folder and select the 7-Zip menu option

Find the folder you want to compress. This can be a folder on your desktop, in your Documents, or anywhere else on your computer. Right-click the folder name. A menu will appear with several options. Look for "7-Zip" in that menu and click it. A submenu will open showing several choices.

Click "Add to archive". The 7-Zip compression dialog will open. This dialog shows you the settings for how 7-Zip will compress your folder. The default settings work well for most people — 7-Zip will create a .7z file with the same name as your folder, in the same location.

Choose your archive format and compression level

In the compression dialog, you will see a field labeled "Archive format". By default, it is set to "7z", which gives the best compression — your file will be smaller. However, .7z files require 7-Zip to open. If you need to send the compressed folder to someone who may not have 7-Zip installed, change the format to "zip" instead. Most computers can open .zip files without any extra software.

Below the format option, you will see "Compression level" with a slider. The default is "Normal", which balances speed and file size. If you want the smallest possible file, move the slider to "Ultra" — this takes longer but compresses more. If you want compression to finish quickly, set it to "Fast". For most folders, "Normal" is the right choice.

The "Archive name" field shows what your compressed file will be called. You can change this if you want a different name. When everything looks correct, click "OK". 7-Zip will begin compressing your folder.

Wait for compression to finish and find your archive

Compression time depends on folder size and your computer speed. A folder with a few hundred files might take 10 to 30 seconds. Larger folders can take several minutes. A progress window will show you how much of the folder has been compressed. Do not close this window or turn off your computer while compression is running.

When compression finishes, the progress window will close. Look in the same location as your original folder — you will see a new file with the name you chose, ending in .7z (or .zip if you selected that format). This is your compressed archive. Your original folder is still there; 7-Zip does not delete it automatically.

Delete the original folder if you want to free up space

Compressing a folder creates a new archive file, but leaves your original folder in place. If your goal was to save disk space, you need to delete the original folder yourself. Right-click the original folder and select "Delete" or "Move to Recycle Bin". This frees up the space that the uncompressed files were using.

Before you delete the original, make sure the compressed archive is complete and that you can open it. Right-click the .7z or .zip file and select "7-Zip" then "Extract here" to test it. A new folder will appear with all your files inside. If everything looks correct, you can safely delete the original folder.

Extract your compressed folder when you need the files again

To get your files back out of the archive, right-click the .7z or .zip file. Select "7-Zip" from the menu, then choose "Extract here". 7-Zip will create a new folder in the same location, containing all the original files. The archive file stays in place — extracting does not delete it.

If you want to extract to a different location, select "Extract to" instead. A dialog will open where you can choose where the folder should be created. This is useful if you want to extract to an external drive or a different part of your computer.

Frequently Asked Questions

Can I compress a folder that is currently in use?

7-Zip can compress a folder even if some files inside are open, but the compressed archive will only include files that are not locked by another program. If you are actively editing a document in that folder, 7-Zip may skip it or create an incomplete archive. Close all files in the folder before compressing to may support everything is included.

What is the difference between .7z and .zip format?

.7z files compress more efficiently and create smaller archives, but require 7-Zip to open. .zip files do not compress as well, but almost every computer can open them without extra software. Use .7z for personal storage and .zip when you need to send the file to others.

Can I password-protect a compressed folder?

Yes. In the 7-Zip compression dialog, look for the "Encryption" section and enter a password in the password field. Anyone who wants to extract the archive will need to type this password. Use a password you will remember, because 7-Zip cannot recover a forgotten password.

How much space will I save by compressing?

The amount of space saved depends on what type of files are in the folder. Text documents, spreadsheets, and source code compress very well — often to 10 to 20 percent of their original size. Photos, videos, and music files are already compressed and will shrink very little. A folder of mixed files typically compresses to 40 to 60 percent of its original size.

What if the compressed file is corrupted?

If you cannot extract the archive or get an error message, the file may be corrupted. This usually happens if the compression was interrupted or the file was damaged during transfer. Try extracting again. If that fails, you will need to re-compress the original folder. Always keep the original folder until you confirm the archive works.