This guide will show you easy steps to lock (encrypt) or unlock (decrypt) your files and folders in Windows 11, so your private information stays safe.
Encryption means changing your files into a secret code that only your computer can understand. This helps protect your files if someone else tries to open them.
When you encrypt a folder, any new files you put inside will automatically be locked too.
Note: This feature is not available on Windows 11 Home Edition. You need Windows 11 Pro or higher.
Some files cannot be encrypted, like compressed files (ZIP), system files, main folders, or files that Windows uses to keep your computer running.
How to Lock or Unlock Files and Folders Using Properties
The easiest way to encrypt or decrypt files and folders is using the Properties menu.
Steps to Encrypt (Lock) a File or Folder:
- Find the file or folder you want to protect.
- Right-click on it and click Properties.
- In the General tab, click the Advanced… button.
- Check the box that says Encrypt contents to secure data.
- Click OK to close the Advanced Attributes window.
- Click OK or Apply in the Properties window.
- Choose if you want to encrypt just this folder/file, or also everything inside it, then click OK.




To decrypt (unlock) a file or folder, do the same steps but uncheck the box in step 4.
How to Lock or Unlock Files and Folders Using Commands
You can also lock or unlock files and folders using a command screen called Windows Terminal, PowerShell, or Command Prompt.
To open Windows Terminal:
To Encrypt (Lock) a File
cipher /e "FullFilePathHere"
Replace FullFilePathHere with your file’s location. For example:
cipher /e "C:UsersRichardSecretDocument.txt"
To Decrypt (Unlock) a File
cipher /d "FullFilePathHere"
Example:
cipher /d "C:UsersRichardSecretDocument.txt"
To Encrypt (Lock) a Folder and Everything Inside
cipher /e /s:"FullFolderPathHere"
Example:
cipher /e /s:"C:UsersRichardSecretDocument"
To Decrypt (Unlock) a Folder and Everything Inside
cipher /d /s:"FullFolderPathHere"
Example:
cipher /d /s:"C:UsersRichardSecretDocument"
Summary
- Encryption helps keep your private files safe from others.
- You can encrypt or decrypt files easily using Properties or commands.
- Encrypting files is a good idea if your computer is lost or stolen.
- If you have Windows 11 Home, encryption with this method is not available. Consider upgrading to Windows 11 Pro.
Stay safe and protect your data!



Leave a Reply