How to encrypt files and folders on your Mac

Apple MacBook Pro 13-inch (M1, 2020)
(Image credit: Future)

Apple has several different encryption tools built into macOS, letting you encrypt your entire Mac or individual files or folders, and in this guide we'll show you how.

With encryption, your data gets scrambled and there's no way to read it without gaining access to a secret key, password, or, portable RFID chip. 

FileVault on Mac

(Image credit: Future)

FileVault

When setting up a Mac, Apple asks whether to use 'FileVault' to protect the entire device through encryption. Once enabled, 'FileVault' works in the background to secure all of your files on the fly. 'FileVault' is the easiest way to add encryption onto your Mac and is the most far-reaching since it covers everything. 

When enabling 'FileVault', you're prompted for a password, which you must use each time your Mac is rebooted or waked from sleep. You'll also need to establish a cipher. On OS X Yosemite or later, this can be your iCloud account, which makes unlocking your computer very easy. 

If you rather not use iCloud FileVault recovery, you can create a local recovery key. The method is a tad more secure since the key is typically stored offline instead of on iCloud servers. However, most will choose iCloud since it provides for the most seemless process. 

Regardless, without your password and iCloud account/recovery key, you won't be able to open your Mac, and your data will remain locked.

If you decide not to activate 'FileVault' during Mac setup, you can do so at any time by following a few steps. Go into the 'System Preferences' on your Mac, then choose 'Security & Privacy'. Click on the 'FileVault' tab, then select 'Turn on FileVault' and following the additional instructions. 

You can turn off 'FileVault' from the same screen. In this case, be sure to choose the lock at the bottom left to unlock, then click 'Turn off FileVault'. 

The biggest drawback to using 'FileVault' is its use of system resources, although that's less of a problem on newer Macs with more bandwidth than older devices. There's also the risk factor; if you lose your recovery code or can't log into your iCloud account, access to your computer files could be lost forever. 

Encrypt folder on Mac

(Image credit: Future)

Encrypt folders

If encrypting your entire computer seems unnecessary for your situation, you can encrypt individual folders on your computer. This provides a great solution when sharing folders. Before getting started, make sure to add all of the relevant files into the folder you wish to encrypt. 

To encrypt the data, go to the Finder > Applications > Utilities folder. Choose 'Disk Utility'.  On the top of the menu, select File > New Image > Image from Folder. Choose the folder you wish to add a password to, then click 'Choose'. 

On the next screen, choose your level of encryption (128-bit or 256-bit AES Encryption) and your password. Click 'Choose'. Next, next to 'Image Format', selection 'Read/Write'. Select 'Save' to exit the window. 

Once the system finishes encrypting the folder, click 'Done'.  Exit 'Disk Utility'.

Your newly created .dmg file is secure. You can share the .dmg file just as you would any other file. Double-click at any time to open it; you'll need to type in the password to complete the process. 

adding password to Pages file

(Image credit: Future)

Encrypt files

You can also encrypt individual files through macOS. This is only possible through certain native Apple apps such as 'Notes', 'Keynote', and 'Numbers'.  

To lock a 'Notes' file, open the 'Notes' app and create a new file. Next, right-click on the note and select 'Lock Note'. Add a password to protect the file. 

For other apps, bring up a document in the supported app, then choose File > Set Password, and add a password to protect the file. 

Bryan M Wolfe

Bryan M. Wolfe is a staff writer at TechRadar, iMore, and wherever Future can use him. Though his passion is Apple-based products, he doesn't have a problem using Windows and Android. Bryan's a single father of a 15-year-old daughter and a puppy, Isabelle. Thanks for reading!

Read more
Concept art representing cybersecurity principles
Best encryption software of 2025
A computer file surrounded by red laser beams
Cover your tracks: the risk of sending unencrypted files
Frustrated unhappy laptop user girl touching head at work table with computer
Five essential tips for keeping your new PC secure
Actalis SSL encryption
Apple is right not to bow down to the UK government's encryption backdoor request - but users should still be angry
A woman sitting on a couch cross-legged and using a laptop
Essential apps and features to start getting the most out of your brand-new Mac
best Secure VPN
Secure VPN providers 2025: safe options for the best security and encryption
Latest in Macs
A mockup of the possible Apple M3 Ultra logo
Performance isn't the only reason you should buy Apple's M3 Ultra Mac Studio - it's reportedly one of the most power-efficient processors too
Mac Studio on a desk
Apple Mac Studio (M3 Ultra): the ultimate creative workstation
Mac Studio from above.
New benchmark suggests Apple's M3 Ultra may not be much faster than the M4 Max - only a minor uplift in multi-core performance
Apple Mac Mini on wood desk
Forget President’s Day sales, Apple is selling an M2 Mac mini refurb for just over $300 which could be the PC bargain of the year
Sergii Figurnyi
Apple's M5 chip is rumored to be in mass production - but we're still waiting for M4 MacBook Airs
A hand holding up the new Mac mini M4
Apple's M4 Mac mini might be one of the best Macs ever, but it has a serious issue that needs fixing right now
Latest in How Tos
Trinity Rodman #2 of the Washington Spirit crosses the ball during a game between Bay FC and Washington Spirit at Audi Field on November 10, 2024 in Washington, DC.
National Women's Soccer League 2025: How to watch NWSL games live from anywhere
AMD Radeon RX 6000 Series Graphics Card on top wooden desk beside a keyboard
How to update AMD GPU drivers
tiktok
How to edit TikTok videos
Using an Amazon Fire Stick on a Smart TV
How to use a VPN with Fire Stick
Irish boxer TJ Doheny receives an undercard bout, ahead of the WBO super welterweight world title fight in March, 2023
Ball vs Doheny live stream: how to watch the boxing from anywhere now, full undercard, start time, weigh-in results
 Facebook social media app logo on log-in, sign-up registration page
How to delete all your Facebook posts