All tools Developer

Text Encryptor

Encrypt and decrypt text with a passphrase using AES-256-GCM.

If you lose the passphrase, the text cannot be recovered. Keep it somewhere safe.

Everything runs locally in your browser — your text never leaves this page.

Runs in your browser. Nothing you open or type here is uploaded.

How to use

  1. Type or paste the text to encrypt.
  2. Enter a passphrase and click Encrypt.
  3. Copy the encrypted payload, a single base64 string.
  4. To decrypt, paste the payload, enter the same passphrase and click Decrypt.

Details

Text is encrypted with AES-256-GCM. The key is derived from your passphrase with PBKDF2 (SHA-256, 100,000 iterations) and a fresh 16-byte random salt, and each encryption uses a new random 12-byte IV, so encrypting the same text twice produces two different payloads. The payload packs the salt, the IV and the ciphertext into one base64 string that can be stored or sent anywhere; without the passphrase it reveals nothing. Everything runs with the Web Crypto API in your browser — the passphrase and the plaintext never leave the page.

  • If you lose the passphrase, the text cannot be recovered. There is no reset and no back door.
  • A wrong passphrase and a corrupted payload fail in the same way: decryption does not succeed.
  • The payload is plain base64, so it survives being pasted into chats, notes and emails unchanged.

Common questions

What encryption algorithm is used?

AES-256-GCM, with the key derived from your passphrase using PBKDF2 (SHA-256, 100,000 iterations) and a random salt. Each encryption also uses a fresh random IV, so the same text encrypts differently every time.

Can I decrypt without the passphrase?

No. The passphrase is never stored or transmitted, and AES-256 cannot realistically be brute-forced. If you lose the passphrase, the text is gone for good.

Does my text leave my browser?

No. Encryption and decryption run entirely on your device using the Web Crypto API. Your passphrase, your text, and the payload never touch a server.

What does the encrypted payload contain?

A base64 string combining a 16-byte random salt, a 12-byte random IV, and the encrypted ciphertext. It is a single portable string you can store or paste anywhere and decrypt with the same passphrase.