By 8 min read

How to Password-Protect a ZIP File on Windows 11 and Mac (With or Without 7-Zip)

The Compress commands in Windows 11 File Explorer, Mac Finder and the iPhone Files app have no password setting. How to make one on this page with nothing to install, with 7-Zip, or in the Mac Terminal, which encryption to pick (ZipCrypto or AES-256), and how to get the password to the recipient.

Make a password-protected ZIP right here

Add files or folders to the dotted box below, choose a password and the encryption, and press "Make password-protected ZIP" to save it. Nothing to install.

Drop the files to protect here

or click to select several files (for a folder, drop it or use the button below)

Your files and password stay in your browser. Nothing is uploaded.

Encryption

Your files and password are handled on your device and never sent anywhere.

The short answer first. Compressing in Windows 11 File Explorer, in the Mac Finder or in the iPhone Files app gives no option to put a password on the ZIP (Microsoft says encrypted archives are not supported, and Apple's instructions have no such step). To make one without installing anything, use the box at the top of this article. If you can install software, the free 7-Zip is the usual choice. On a Mac, the zip command in Terminal works too.

Whichever way you go, decide one thing first: how the recipient will open it. That decides which encryption to choose, so this article starts there.

Decide first: how will they open it? (ZipCrypto or AES-256)

A password-protected ZIP uses one of two kinds of encryption: the classic method from the 1990s, usually called ZipCrypto, and the later AES-256. 7-Zip and the box on this page both make you pick one.

Method Opens with Windows' built-in tools alone? Strength Good for
ZipCrypto Yes, when we tried it on Windows 11 in October 2026 Weak. The ZIP specification itself calls it weak by today's standards Recipients who cannot install software (a work PC)
AES-256 No (it gave an error). Needs 7-Zip, WinRAR or similar Strong Contents that matter, for recipients with an unzip program

ZipCrypto's weakness is two separate problems:

  • A short password can be found by trying every combination. That is true of any method, and a long, hard-to-guess password prevents it.
  • Even with a long password, knowing part of the contents breaks it. This is the known-plaintext attack Biham and Kocher presented at the FSE workshop in 1994, and public tools such as bkcrack implement it. By bkcrack's own description, 12 bytes of the encrypted data's contents, 8 of them in a row, are enough. That is within reach when the contents can be guessed, for example with a file stored without compression.

PKWARE's ZIP specification (APPNOTE.TXT, section 6.0.1) says the same: the traditional encryption is considered weak by today's standards and is recommended only where security needs are low or for compatibility with older ZIP programs. Picking ZipCrypto so the recipient can open it is a practical choice; for anything you would not want read, pick AES-256 and ask the recipient to use an unzip program.

One thing is the same with either method. What the two methods protect is what is inside the files; the list of names, sizes and dates can be read without the password. If a name gives the contents away, give the file a plain name before zipping it, or use 7-Zip's 7z format, which can encrypt the names too (the 7-Zip section).

Windows 11 cannot add a password on its own

File Explorer in Windows 11 makes ZIP files but has no password option. Microsoft's support page "Zip and unzip files" says Windows 11 version 24H2 compresses and decompresses various formats including 7-Zip, then adds that "it does not support operations on encrypted archive files", and points to 7-Zip or WinRAR for encrypted archives.

Since 24H2 File Explorer can also make 7z archives, but Microsoft's page still says encrypted archives are not handled. We have not opened the compression screens on a real Windows 11 machine for this article; the statement rests on Microsoft's page.

Opening a password-protected ZIP is another matter: with ZipCrypto, the built-in tools may manage it. When we tried ZIPs made with this site's tool on Windows 11 in October 2026, the ZipCrypto one opened after the password was entered and the AES-256 one gave an error. Microsoft's Raymond Chen has written that Windows' ZIP support dates from Windows XP, has no AES, and shows a password prompt for password-protected ZIP files. That does not match the support page's wording, so allow for the chance that a recipient's version of Windows will not open it.

Without installing anything (the box on this page)

On a work PC where you cannot install software, use the box at the top of this article. The whole job, building the ZIP and encrypting it, is done by the browser you are reading this in, so neither the files nor the password reach this site.

  1. Add the files. Drop them onto the dotted box, or click it to choose them. For a whole folder, drop it or press "Choose a folder". You can add more in several goes.
  2. Choose the password and encryption. Type a password in the "Password" field, or press "Make a hard-to-guess password". Under "Encryption", pick "Opens with Windows' built-in tools (ZipCrypto)" if the recipient cannot install software, or "Strong encryption (AES-256)" if they have 7-Zip or similar. Change the "ZIP name" if you like.
  3. Make it and save it. Press "Make password-protected ZIP", then "Save ZIP" to download it. Use "Copy password" and send the password to the recipient some other way than the ZIP.

A few rules worth knowing:

  • Passwords are plain ASCII only (letters, digits, symbols). A ZIP keeps no note of which character encoding the password was typed in, and programs compare it in different ways, so a password with accented or non-Latin characters can fail even when typed correctly. 7-Zip also refuses non-ASCII passwords for ZIP archives.
  • Under 8 characters, you get a warning. You can still make the ZIP, but the password is easier to find by trying every combination.
  • Up to 1 GB in total. Larger takes longer, and "Cancel" stops it part-way.
  • .DS_Store, Thumbs.db and desktop.ini inside folders are left out. Names beyond plain ASCII are written in UTF-8 with the UTF-8 mark, so File Explorer and 7-Zip show them correctly.

If you only want the tool, the same thing is on the ZIP password tool page.

With 7-Zip (Windows)

If you can install software, 7-Zip is free and puts AES-256 encryption on both ZIP and 7z archives. Download it from the official site, 7-zip.org. The latest version as of writing is 26.06 (November 6, 2026), and the labels below are from that version.

  1. Right-click the files or folder and choose "7-Zip", then "Add to archive...".
  2. In the dialog, set "Archive format" to zip.
  3. Under "Encryption", type the same password in "Enter password" and "Reenter password".
  4. In "Encryption method", choose "ZipCrypto" or "AES-256" (see the first section).
  5. Press "OK". The ZIP appears in the same folder.

On Windows 11, 7-Zip may not be in the first menu you see after right-clicking. Choose Show more options and the 7-Zip items appear. 7-Zip's author replied in October 2024 that on Windows 11 the 7-Zip commands are reached through "Show More Options". The 26.06 change log does not mention changing that, so it is probably still the case, but we have not checked it on a real screen.

For ZIP archives, 7-Zip's "Encryption method" starts on ZipCrypto (or AES-256 if you chose it last time). 7-Zip's help says the same as above: use ZipCrypto for an archive most ZIP programs can open; AES-256 is stronger but supported only by 7-Zip, WinZip and some others (WinRAR and others open AES ZIPs today).

To hide the file names too, use the 7z format. With "Archive format" set to 7z, the only encryption method is AES-256, and ticking "Encrypt file names" encrypts names, sizes and dates as well. For ZIP the option is not shown at all. We have not tried opening an encrypted 7z archive with Windows 11's built-in tools, but Microsoft says encrypted archives are not supported, so pick 7z on the understanding that the recipient will use 7-Zip or similar.

Microsoft's support page also names WinRAR for making encrypted archives. Whichever program you use, an AES-encrypted ZIP still needs a program that supports AES on the receiving end.

On a Mac

Control-click a file in Finder and choose Compress, and you get a ZIP, but Apple's instructions have no step for a password. With what comes on the Mac, use the zip command in Terminal.

  1. Open Terminal and cd to the folder that contains what you want to zip (for example cd ~/Desktop).
  2. Type the following, replacing MyFolder and send.zip with the real names:
    zip -er send.zip MyFolder -x '*.DS_Store'
  3. At Enter password: type the password, and again at Verify password:. Nothing appears as you type.

-e encrypts and -r includes everything inside the folder. -x '*.DS_Store' leaves out the .DS_Store files macOS creates in folders; without it, a Windows user sees unfamiliar files in the archive (on a MacBook Pro with macOS 27.2.1, the ZIP made without it contained .DS_Store, and the one made with it did not; the password prompts were typed through on the same MacBook Pro).

Two cautions. This command offers only the classic encryption (the same as ZipCrypto), not AES. man zip itself calls it relatively weak. And there is a -P option that puts the password in the command line; man zip says plainly that this is insecure, so do not use it.

For AES-256, or to avoid Terminal, the box at the top of this article works in Safari on a Mac too (it is built to run in Safari's engine, WebKit, but we have not checked it in Safari on a real Mac).

On an iPhone or iPad

The Files app can make a ZIP: select the items and tap Compress. Apple's instructions have no step for a password.

The box at the top of this article is built for phone-width screens too, but we have not checked it in Safari on a real iPhone or iPad. On phones, adding a whole folder may not be possible.

Protecting a folder, or a Word or Excel file

If you want to protect a folder so you can hand it over or send it, the simplest way is to zip the folder with a password. Both the box on this page and 7-Zip keep the folder structure. As above, the file names inside stay visible.

If the contents are Word or Excel files, you can also put the password on the file itself. The recipient skips the ZIP step and is asked for the password when Word or Excel opens the file.

Word for Mac has different steps (the same page has a macOS tab). The Excel page says Microsoft cannot retrieve forgotten passwords; the Word page, too, advises keeping a copy somewhere safe.

Sending it by email

Attaching a password-protected ZIP and sending the password in a second email is increasingly avoided, for two reasons.

  • A password sent the same way protects little. Anyone who can read the email can read both the ZIP and the password. In Japan, where the practice was common enough to get a nickname (PPAP), the minister in charge announced in November 2020 that the Cabinet Office and the Cabinet Secretariat would stop sending passwords automatically by the same route as the ZIP, and said that for sensitive files, a password sent by an entirely different route would have been the appropriate first step (press conference, in Japanese).
  • The encryption lets malware past mail scanning. Japan's IPA warned in September 2020 that Emotet emails with password-protected ZIP attachments were likely to slip past security products' detection because the attachments were encrypted (IPA, in Japanese).

Some organisations block such emails outright: the Hitachi group, for one, stopped delivering emails with password-protected ZIP attachments from December 13, 2021 (announcement, in Japanese). Check with the recipient first. Sharing a link (cloud storage or a file transfer service) is the usual alternative. If you do email a ZIP, give the password by phone, chat or text message rather than email; the box on this page says the same once the ZIP is made.

How the recipient opens it, and forgotten passwords

On Windows 11, a ZipCrypto ZIP opened by double-clicking it and entering the password when taking the files out. An AES-256 ZIP needs an unzip program such as 7-Zip or WinRAR. On a Mac, both kinds gave up their files once the password was entered (all checked in October 2026; which Mac app was used was not recorded).

A recipient who cannot install software can use this site's extractor: it runs in the browser and, with the password, extracts both ZipCrypto and AES-256 ZIPs. If a ZIP will not open at all, see why a ZIP file will not open; for garbled names, see why file names in a ZIP come out garbled.

This site cannot open a ZIP whose password is forgotten. It has no feature to remove or search for passwords. Ask the sender, or make the ZIP again from the original files. When you make one, keep a note of the password somewhere other than with the ZIP.

Summary

  • Compressing in Windows 11 File Explorer, the Mac Finder or the iPhone Files app gives no password option for ZIP.
  • ZipCrypto if the recipient cannot install software; AES-256 if the contents matter and they have an unzip program. ZipCrypto falls to part of the contents, however long the password.
  • Without installing anything: the box at the top of this article. With 7-Zip: "Add to archive..." → "Archive format" zip → "Enter password" → "Encryption method".
  • On a Mac: zip -er in Terminal (classic encryption only), with -x '*.DS_Store' to leave out .DS_Store.
  • Names, sizes and dates stay visible. To hide names, use 7-Zip's 7z format with "Encrypt file names".
  • Do not send the password in the same email as the ZIP.

Frequently asked questions

Can I change or remove the password later?
The reliable way is to take the files out and make the archive again. To remove the password, use the extracted files as they are or zip them without one. To change it, add the extracted files to the box at the top of this article and make a new ZIP with the new password. Either way you need the current password.
7z or ZIP: which should I send?
If the recipient cannot install software, ZIP with ZipCrypto. Windows 11 version 24H2 can open 7z files, but Microsoft says encrypted archives are not supported. If the recipient has 7-Zip or similar and the file names themselves are sensitive, 7z is the better fit.
How long should the password be?
The box at the top warns below 8 characters. "Make a hard-to-guess password" makes 12 letters and digits without look-alike characters, in groups of four joined by hyphens, about 70 bits. But ZipCrypto can be broken from part of the contents whatever the password length, so choosing AES-256 does more than adding characters.
Can the recipient open it on a phone?
This site's extractor runs in the browser, so it is built to take the password and extract either kind (ZipCrypto or AES-256) from a phone's browser too. Whether the iPhone Files app opens a password-protected ZIP is not in Apple's instructions, and we have not checked it.

About the author

Ren

Developer, OpenedFile

I build and maintain OpenedFile on my own. It started when a winmail.dat attachment landed in my inbox and nothing would open it — and every online converter I found wanted me to upload the file to their server first. So I wrote a TNEF parser from scratch instead, and every tool here has run entirely in the browser ever since.

More about OpenedFile