How to Password-Protect a ZIP File

Tap a step to see it in order.

  1. Select the files to compress

    Choose the files or folders you want to protect with a password before compressing them.

  2. Open a compression tool that supports passwords

    Use a compression program that supports password protection, such as 7-Zip or WinRAR on Windows, or Keka on Mac.

  3. Check the password/encryption option

    In the compression settings window, check the "Set password" or "Encryption" option before creating the archive.

  4. Enter and confirm the password

    Type the password you want to use, enter it again to confirm, and finish creating the archive.

  5. Why this is useful

    Adding a password to a compressed file when emailing or messaging a contract or a file containing personal information helps prevent someone else from accidentally opening it.

Sending sensitive files over email

When you need to send a contract or a file containing personal information by email or chat, putting a password on the compressed archive keeps someone from opening it by mistake β€” or on purpose β€” if it ends up in the wrong hands.

A note on managing the password itself

A password-protected archive is only as secure as the password you choose, and as safely as you store it. Send the password through a different channel than the file itself whenever possible, such as a text message instead of the same email.

Frequently Asked Questions

If I forget the password, is the file unrecoverable?

Yes, in most cases there is no built-in recovery method for a password-protected archive, so it's essential to record the password somewhere safe.

Does every compression program support setting a password?

Windows' built-in compression feature does not support password protection, so you'll need a separate program such as 7-Zip, WinRAR, or Keka that supports it.