How to Encrypt a File in Windows 11 (and Windows 10)

Windows can encrypt a single file from its Properties dialog. Here are the steps, what the protection covers, and how to avoid locking yourself out.

Digital illustration of a glowing blue padlock beside a code panel, charts and a globe, with a title asking how file encryption works.
In this article

Yes, you can encrypt a file in Windows with the built-in encryption feature, and Microsoft’s instructions cover both Windows 11 and Windows 10. [1] It takes a few clicks in File Explorer, with no extra software. Related reading: How to Encrypt a Text File in Windows 11 and 10.

This article walks through how to encrypt a file in Windows 11 step by step, then shows how to tell the file is protected and how to undo it. It also covers what the built-in option does not protect against, because it works differently from a password you type in. Along the way you’ll see why backing up first matters, since losing access can mean losing the file. Learn more in How to Secure a File With a Password in Windows.

Windows 11 is the focus. Where Windows 10 differs, or where its end of support matters, you’ll find a note.

What should you know before you encrypt a file?

Built-in Windows encryption protects a file through your Windows account, not through a separate password you type each time you open it. Once the file is encrypted, you open it normally while signed in to your account, and other accounts on the PC cannot read it. That is a different model from a password on a Word document or a zip file.

The method is the Encrypting File System (EFS), and you reach it from the file’s Properties window. [2] Microsoft’s instructions for encrypting a file or folder list both Windows 11 and Windows 10 as applicable. [1]

Edition availability

Not every Windows edition necessarily offers this option. Before you start, open Microsoft’s “How To Encrypt a File or Folder” support page and check the notes for your edition. If the encryption checkbox is missing or greyed out in your file’s properties, your edition is the likely reason.

Other options

Account-based encryption is only one choice. If you need a password you can share, a password on an Office document or an archive tool such as a zip utility is often a better fit. Those routes are covered in the related articles on password protecting files, so this article stays with built-in encryption.

Windows 10 and Windows 11

Windows 11 is the focus here. Windows 10 is past its end of support, so it no longer gets regular updates from Microsoft, and moving to Windows 11 is worth planning if your PC can run it. The encryption steps themselves are covered for both versions on Microsoft’s page. [1]

How do you encrypt a file step by step?

Encrypting a single file takes about a minute through File Explorer’s file properties. Do the backup first, then follow the numbered steps.

Safety first: copy the file to a separate drive, such as a USB drive or external disk, before you encrypt it. If Windows prompts you to back up your encryption key or certificate, do it and store the backup somewhere other than your PC. Losing access to the key can mean losing the data.

  1. Right-click the file and select Properties from the context menu. [2]

  2. On the General tab, click the Advanced button. [2]

  3. Check the Encrypt contents to secure data box, then click OK. [2]

  4. In the Properties dialog box, click OK. [2]

  5. If an Encryption Warning appears, pick one of two options: Encrypt the file and the parent folder, or Encrypt the file only. [2]

For a single file, “Encrypt the file only” is usually the better fit. Choosing the parent folder option also encrypts the folder that holds the file, which is more than you asked for. [2]

If you see a prompt to back up your key, follow it before you close the window.

These steps apply to both Windows 11 and Windows 10. [1]

How can you tell the file is encrypted?

Once you apply encryption, Windows gives you a visible sign in File Explorer, and you can reopen the same settings to double-check or reverse it.

Look for the indicator in File Explorer

In File Explorer, look at the file’s icon. Encrypted files typically show a small padlock overlay on the icon, though this depends on your view settings and Windows version. If you don’t see one, use the second check below instead, because the checkbox is the reliable test.

Reopen Advanced Attributes

The most dependable check is to look at the setting you changed. Follow the same path you used to turn encryption on:

  1. Right-click the file and select Properties. [2]

  2. On the General tab, click Advanced. [2]

  3. Look at the Encrypt contents to secure data checkbox. [2]

If the box is checked, the file is encrypted. Click Cancel to close both windows without changing anything.

Decrypt the file when you no longer need protection

To turn encryption off, reverse the process. Open Properties, click Advanced, and clear the Encrypt contents to secure data checkbox. [2]

Then click OK in the Advanced Attributes window and OK again in Properties. [2] Reopen Advanced Attributes afterward and the box should be empty, which tells you the file is back to normal.

Decrypt a file before you move it somewhere you want others to open it, such as a shared drive or a different PC. A decrypted file is readable by anyone who can reach it, so only do this when you are comfortable with that.

What does built-in file encryption not protect against?

Built-in encryption keeps other accounts out of your file, but it does not stop someone who is already signed in as you. Think of it as a lock tied to your Windows account, not a lock on the file itself.

Someone signed in as you

If a person uses your unlocked PC or knows your Windows sign-in, they open the file like any other. The file only appears locked to other user accounts on the same computer. A shared family PC is a good fit; a laptop you leave unlocked at a coffee shop is not.

Copying and emailing

Protection can be lost or broken once the file leaves its original location. The encryption method used here is the Encrypting File System (EFS), and the steps for it are the same ones you use in File Explorer: Properties, then Advanced, then the “Encrypt contents to secure data” checkbox [2]. That attribute belongs to the file on the drive where you set it. Copying the file to some other drives, or attaching it to an email, may strip the protection or leave a copy that cannot be opened as expected.

If you need a file to stay protected after you move it, test with a harmless copy first and confirm the recipient can open it.

Not a password to share

Windows does not give you a password to hand to someone. Access depends on your account and its encryption certificate, so there is nothing you can text or email to a colleague so they can open the file [1]. If you need to send a protected file to another person, a password-based method is a better match, and the later section on other ways covers that.

Are there other ways to encrypt a file?

Yes. If you need a password instead of tying access to your Windows account, a third-party encryption program can do the job. These programs convert data into unreadable code so that only authorized people can open it. [3] Popular options include VeraCrypt, 7-Zip, and AxCrypt. [3]

When a third-party tool makes sense

These tools are most useful when you need to share a file with someone else. The recipient can open it with the password you chose, so they don’t need access to your Windows account. [3] Send the password separately, for example by phone, rather than in the same message as the file.

How these programs generally work

The exact wording differs from program to program, but the process is similar. [3]

  1. Download and install the program you picked.

  2. Open it and look for an option to encrypt files or create a secure container.

  3. Select the file or files you want to protect.

  4. Choose a password that mixes letters, numbers, and special characters.

  5. Click the encrypt or create button to finish.

Afterward, the files can only be accessed with the password you chose. [3] If you forget it, assume the file is gone, so store it in a password manager.

Choosing a tool

Pick a program that fits your needs and comes from a reliable source. [3] A single file you email once calls for something simple, while a set of private files on your PC may suit a secure container better. For a closer comparison of password-based methods and how recovery works, see the sibling article on encrypting a file with a password.

Common questions about encrypting files

Will I lose the file if I reinstall Windows?

Possibly, yes. Built-in encryption is tied to your Windows account rather than to a separate file password, so a fresh install creates a new account that cannot open the file on its own. The safest approach is to keep a backup of the file on a separate drive and a backup of your encryption key or certificate, which Windows prompts you to save. Without that key, the data may be unreadable.

Can I encrypt a whole folder instead?

Yes. The same Microsoft procedure covers both a file and a folder. [1] You right-click the folder, open Properties, click Advanced, and check the Encrypt contents to secure data box. [2]

For a folder, Windows then shows a Confirm Attribute Changes dialog where you choose how far the change applies. [2] A folder is handy when you keep related documents together, such as a “Taxes” folder, because you set it up once instead of file by file.

Does encryption slow down my PC?

For everyday use, you are unlikely to notice much. Windows encrypts and decrypts the file for you when you sign in and open it, so there is no extra password step. Larger files or older, slower computers may feel a small delay when opening or saving, but this depends on your hardware, and Microsoft’s page gives no figures for it. If a particular folder feels sluggish, encrypt only the files that truly need protection rather than whole folders of everyday items.

Wrapping up

The one thing to remember: encryption protects your file only as long as you can still get in, so back up the file and your encryption key before you rely on it. A copy on a separate drive and a saved key mean a reinstall or a lost account does not cost you the data.

Your next step is simple. If the file stays on your own PC, use the built-in option from Properties and Advanced. If you need to send it to someone, pick a password-based tool instead, because they can enter a password and a Windows account cannot be handed over.

Sources

  1. How To Encrypt a File or Folder

  2. How to encrypt and decrypt a file or folder using Encrypting File System (EFS)

  3. Programs to encrypt files ▷➡️