SecuritySecurityHow-to

How to Protect Text with a Password: 5 Easy Methods

How to protect text with a password: encrypt a .txt in 7-Zip, lock a Word doc or note, or password protect a text file and share it securely.

By Rohan Nayak9 min readUpdated June 2026
How to Protect Text with a Password: 5 Easy Methods
On this page

To protect text with a password, put it in a file and lock the file: paste it into a password-protected Word doc, an encrypted .txt inside a 7-Zip or Zip archive, or a locked note in Apple Notes. For anything sensitive you send to other people, share it as a passcode-protected, trackable link instead of a raw file.

The quick methods below cover most everyday needs. A password on a file only controls who opens it once, though. After that it does nothing. The recipient can forward it, copy the text, save it forever, and you never know. If the text is a contract, a financial summary, or anything you would not want leaked, skip ahead to the better way.

How do I password protect a text file?

There is no built-in way to put a password directly on a plain .txt file. Windows and macOS do not encrypt text files on their own. So you do one of two things: wrap the text in a format that supports passwords (an encrypted archive, a Word doc, a locked note), or use a tool that encrypts the content for you. Here are the five reliable methods, fastest first.

Method 1: Put the .txt in an encrypted Zip or 7-Zip archive

This is the most universal way to password protect a text file, because the archive itself is encrypted, not just hidden behind a name.

On Windows with 7-Zip (free):

  1. Install 7-Zip if you do not have it.
  2. Right-click your .txt file, choose 7-Zip → Add to archive.
  3. Set Archive format to 7z or zip.
  4. In Encryption, type a strong password and set the method to AES-256.
  5. Tick Encrypt file names so the contents are hidden too.
  6. Click OK. Send the archive; share the password separately.

On macOS using Terminal (no install):

  1. Open Terminal and cd to the folder with your file.
  2. Run zip -e secure.zip notes.txt and enter a password twice.
  3. The resulting secure.zip is AES-encrypted and asks for the password on open.

The built-in Windows "Compressed (zipped) folder" does not offer real encryption, which is why 7-Zip is worth installing. For a full walkthrough of archive options, see our guide on how to password-protect a ZIP file.

Method 2: Paste the text into a password-protected Word document

If you already have Microsoft Word, this is the fastest option with no extra tools.

  1. Paste your text into a new Word document.
  2. Go to File → Info → Protect Document → Encrypt with Password (on Mac: Review → Protect Document).
  3. Enter a strong password and confirm it.
  4. Save as .docx. Anyone opening it now needs the password.

Word uses AES-256 encryption on modern files, so this is genuinely secure. The catch: lose the password and the document is unrecoverable, and the recipient still gets a copy they keep forever.

Method 3: Use a locked note in Apple Notes or OneNote

For short, personal text (passwords, account details, a private list), a locked note is the least hassle.

  • Apple Notes: open the note, tap the share/more menu, choose Lock, set a note password or use Face ID / Touch ID. The text stays encrypted on device and in iCloud.
  • OneNote: right-click a section, choose Password Protect this Section → Set Password.

This is fine for your own eyes. It is not built for sending text to someone else.

Method 4: Use an encrypted note or password-manager app

Dedicated apps encrypt text by default and sync it safely:

  • Standard Notes, Joplin, or Obsidian (with encryption) for longer encrypted text and notes.
  • Bitwarden or 1Password "secure notes" for short secrets like keys, recovery codes, and credentials.

These are the right home for text you need to store securely over time. For a broader comparison, see how to securely store documents.

Method 5: Use an online encryption tool (with caution)

Sites like an in-browser AES encryptor or a one-time-secret service can lock text and produce a link that self-destructs after one read. They are quick, but you are pasting sensitive text into someone else's web app. Only use a reputable, open-source, client-side tool, and never paste regulated data (health, financial, legal) into a random site.

Which method should I use?

MethodBest forReal encryptionSharing with othersTrack who opened it
7-Zip / encrypted ZipSending a .txt file securelyYes (AES-256)Email an archive + passwordNo
Password-protected WordText you have in a documentYes (AES-256)Send the .docxNo
Apple Notes / OneNote lockYour own short, private notesYes (on device)Not reallyNo
Encrypted note / password appStoring text long-termYesLimitedNo
Online encryption toolOne-off self-destructing textVariesA throwaway linkNo
Plox passcode linkSharing sensitive text or docsYes, plus controlsA trackable, revocable linkYes

The limits of password-protecting a file

All five manual methods hit the same ceiling: a password controls the first open and nothing after it.

  • You lose control the moment they open it. Once the recipient enters the password, they have the plaintext. They can copy it, screenshot it, forward the file, and keep it forever.
  • No visibility. You never learn whether they opened it, when, how many times, or whether they passed it on.
  • No revoking. Sent the wrong version or the wrong person? You cannot pull it back. The file lives on their disk.
  • Password sharing is the weak link. You still have to send the password somehow, and if it travels in the same email as the file, the lock is pointless.
  • No expiry, no watermark, no audit trail. Nothing ties the copy to the person who received it, and nothing makes it stop working later.

For a private to-do list, none of this matters. For a contract, a cap table, a customer list, or a deck, it is the whole ballgame. That is the gap Plox closes.

Plox is a secure document sharing and virtual data room platform for founders, investors and dealmakers. Instead of locking a file and hoping for the best, you put the text or document behind a link that you keep controlling after you hit send.

Paste your text into a doc (or upload the PDF / Word file directly), and Plox turns it into a secure link with real document control:

  1. Set a passcode so only people with the code can open the link. Same idea as a file password, but on a link you own.
  2. Add email verification to confirm exactly who is on the other end, not just who has the code.
  3. Require a one-click NDA before the text is shown, when the content warrants it.
  4. Turn on dynamic watermarking so every page is stamped with the viewer's email, which kills casual screenshots and leaks.
  5. Watch real analytics: who opened it, how long they spent on each page, completion percentage, with real-time notifications the moment it is viewed.
  6. Revoke or expire access anytime. Change your mind, and the link stops working, even after you have sent it.

The link never changes, so you can update the underlying file whenever you want and everyone always sees the current version. And Plox has a genuine free plan: secure links, analytics, and real-time view notifications, no credit card and no time limit. Watermarking, data rooms, and advanced security live on the paid tiers (Pro is $24/mo; see pricing for current numbers).

That is the difference between locking text once and controlling it for as long as it matters.

Frequently asked questions

Can you put a password on a plain .txt file directly?

No. Plain text files have no built-in password or encryption support on Windows or macOS. To protect a .txt, you wrap it in something that does support encryption, most simply an encrypted 7-Zip or Zip archive, or you move the text into a password-protected Word doc or an encrypted note app.

Is a password-protected file actually encrypted?

It depends on the method. Modern Microsoft Office files and 7-Zip / AES-encrypted archives use real AES-256 encryption, so they are secure if your password is strong. The old Windows "Compressed (zipped) folder" and most "lock" features that only hide a file are not encrypted and offer little real protection.

What is the most secure way to share sensitive text with someone?

Do not send the raw text or file. Share it as a passcode-protected, trackable link so you can verify who opens it, watermark each view, see exactly what they did, and revoke access if needed. A file password protects the first open; a controlled link like Plox protects the content for its whole life. Compare options in how to securely store documents.

How do I password protect text in an email?

Do not paste sensitive text into the email body, which is rarely encrypted end to end. Put the text in an encrypted attachment (a password-protected Word doc or 7-Zip archive) and send the password through a different channel, or send a passcode-protected link instead and skip the attachment entirely.

What if I forget the password?

For encrypted Office files and AES archives, a forgotten password usually means the content is unrecoverable by design. That is the point of strong encryption. Store passwords in a password manager like Bitwarden or 1Password. With a Plox link, there is nothing to lose: you reset or remove the passcode from your dashboard without touching the file.

Can I protect a whole folder of documents, not just one text file?

Yes. Encrypt the whole folder into a single password-protected 7-Zip archive, or for ongoing access put the documents in a Plox data room or protect an Excel spreadsheet and other files behind one set of controls, with per-viewer permissions and tracking across everything.

Ready to stop sending files you cannot take back? Share securely with Plox as a passcode-protected, tracked link, free to start.

Rohan Nayak

Written by Rohan Nayak · Co-founder, Plox

Rohan co-founded Plox. He spends most of his time with founders working out how to share a deck or a data room without losing control of it.

Connect on LinkedIn