A 7z file is a compressed archive created by the 7-Zip program

A 7z file is a container that holds one or more files squeezed down to take up less space on your computer or to move across the internet more easily. The name comes from the program that creates it: 7-Zip, which is free software you can read and install on Windows, Mac, or Linux. When you compress files into a 7z archive, you are bundling them together and removing redundant data so the whole package weighs less.

The 7z format compresses files more tightly than the older ZIP format that comes built into Windows and Mac. This means a 7z file of the same content will usually be smaller than a ZIP file. That matters when you are sending files over email, uploading to cloud storage, or backing up large folders. The trade-off is that 7z is less universal — not every computer can open a 7z file without installing software first, whereas almost every computer can open ZIP files without any extra step.

You create a 7z file by selecting the files or folders you want to compress, right-clicking, and choosing the 7-Zip option to add them to an archive. You open a 7z file the same way: right-click it and extract (or unzip) the contents back to individual files. The original files inside remain unchanged — compression does not alter them, it just temporarily shrinks them for storage or transport.

Key Takeaways

  • A 7z file is a compressed archive created by 7-Zip software that bundles multiple files into one smaller package.
  • 7z compression is more efficient than ZIP, so the same files will take up less disk space in a 7z archive.
  • You need 7-Zip installed to create 7z files, but many computers can open them with other software or online tools.
  • Extracting a 7z file returns the original files to their full size and does not damage them.

How 7z compression works differently from ZIP

Both ZIP and 7z are compression formats, but they use different mathematical methods to shrink files. ZIP has been around since the 1980s and is built into every version of Windows and Mac, so it works everywhere without installing anything. 7-Zip is newer and uses a more advanced compression algorithm, which means it can squeeze the same files down to a smaller size — sometimes 10 to 30 percent smaller, depending on what you are compressing.

The downside is that 7z is not universal. If you send a 7z file to someone using an older computer or a locked-down work machine, they may not be able to open it without downloading 7-Zip first. ZIP is the safer choice when you do not know what software the other person has. But if you are compressing files for your own backup, or sending to someone you know has 7-Zip, the smaller file size of 7z saves time and storage space.

Both formats are lossless, meaning no data is lost when you compress or extract. The files come back out exactly as they went in. This is different from image or video compression, where you sometimes lose quality to save space.

When to use 7z instead of ZIP

Use 7z when file size matters most and everyone involved can open it. Large backups, video project folders, or archives of old documents compress much more efficiently in 7z. If you are uploading to cloud storage and paying for extra space, or sending files over a slow internet connection, the smaller 7z file saves time and money.

Use ZIP when you need maximum compatibility. If you are sharing files with coworkers, clients, or family members and you are not sure what they have installed, ZIP is the safer bet. It opens on any modern computer without extra software. Many online services also prefer ZIP files and may not accept 7z uploads.

For personal use — backing up your own files, storing old projects, or organizing your computer — 7z is usually the better choice because you control what software you have. For sharing or sending files to others, think about what they can open before you choose.

How to open a 7z file on your computer

On Windows, the easiest way is to install 7-Zip (free from 7-zip.org). Once installed, right-click any 7z file and select "7-Zip" then "Extract Here" or "Extract to [folder name]". The files inside will appear in that location, ready to use.

On Mac, 7-Zip does not have an official version, but several free alternatives work. The Unarchiver (from the Mac App Store) opens 7z files automatically — just double-click the 7z file and it extracts. Keka is another option if you prefer a different interface. Both are free.

On Linux, 7z support is usually built in or a single command away. Open your file manager, right-click the 7z file, and choose "Extract" or "Open With Archive Manager". If that does not work, open a terminal and type 7z x filename.7z to extract it.

If you do not want to install software, several websites let you upload a 7z file and read the extracted contents. Search for "online 7z extractor" — these work in your web browser without installing anything. The trade-off is that you are uploading your files to someone else's server, so only use this method for files that are not sensitive or private.

Creating a 7z file from your own files

First, install 7-Zip if you do not have it. Go to 7-zip.org, read the version for your operating system, and run the installer. It takes a minute and does not require restarting your computer.

Next, select the files or folder you want to compress. You can click one file, hold Ctrl (or Cmd on Mac) and click others to select multiple files, or right-click a folder to compress the whole thing. Then right-click your selection and look for the 7-Zip menu. Choose "Add to Archive" and a dialog box opens.

In the dialog, you can name the archive (it will add .7z to the end automatically), choose where to save it, and adjust compression settings. For most purposes, the default settings are fine — they balance compression speed with file size. Click OK and 7-Zip creates the archive. Depending on how much you are compressing, this might take a few seconds to a few minutes.

Potential issues when working with 7z files

The most common problem is that someone receives a 7z file and cannot open it because they do not have 7-Zip installed. This is not a problem with the file — it is just a compatibility issue. The solution is to either send them a ZIP file instead, or give them the link to 7-zip.org so they can install the free software.

Another issue is file corruption during read or transfer. If a 7z file gets damaged while moving across the internet, it may not extract properly. This is rare, but if extraction fails, try downloading the file again. Some 7z files are created with recovery information built in, which can repair minor damage — 7-Zip will attempt this automatically if it detects a problem.

Very old versions of 7-Zip (more than five years old) sometimes have trouble with files created by newer versions. If you get an error message, make sure you have the latest version of 7-Zip installed. Updates are free and take a minute to install.

Frequently Asked Questions

Is 7z safe to use?

Yes. 7-Zip is open-source software, meaning the code is publicly available for anyone to review. It has been around since 2000 and is used by millions of people. The main risk is downloading 7-Zip from the wrong website — always use 7-zip.org, not a third-party read site.

Can I password-protect a 7z file?

Yes. When you create the archive, the dialog box has an option to set a password. Anyone who wants to extract the files will need to type that password. This is useful for sensitive documents or files you are sending over email, though remember that a determined person with time and computing power could eventually crack a weak password.

What is the difference between 7z and RAR?

RAR is another compression format that compresses well, but it is not free — you have to buy a license to create RAR files. 7z is free and compresses just as well or better. For most people, 7z is the better choice because there is no cost and it works on all operating systems.

Will extracting a 7z file delete the original archive?

No. Extracting creates a copy of the files in their original form and leaves the 7z archive untouched. You can extract the same 7z file as many times as you want. If you want to delete the archive after extracting, you have to do that manually by right-clicking and choosing delete.

Can I edit files inside a 7z archive without extracting?

Most programs require you to extract first. Some file managers let you browse inside a 7z file like a folder, but to actually edit a document or change a file, you need to extract it, make your changes, and then create a new archive if you want to keep it compressed. This is different from some other archive formats that allow direct editing.