Password protect private Notepad text files on Windows

Use GiliSoft File Lock Pro when a TXT file should stay local but require controlled access, remain hidden, resist unwanted changes, or be exported as an encrypted package.

  • Lock or hide individual TXT files and complete folders
  • Allow viewing while preventing editing, renaming, moving, or deletion
  • Create encrypted GFL or self-extracting EXE output when needed
Password protect a Notepad text file with GiliSoft File Lock Pro

How to Password Protect a Notepad Text File in Windows 11/10

Updated on July 23, 2026   |   By GiliSoft Editorial Team

Windows Notepad can create and edit plain-text files, but it does not include a command for assigning an opening password to a TXT file. To protect one, you need to control access to the original file, encrypt it for the current Windows account, or place a protected copy inside an encrypted archive.

This guide explains all three approaches and shows what each one actually protects. For a file that is edited regularly and should remain in its normal folder, GiliSoft File Lock Pro is the most direct option.

Which Notepad File Protection Method Should You Use?

GiliSoft File Lock ProLocks, hides, change-protects, or encrypts TXT files while keeping control in one Windows application.
Windows EFSEncrypts a file for the current Windows account and certificate on supported Windows editions and NTFS drives.
Password archiveCreates a separate ZIP, 7Z, or RAR package that asks for a password before extraction.
MethodPassword behaviorWhat happens to the original TXT fileBest use
File Lock ProManaged through the File Lock Pro master passwordCan remain in place, be hidden, be locked, or be exported as an encrypted packagePrivate notes used regularly on a Windows PC
Windows EFSNo separate opening password; access follows the Windows account and encryption certificateEncrypted in its current NTFS locationAccount-bound protection on a supported Windows edition
7-Zip or WinRAR archiveArchive asks for a separate passwordUsually remains unprotected unless removed after verifying the archiveSending or storing a protected copy

Method 1: Lock or Encrypt a Notepad File with GiliSoft File Lock Pro

File Lock Pro provides several protection modes for plain-text files. Choose Locking File when the file should remain visible but unavailable without authorization, Hiding File when it should disappear from ordinary Explorer and search views, or Protecting File when reading is allowed but unwanted editing and file operations should be blocked.

  1. Open GiliSoft File Lock Pro and enter the master password.
  2. Choose Local Disk > Locking File.
  3. Select Lock Files/Folders, then add the Notepad TXT file or the folder containing several private notes.
  4. Apply the lock and test the TXT file from File Explorer.
Lock a Notepad TXT file with GiliSoft File Lock ProAdd a TXT file, folder, or local drive to the password-controlled locking list.

Choose another mode when the goal is different

Hide the text fileUse Local Disk > Hiding File when the note should not appear in ordinary folders or Windows search.
Prevent changesUse Protecting File when authorized users may read the note but should not edit, rename, move, copy, or delete it.
Create encrypted outputUse File Encryption to create a GFL package or self-extracting EXE for protected storage or delivery.

One tool for TXT files, folders, and drives

The same File Lock Pro password can manage private notes alongside documents, pictures, local folders, external drives, and shared folders without moving them to cloud storage.

GiliSoft File Lock Pro box

Method 2: Encrypt a Notepad File with Windows EFS

Encrypted File System (EFS) is built into supported Windows editions. It encrypts the selected TXT file for the current Windows user account rather than showing a separate password prompt each time the file opens.

  1. Right-click the Notepad TXT file and choose Properties.
  2. On the General tab, select Advanced.
  3. Enable Encrypt contents to secure data, then select OK and Apply.
  4. When Windows asks what to encrypt, choose Encrypt the file only or include its parent folder.
  5. Back up the EFS certificate and recovery key when Windows offers the option.
Important: EFS depends on the Windows account and encryption certificate, requires an NTFS location, and is not available in every Windows edition. It is account-based encryption, not a separate password attached directly to the Notepad file.

Method 3: Put the TXT File in a Password-Protected Archive

7-Zip, WinRAR, and similar tools can place a Notepad file inside an encrypted archive. This is useful when you need a protected copy for email, USB storage, or long-term archiving.

  1. Right-click the TXT file and choose the archive tool's Add to archive command.
  2. Select ZIP, 7Z, or RAR and open the password or encryption settings.
  3. Enter a strong password. Enable file-name encryption when the selected format supports it.
  4. Create the archive, close it, and reopen it to verify the password before relying on it.
  5. Remember that the original TXT file is still present unless you remove or protect it separately.

Which Option Is Best for a Private TXT File?

Use File Lock Prowhen the text file is opened often, should stay in its normal folder, or needs hiding, locking, change protection, and encryption choices.
Use Windows EFSwhen all access should follow one Windows account on a supported edition and you can safely back up the encryption certificate.
Use an encrypted archivewhen you need a portable protected copy for storage or transfer and do not mind extracting it before editing.
Do not rely on Notepad alonebecause Notepad has no built-in password field, secure vault, or per-file access-control setting.

Frequently Asked Questions

Can Notepad itself password protect a TXT file?

No. Notepad saves plain-text files and does not provide an Encrypt with Password command. Protection must come from Windows, an archive tool, or file-locking software.

Does changing a TXT file extension protect its contents?

No. Renaming .txt to another extension only changes how Windows identifies the file. The text can still be recovered by opening it with a compatible editor.

Can I lock several Notepad files at once?

Yes. Add the folder containing the TXT files to File Lock Pro, or select multiple files when creating an encrypted archive.

What if I forget the File Lock Pro password?

Set and maintain a valid recovery email in the application settings, and keep purchase and recovery details in a separate safe location.

Keep private notes local and password controlled

Use GiliSoft File Lock Pro to lock, hide, protect, or encrypt Notepad TXT files together with the other private files on your Windows PC.

View GiliSoft File Lock Pro