Sales
October 13, 2026
6 min read

How to Password Protect a ZIP File

Learn how to password protect a ZIP file on Windows, Mac, and Linux using simple tools like 7-Zip. Includes encryption tips and secure sharing advice.

D

DocMetrics Team

Author

How to Password Protect a ZIP File

If you need to send several files together, a ZIP file can make sharing easier. But if the files contain private, financial, business, or sensitive information, you may want to add a password before sending the ZIP file.

In this guide, you'll learn how to password protect a ZIP file on Windows, Mac, and Linux, including how to use 7-Zip and other common tools.

Can You Password Protect a ZIP File?

Yes. A ZIP file can be encrypted with a password so that someone needs the password to extract its contents.

However, the exact steps depend on the operating system and the software you use.

For example, Windows File Explorer can create a ZIP file, but it does not provide a simple built-in option for adding a password to a ZIP file. A tool such as 7-Zip can be used instead.

How to Password Protect a ZIP File on Windows

One of the easiest free options on Windows is 7-Zip.

Step 1: Install 7-Zip

Download and install 7-Zip from its official website.

After installation, locate the files or folder you want to protect.

Step 2: Select the files

Right-click the file or folder you want to compress.

Choose:

7-Zip → Add to archive...

A settings window will open.

Step 3: Choose ZIP format

In the Archive format section, select:

zip

This makes sure the resulting file is a ZIP file rather than a 7z archive.

Step 4: Add a password

Find the Encryption section.

Enter your password in the password fields.

If the option is available, select AES-256 encryption rather than the older ZipCrypto method.

AES-256 generally provides stronger encryption.

Step 5: Create the ZIP file

Click OK.

7-Zip will create a new password-protected ZIP file.

You can now share the ZIP file with the intended recipient.

How to Open a Password-Protected ZIP File

When someone tries to extract an encrypted ZIP file, they will normally be asked for the password.

They must enter the correct password before the protected files can be extracted.

If the password is incorrect, the encrypted files cannot be properly extracted.

How to Password Protect a ZIP File on Mac

macOS does not provide the same simple graphical password option for ZIP files that some third-party applications provide.

One option is to use Terminal.

Using Terminal

First, place the files you want to compress into a folder.

Open Terminal and use the zip command with encryption enabled.

For example:

zip -er protected.zip MyFolder

You will then be asked to enter and confirm a password.

The command creates an encrypted ZIP file named protected.zip.

If you're not comfortable using Terminal, you can also use a third-party compression application that supports encrypted ZIP files.

How to Password Protect a ZIP File on Linux

On Linux, you can use the zip command from the Terminal.

For example:

zip -er protected.zip MyFolder

The command will ask you to enter a password.

You can replace MyFolder with the name of the file or folder you want to protect.

AES-256 vs. ZipCrypto

When creating an encrypted ZIP file, you may see different encryption options.

Two common choices are AES-256 and ZipCrypto.

If your software supports AES encryption for ZIP files, it is generally the better choice for protecting sensitive information.

ZipCrypto is an older encryption method and provides weaker protection.

For business documents, financial information, confidential files, or other sensitive data, use a modern encryption option when possible.

How to Send a Password-Protected ZIP File Safely

Creating a password-protected ZIP file is only part of keeping the files secure.

You should also think about how you share the password.

Don't send the ZIP file and password in the same message.

For example, you could:

  1. Send the ZIP file by email.

  2. Send the password through a different communication method.

  3. Give the recipient the password by phone or through a separate messaging channel.

This reduces the risk of someone who gains access to the email also immediately getting the password.

What If You Forget the ZIP File Password?

If you forget the password for an encrypted ZIP file, there may not be a simple way to recover the files.

This is why you should keep important passwords somewhere secure.

Before deleting the original unencrypted files, make sure you can successfully open the encrypted ZIP file and that you remember the password.

Is a Password-Protected ZIP File Always the Best Option?

Not necessarily.

A ZIP file is useful when you need to send several files together, especially when the recipient needs to download the files and work with them locally.

But ZIP files are not always convenient for business documents.

For example, if you're sending a sales proposal, you may want the recipient to view the document online rather than download an encrypted archive.

You may also want to know whether the proposal was opened, whether the recipient came back to it, or whether other people on their team viewed it.

In situations like these, a secure document-sharing platform may be more convenient than sending a password-protected ZIP file.

Frequently Asked QuestionsCan I password protect a ZIP file for free?

Yes. Tools such as 7-Zip can create password-protected ZIP files without requiring a paid subscription.

Does Windows have a built-in option to password protect ZIP files?

Windows can create ZIP files through File Explorer, but it does not provide a straightforward built-in option for adding a password to them. You can use a third-party tool such as 7-Zip.

Is a password-protected ZIP file secure?

It depends on the encryption method and password you use. A strong password combined with modern encryption provides better protection than a weak password or older encryption method.

Should I send the ZIP file and password together?

It is better to send them separately. If someone gains access to the message containing both the file and password, the password protection provides much less protection.

Can I password protect a ZIP file on Mac?

Yes. You can use Terminal commands or a third-party compression application that supports encrypted ZIP files.

Can I password protect a ZIP file on Linux?

Yes. Linux users can use tools such as the zip command or graphical archive applications that support encryption.

Final Thoughts

Password-protecting a ZIP file is a simple way to add protection when sharing files.

For Windows users, 7-Zip is one of the easiest options. Mac and Linux users can use Terminal or a compatible archive application.

For sensitive files, use a strong password, choose modern encryption when available, and send the password separately from the ZIP file.

Most importantly, make sure you can successfully open the protected ZIP file before deleting your original files.

Tags:Sales
D

DocMetrics Team

Writing about document sharing, analytics, and how teams use DocMetrics to track engagement and close deals faster.

Put this into practice with our free tools