Skip to content
Follow
Windows

How to Encrypt Files in Windows 11

Richard
Written by
Richard
Feb 15, 2026 Updated Jul 10, 2026 3 min read
How to Encrypt Files in Windows 11
How to Encrypt Files in Windows 11

Protecting private information starts with a few clicks. Locating the target file or folder is the first step toward securing data.

⚡ Quick Answer

Right-click a file or folder, select Properties, click Advanced, and check “Encrypt contents to secure data.” This is only available on Windows 11 Pro and higher.

What is Encryption?

Think of encryption as a digital lockbox for sensitive documents. Scrambling data ensures that only authorized accounts can read the contents. Securing files this way prevents unauthorized viewing if hardware goes missing.

Why encrypt your files? Hardware theft no longer exposes personal documents when cryptographic protection is active.

What happens when you encrypt a folder? Subordinate documents added later inherit the same cryptographic lockdown automatically.

Important Things to Know

File encryption is absent on Windows 11 Home Edition. Upgrading to Windows 11 Pro grants access to this built-in security tool.

Certain items resist encryption attempts. Compressed archives (ZIP), core system files, and mandatory operating system directories remain unencryptable.

How to Lock or Unlock Files and Folders Using Properties

Graphical menus offer the fastest route for securing individual documents.

Steps to Encrypt (Lock) a File or Folder:

  1. Find the file or folder you want to protect.
  2. Right-click on it and click Properties.
  3. In the General tab, click the Advanced... button.
  4. Check the box that says Encrypt contents to secure data.
  5. Click OK to close the Advanced Attributes window.
  6. Click OK or Apply in the Properties window.
  7. Choose if you want to encrypt just this folder or file, or also everything inside it. Then click OK.
Right-click folder and open Properties
windows 11 folder properties jpg

Protecting private information starts with a few clicks. Locating the target file or folder is the first step toward securing data. Right-clicking the target opens context options where Properties awaits selection.

Image: Right-click your folder or file and choose Properties.

Click the Advanced button in Properties
windows 11 folder advanced button jpg

Protecting private information starts with a few clicks. Locating the target file or folder is the first step toward securing data. Navigating to the General tab reveals deeper configuration choices.

Image: Click the "Advanced" button.

Check the box to encrypt contents
windows 11 encrypt folder check box jpg

Protecting private information starts with a few clicks. Locating the target file or folder is the first step toward securing data. Attribute checkboxes control the final locking mechanism.

Image: Check "Encrypt contents to secure data".

Choose to apply changes to folder and subfolders
windows 11 encryption folder option jpg

Protecting private information starts with a few clicks. Locating the target file or folder is the first step toward securing data. Applying changes cascades the security down to nested directories.

File encryption in Windows 11 offers two choices: encrypt only the selected folder, or encrypt the folder and all its contents, including subfolders. This choice helps control how much data the encryption process covers.

How to Decrypt (Unlock) a File or Folder

Reversing the process requires accessing the same menu. Clearing the attribute checkbox restores the document to an unencrypted state.

How to Lock or Unlock Files and Folders Using Commands

Command-line interfaces like Windows Terminal, PowerShell, or Command Prompt also handle cryptographic tasks.

To Open Windows Terminal:

Open PowerShell

Open Command Prompt

To Encrypt (Lock) a File

Use this command:

💻Code
cipher /e "FullFilePathHere"

Replace FullFilePathHere with your file's location. For example:

💻Code
cipher /e "C:\Users\UserName\SecretDocument.txt"

To Decrypt (Unlock) a File

Use this command:

💻Code
cipher /d "FullFilePathHere"

Example:

💻Code
cipher /d "C:\Users\UserName\SecretDocument.txt"

To Encrypt (Lock) a Folder and Everything Inside

Use this command:

💻Code
cipher /e /s:"FullFolderPathHere"

Example:

💻Code
cipher /e /s:"C:\Users\UserName\SecretDocument"

To Decrypt (Unlock) a Folder and Everything Inside

Use this command:

💻Code
cipher /d /s:"FullFolderPathHere"

Example:

💻Code
cipher /d /s:"C:\Users\UserName\SecretDocument"

Summary

Safeguarding private documents takes minimal effort. Locking sensitive records thwarts snooping attempts during hardware theft. This foundational security measure defends data integrity against unauthorized entry.
  • 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!

Does 🪟 Windows 11 have file encryption?

Encrypted File System isn't available on Windows 11 Home Edition. Migrating to Windows 11 Pro solves this limitation for those needing robust disk security.

Was this guide helpful?

100% of readers found this helpful (1 votes)

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Disable Command Prompt in Windows 11
Windows How to Disable Command Prompt in Windows 11
How to Delete Files and Folders in Windows 11
Windows How to Delete Files and Folders in Windows 11
How to Rename Files and Folders in Windows 11
Windows How to Rename Files and Folders in Windows 11
How to Show Encrypted NTFS Files in Color
Windows How to Show Encrypted NTFS Files in Color

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *