PT Privacy Tools

Text Encrypt & Decrypt

Encrypt and decrypt text locally with AES-GCM and a passphrase-derived key. Uses crypto.subtle in your browser with no uploads.

🔒 Runs entirely in your browser — nothing is uploaded

Encrypt

Decrypt

Was this tool useful? Rate it:

AES text encryption in your browser

This tool encrypts short notes, recovery hints and other plain text with the browser Web Crypto API. When you press Encrypt, the page creates a random salt, creates a random AES-GCM IV and derives a 256-bit key from your passphrase using PBKDF2 with SHA-256. The final Base64 output contains the salt, IV and ciphertext together so it can be moved as one block of text. The passphrase is not included. Nothing is uploaded to a server, and Privacy Tools cannot read, store or recover your message because all cryptographic work happens locally on your device.

How to decrypt safely

To decrypt, paste the Base64 package into the encrypted field, enter the same passphrase and press Decrypt. AES-GCM checks the authentication tag before returning text, so a wrong passphrase or modified ciphertext should fail instead of producing misleading output. Keep the encrypted block and passphrase separate when possible. For example, you might send the encrypted text through one channel and share the passphrase through another. If the passphrase is weak, reused or exposed, the encrypted message can be attacked just like any other password-protected data.

Limits of a local encryption helper

Browser encryption is convenient, but it does not replace a full password manager, encrypted disk or secure messaging app. The text appears on your screen while you type it, and anyone with access to your computer, clipboard history or browser extensions may be able to see it. Use a long unique passphrase, clear the fields when you are done and avoid encrypting very large files here. This page is best for small text snippets where local processing and a portable Base64 output are useful. For long-term storage, test a short decrypt round trip before relying on the encrypted text, then keep more than one backup of the Base64 output.

How to use

  1. Enter text and passphraseType the private message and choose a strong passphrase.
  2. EncryptAES-GCM creates Base64 output containing salt, IV and ciphertext.
  3. Decrypt when neededPaste the Base64 package and use the same passphrase to recover the original text.

Frequently asked questions

What encryption does this tool use?
It uses AES-GCM with a 256-bit key derived from your passphrase using PBKDF2 and a random salt.
Where is my passphrase sent?
Nowhere. Key derivation, encryption and decryption all run with the Web Crypto API in your browser.
What is included in the encrypted text?
The output is Base64 containing the random salt, random IV and ciphertext. You need the original passphrase to decrypt it.
Can you recover my text if I forget the passphrase?
No. Privacy Tools never sees or stores your passphrase, so lost passphrases cannot be recovered.