How to encrypt text in your browser

To encrypt text, you need a password and a tool that turns the text into unreadable ciphertext, ideally with AES-256 and on your own computer. Online text-encryption sites work for a one-off message but you have to trust the page. For text you keep, use an encrypted file (7-Zip with AES-256) or an encrypted notepad such as Protect text, which encrypts every note in the browser.

Add to Chrome

Free 52 languages

What does encrypting text actually do?

Encryption takes readable text and a key and produces ciphertext, which is useless without the key. For text protected by a password, a good tool does three things:

  1. Derives a key from your password slowly, with many rounds (PBKDF2, Argon2, scrypt), so that guessing passwords is expensive.
  2. Encrypts with a modern cipher, usually AES-256-GCM, which also detects tampering.
  3. Does it on your own device, so the plain text never leaves it.

Old tricks such as ROT13, Base64 or "encoding" are not encryption: anyone can reverse them.

1. An online text-encryption tool

Search results for "encrypt text" are mostly single-page tools: paste text, type a password, get ciphertext to copy or a link to send.

  • Good for: a one-off message you send to someone who has the password.
  • Watch out: many such tools encrypt on their server, so your plain text travels to it. Prefer a page that says it encrypts in the browser, and send the password through a different channel than the message.
  • Not good for: text you want to keep and edit. You end up with a blob of ciphertext to store somewhere, and decrypting it means going back to that website.

2. Encrypt a text file with 7-Zip

For a document you keep on disk or send as a file:

  1. Install 7-Zip (Windows) or another archiver that supports 7z with AES-256.
  2. Right-click the file → 7-Zip → Add to archive.
  3. Choose the 7z format, AES-256 encryption, a strong password, and tick Encrypt file names.
  4. Delete the original plain file (and empty the recycle bin).

Limits: to read or change the text you extract it again, which leaves a plain copy on disk until you delete it. A ZIP archive with the default ZipCrypto is weak; use 7z or AES in ZIP.

3. A secure note in a password manager

Password managers such as Bitwarden or Proton Pass have secure notes: text stored in the same encrypted vault as your passwords, synced across your devices.

  • Good for: a few secrets you need on your phone and computer.
  • Limits: an account and the provider's cloud; a vault built for logins rather than for writing. Password manager or encrypted notepad?

4. An encrypted notepad in Chrome

Protect text is a notepad where every note is encrypted as you write:

  1. Install it from the Chrome Web Store and pin it.
  2. Click the icon: it opens in Chrome's side panel.
  3. Choose a password and save the recovery key shown once.
  4. Write. Each note is encrypted with AES-256-GCM before it is saved; the key comes from your password through PBKDF2-SHA-256 with 600,000 rounds.

It runs entirely on the browser's built-in Web Crypto, keeps notes only on your computer and has no network access, so the text is never uploaded. The safe locks itself after a few minutes and when your computer locks.

Limits: no sync between devices; notes live on one computer (move them with an encrypted backup file). How Protect text's encryption works.

Which one should I use?

You want to…Use
Send one secret messageAn online tool that encrypts in the browser, password sent separately
Protect a document on disk7-Zip, 7z format, AES-256, encrypted file names
Have a few secrets on every deviceA password manager's secure notes
Keep and edit private notes in Chrome, offline, no accountProtect text

How to choose a password for encrypted text

  • Long beats clever. Four to six random words are easier to remember and harder to guess than P@ssw0rd1.
  • Unique. Do not reuse a password from a website.
  • Recoverable. Keep it in a password manager or write down the recovery key and store it away from the computer. Encrypted text without its key cannot be rescued.

More: secure notes apps compared.

Frequently asked questions

What does it mean to encrypt text?

Encryption turns readable text into ciphertext that looks like random characters. Only someone with the right key, usually derived from a password, can turn it back. AES-256 is the standard cipher for this.

Is it safe to encrypt text on a website?

Only if the page encrypts in your browser and you trust it. Many online tools send your text to their server. For anything sensitive, use a tool that works offline on your own computer.

How do I encrypt a text file?

With 7-Zip: right-click the file, choose 7-Zip > Add to archive, pick the 7z format, AES-256 and a password, and tick Encrypt file names. Then delete the original file. Plain ZIP with the default ZipCrypto is weak.

What is WebCrypto?

The Web Cryptography API built into modern browsers. It gives web pages and extensions standard algorithms such as AES-GCM and PBKDF2, implemented by the browser itself. Protect text uses it for all its encryption.

Can encrypted text be decrypted without the password?

Not with AES-256 and a strong password. A weak password can be guessed, which is why slow key derivation such as PBKDF2 with many rounds matters.

Is hiding or blurring text the same as encrypting it?

No. Blurred or hidden text is only a screen privacy feature; the text itself is still readable to software. Encryption changes the stored data.

Updated: