How Do I Encrypt a File on a Mac? | Simple Safe Steps

To encrypt a file on a Mac, use an encrypted disk image, a password-protected archive, or FileVault so only people with the password can open it.

File encryption on a Mac keeps prying eyes away from tax records, client files, and anything else that should stay private. The good news is that you do not need extra apps to do it. macOS already ships with FileVault for full-disk protection, Disk Utility for encrypted containers, and Terminal tools for password-protected archives. Once you know which option fits your situation, you can lock down sensitive files in a few minutes.

This article walks through the main ways to encrypt a file on a Mac, when to use each one, and the trade-offs you should know before you trust them with real data.

Why File Encryption Matters On A Mac

A Mac already asks for a login password, Touch ID, or Apple Watch unlock. That helps, yet anyone who gets past that screen — or who can read data directly from the disk — may still reach your files unless the storage is encrypted.

Encryption turns the contents of a file or disk into unreadable data unless someone has the right key. On a Mac that key is normally your account password or a passphrase you choose for the encrypted container. Without that secret, even a thief with your Mac in hand should see only scrambled bits instead of your documents.

That is why the safest answer to “How do I encrypt a file on a Mac?” is usually to combine two ideas: keep the whole disk encrypted with FileVault and place extra-sensitive items inside an encrypted disk image or password-protected archive.

Ways To Encrypt A File On A Mac Safely

macOS does not have a single blue “Encrypt file” button for every format, yet it gives you several reliable tools once you know where to look.

Here are the main options you can pick from.

  • Turn On FileVault — Encrypts your startup disk so every file in your user account sits on encrypted storage.
  • Create An Encrypted Disk Image — Use Disk Utility to make a virtual drive that opens only with a password; store sensitive files inside it.
  • Make A Password-Protected Zip — Use the built-in zip tool in Terminal to create an encrypted archive of one file or a folder.
  • Add Passwords In Apps — Some apps, like Preview and Pages, can encrypt individual PDFs or documents directly.

Before you start, copy any files you care about to a backup. If you mistype a password or erase the wrong item, encryption will not give you a second chance.

Turn On FileVault To Protect Your Mac Drive

For most people, the first step is to switch on FileVault. That feature encrypts your entire startup disk, which means every file in your home folder is stored on encrypted storage whenever the Mac is locked or powered off.

According to Apple’s FileVault help page, newer Macs with Apple silicon already encrypt data at the hardware level, and FileVault adds a password gate on top of that so your login is required to read the disk.

Turn FileVault On

  1. Open System Settings — Click the Apple menu, choose System Settings, then select Privacy & Security in the sidebar.
  2. Scroll To FileVault — Find the FileVault section and click the button to turn it on.
  3. Choose How To Unlock — Decide whether to use only your account password or also keep a recovery key. A recovery key helps you sign back in if you forget the login password.
  4. Store The Recovery Key Safely — Write it down and keep it somewhere separate from the Mac, such as a password manager or a paper copy in a locked place.
  5. Confirm And Restart — Follow the prompts. FileVault will start encrypting in the background and may ask you to restart to finish.

While encryption runs, leave the Mac plugged in and awake. You can keep using it, but large disks may take some time to finish.

Once FileVault is active, someone who steals the Mac and tries to read the disk directly should not see your data without the password. If you disable FileVault later, the disk will be decrypted again.

Create An Encrypted Disk Image For Specific Files

FileVault protects the disk as a whole, yet sometimes you want an extra layer around a small set of files, such as tax returns or client folders that you move between Macs. An encrypted disk image gives you a container that behaves like a small drive: you open it with a password, copy files in or out, then eject it when you are done.

Apple’s Disk Utility includes a straightforward way to create these containers; the steps below match the process in Apple’s Disk Utility instructions.

Set Up A New Encrypted Disk Image

  1. Open Disk Utility — Go to Applications > Utilities and launch Disk Utility.
  2. Start A Blank Image — In the menu bar choose File > New Image > Blank Image.
  3. Name The Disk Image — Pick a filename and a location where the image file will live, such as your Documents folder.
  4. Choose A Size And Format — Set a size that covers the files you plan to store, then pick APFS or Mac OS Extended (Journaled) depending on which macOS versions you use.
  5. Pick An Encryption Level — In the Encryption menu, choose 256-bit AES for stronger protection unless you have a specific reason to choose 128-bit.
  6. Enter A Password — Type a strong passphrase, confirm it, and avoid storing it in the keychain on shared Macs.
  7. Select Read/Write Image Format — Choose a format that lets you add and remove files, such as a read/write disk image.
  8. Create The Image — Click Save and wait while macOS creates and mounts the new virtual disk.

You should now see a new disk icon in Finder. Anything you copy there is stored inside the encrypted image file.

Use The Disk Image Day To Day

  • Open The Image — Double-click the .dmg file, enter the password, and wait for the disk icon to appear.
  • Work With Your Files — Add, remove, or edit files on that disk as you would on any other folder.
  • Eject When Finished — Drag the disk icon to the Trash or click the eject button in Finder so the encrypted container closes.

If you want to erase the original unencrypted files, move them into the disk image first, confirm you can open them from there, then move the originals to the Trash and empty it.

Encrypt Files On A Mac With A Password-Protected Zip

Sometimes you only need to send one file or a single folder to someone else and you want a simple password-protected package. A zip archive with encryption works well for that, and macOS already includes a command-line tool that can create it.

The Finder Compress command does not add a password, so you need to use Terminal for this method.

Create An Encrypted Zip Archive

  1. Put Files In A Folder — In Finder, create a new folder and move in the file or files you want to protect.
  2. Open Terminal — Go to Applications > Utilities > Terminal.
  3. Go To The Folder — Type cd , then drag the folder from Finder into the Terminal window and press Return.
  4. Run The Zip Command — Type zip -er SecureArchive.zip FolderName, replacing SecureArchive and FolderName with names you prefer, then press Return.
  5. Set The Password — Terminal asks for a password and then for confirmation. You will not see the characters as you type.
  6. Share Or Store The Zip File — The new .zip file appears in the same folder. You can email it, move it to cloud storage, or keep it locally.

Archive passwords created this way can resist casual snooping, yet they are not as strong as FileVault or a well-configured disk image for long-term protection. For data that needs maximum protection, prefer a disk image or full-disk encryption.

Password-Protect Single Documents In macOS Apps

Several built-in apps on Mac can encrypt their own documents without any extra tools. That option is handy when you only care about one PDF or one Pages file rather than a whole folder.

Lock A Pdf With Preview

  1. Open The PDF In Preview — Double-click the file so it opens in Preview.
  2. Choose Export — From the File menu, choose Export.
  3. Set A Password — In the Export panel, tick the box to require a password, then enter and confirm it.
  4. Save The Protected Copy — Pick a new filename and location, then click Save.

When someone opens that new PDF, Preview or another reader will ask for the password before showing the content.

Add A Password In Pages, Numbers, Or Keynote

  1. Open Your Document — Launch Pages, Numbers, or Keynote and open the file.
  2. Open The Password Panel — From the File menu, choose Set Password.
  3. Enter And Confirm The Password — Type a strong phrase, add a hint if you wish, and click Set Password.
  4. Save The Document — Save the file as usual; the app will now request the password on the next open.

This type of document password works well for files you send by email or keep in shared cloud folders, since the protection travels with the file.

Office Files And Third-Party Apps

Microsoft Word, Excel, and PowerPoint on Mac include their own password options in the File > Passwords menu. Many third-party editors also add password or encryption settings. If you rely on those apps for work, check their help menus for the exact steps and always test that the password is required before you store anything sensitive.

Pick The Right Encryption Method For Your Needs

By this point you have several ways to encrypt a file on a Mac. The right choice depends on how many files you have, how often you use them, and who needs access.

The table below sums up common options.

Method What It Protects Best Use
FileVault Entire startup disk and everything in your user account. Everyday protection for your whole Mac.
Encrypted Disk Image All files placed inside the disk image container. Ongoing private folders moved between Macs or stored on backups.
Encrypted Zip Archive One file or a folder stored as a single zip file. Sending files to someone else or keeping a one-off archive.
App-Level Document Password A single PDF or document saved from an app. Individual documents shared by email or in shared cloud storage.

Many people combine methods: FileVault for the whole Mac, plus an encrypted disk image for the most sensitive material and a zip archive when they need to send something securely to someone else.

Practical Tips For Staying Safe With Encrypted Files

Encryption helps only if your passwords and habits do not weaken it. A few simple practices keep your protection steady over time.

  • Choose Strong Passwords — Use long passphrases with a mix of words and characters rather than short, guessable strings.
  • Use A Password Manager — Store FileVault recovery keys and disk image passwords in a manager instead of a notes app.
  • Keep At Least One Backup — Maintain backups of encrypted files, either as separate encrypted copies or inside an encrypted Time Machine disk.
  • Do Not Reuse Passwords — Give each disk image or archive its own passphrase so one leak does not open everything.
  • Test Your Setup — Log out, restart, or mount images on another Mac to confirm that passwords are required where you expect.

Once you learn these tools, encrypting files on a Mac becomes a normal part of setting up new projects, sharing archives, or preparing a laptop for travel. Start with FileVault, add an encrypted disk image for your most sensitive folders, and you have a solid baseline that keeps private data away from the wrong people.