PDF tasks
Add a password to a ZIP of documents before emailing them
A folder of documents — tax slips, a signed form, copies of ID — should not cross the internet as a naked email attachment. Putting them in a ZIP with a password means anyone who intercepts the email, or receives it by mistake, gets a locked file instead of readable papers. This guide makes that locked ZIP with the tools already on a Mac, explains honestly what Windows can and cannot do built in, covers the stronger Windows route, and finishes with the step people forget: sending the password separately.
First, an honest limit: a plain ZIP has no password
The ZIP you make with a right-click is not protected, on either system. On a Mac, Finder's Compress command makes a plain archive — Apple's guide to how to zip and unzip files and folders on Mac describes Compress and double-click-to-open, with no password step anywhere in it. Windows File Explorer's Compress to ZIP file and Send to > Compressed (zipped) folder are the same: convenient, and completely open to anyone who gets the file.
So a password has to come from a different tool than the right-click menu. The good news is that both systems have a workable route without buying anything: a command already built into macOS, and a long-standing free archiver on Windows. One caution applies to both: the strength of the protection depends on the encryption the tool uses and on the password itself, so read the notes on each route before sending anything truly sensitive.
An encrypted ZIP protects the documents in transit and at rest in someone's inbox. It does not prove who sent it, it does not stop the recipient forwarding the opened documents, and if the password is lost the archive is effectively lost too — there is no recovery route. Keep your own unencrypted copies in their normal place; the ZIP is a shipping container, not your archive.
On a Mac: use the built-in Terminal command
- Gather the documents into one folder. Put copies of everything you are sending into a single folder with a plain name, and check the folder's contents once — what is in the folder is what the recipient gets.
- Open Terminal. Find it in Applications > Utilities > Terminal.
- Move to the folder's location. Type
cdfollowed by a space, then drag the folder that contains your new folder (for example, the Desktop) into the Terminal window and press Return. Dragging avoids typing a long path by hand. - Run the encrypting zip command. Type
zip -er Documents.zip Documents— replacing both names with your folder's name — and press Return. The-eoption tells zip to encrypt;-rincludes the folder and everything inside it. - Type the password twice. Terminal prompts for a password and then asks you to verify it. Nothing appears on screen as you type; that is normal. Choose a password of several words that you have not used elsewhere.
- Know this route's limit. The encryption offered by this built-in command is the older ZIP password scheme, which is widely regarded as weak against a determined attacker with time. It is a reasonable lock against casual access and misdirected email. For documents whose exposure would be serious, use the stronger route in the Windows section — the same free tool approach applies — or send the files through a service your organization approves for sensitive documents instead of email at all.
On Windows: the free 7-Zip route with stronger encryption
Because File Explorer offers no password option, Windows users need an archiver. 7-Zip is free, long-established, and — the important part — can encrypt with AES-256, a much stronger scheme than the older ZIP password. Download it only from its official site, 7-zip.org, and skip any lookalike download page an ad points you to.
- Gather the documents into one folder, exactly as in the Mac route, and check its contents.
- Right-click the folder and open the 7-Zip menu. Choose Add to archive. On Windows 11 the 7-Zip items may sit behind Show more options on the right-click menu.
- Set the archive format. For a recipient who will open the file with ordinary tools, choose zip as the format. The 7z format also works and is 7-Zip's own, but a recipient without 7-Zip may not be able to open it.
- Enter the password in the Encryption section. Type it in both password boxes, and set the encryption method to AES-256 where that choice is offered.
- Consider encrypting file names too. With the 7z format, 7-Zip offers an option to encrypt file names, so even the list of documents inside is hidden until the password is entered. With the zip format, file names inside the archive generally remain visible even though the contents are locked — one more reason not to name a file something revealing.
- Create the archive and keep the original folder. The encrypted file appears beside the folder. Your originals stay untouched; the archive is a copy.
Test the archive before you send it
- Open the archive as the recipient will. On a Mac, double-click the ZIP; on Windows, open it with File Explorer or 7-Zip. With the zip format the file names inside may list without a password, but opening or extracting a document should ask for it.
- Type the password and extract one document. Open that document and confirm it is readable and complete. A corrupt archive discovered by the recipient costs a day; discovered by you it costs a minute.
- Try a wrong password once. It should be refused. If the archive opens with no prompt at all, you sent yourself the plain version — rebuild it and check which file you are attaching.
- Check the size. Email services commonly limit attachment sizes, often around 20 to 25 MB, though the exact limit varies by provider. If the archive is too large, split the documents into two archives or use a file-sharing route instead of forcing it through email.
Send the file and the password by different routes
- Attach the encrypted ZIP to the email, and say in the email that a password is coming separately. Do not put the password in the same email, in the subject line, or in a second email in the same thread — anyone who gets the mailbox gets both.
- Send the password by a different channel. A phone call, a text message, or a messaging app the recipient already uses — any route that does not live in the same inbox as the file. Tell the recipient what the password unlocks, so a bare password in a text message makes sense when it arrives.
- Confirm receipt and a successful open. Ask the recipient to confirm they could open the archive before you delete anything or assume the job is done.
- Warn the recipient about re-forwarding. If they forward the documents on, the protection only travels if they re-encrypt; the opened documents by themselves are ordinary files again.
End state
- One encrypted archive holds exactly the documents you meant to send, verified by opening it yourself with the password.
- The archive refuses a wrong password and asks for the password before any document inside it can be opened or extracted.
- The email carries the archive only; the password travels by a different route.
- Your original documents are still in their normal place, unencrypted and unchanged.
When it goes wrong
- The archive opens without asking for a password. You made or attached a plain ZIP — the right-click Compress route on both systems does exactly that. Rebuild the archive using the Terminal command or 7-Zip route, test it, and attach the new file.
- The recipient cannot open the file. Ask what they opened it with. A 7z-format archive needs 7-Zip or a similar archiver; re-send in zip format if the recipient only has built-in tools. Also confirm they typed the password exactly, including capitals.
- The password is forgotten. There is no reset and no back door; that is the point of the protection. Your remedy is the original folder you kept: build a new archive with a new password and send it again.
- The email is rejected or the attachment is stripped. Some mail systems block encrypted archives precisely because they cannot scan them. If that happens, use the recipient organization's approved file-sharing route instead of trying variations of the attachment until one slips through.
- File names inside the archive give too much away. With zip format, names can be visible while contents stay locked. Rename files neutrally before archiving, or use the 7z format with file-name encryption where the recipient can open it.
Related document tasks
-
Add a cover sheet note and header to a PDF before sending
A cover sheet tells the reader what they are looking at before they reach page two — who it is for, what it contains, and what to do with it — and a short header line keeps every later page identified if the file gets printed and separated.
-
Add a password and expiry to a shared Google Drive link
Add a password and an expiry note to a shared Google Drive link — honestly: Drive links have no password setting, so restrict the link to named people, add an expiration date where your account offers it, or share a password-protected file instead.
-
Add a clickable email link and subject line in Word
Add a clickable email link in Word with a ready-made subject line: select the link text, use Insert Hyperlink's E-mail Address form, fill in the address and subject, and test the link before the document goes out.
-
Add a QR code or barcode image into a Word document
Add a QR code or barcode into a Word document: generate the code as an image and insert it, use a Word add-in, or use Word's built-in barcode field where it fits — then size it and test-scan the printed result.
Sources
- Apple Support, Zip and unzip files and folders on Mac — what Finder's built-in Compress command does, and how a ZIP is opened on a Mac; the plain built-in route this guide adds a password on top of.
- 7-Zip, official site — the free Windows archiver used for the AES-256 route, and the only download source this guide points to.