AES Text Encryption

Encrypt and decrypt text with a password using AES-256-GCM, entirely in your browser.

Runs in your browser. Nothing is uploaded.

AES-256-GCM · key from your password (PBKDF2, 600,000 rounds)
Encrypted message

Messages can only be decrypted here, or by a program using the same format, with the same password. Nothing is sent or stored.

How to use the AES Text Encryption

  1. Choose Encrypt text or Decrypt a message.
  2. Enter a password. Use a long, unique one, and Show password helps you check it.
  3. Paste the text to encrypt, or a message starting with BT1. to decrypt.
  4. Press Encrypt or Decrypt. It takes about a second, because the password is deliberately strengthened.
  5. Copy the result. Send the encrypted message and the password through different channels.

Password-protect a piece of text

Sometimes you need to send something sensitive, like a door code, an account recovery key or a private note, through a channel you don’t fully trust, such as email, a chat app or a shared document. Encrypting it with a password means only someone with the password can read it. This tool does that in your browser, with modern, standard cryptography.

How it works

  1. A random 16-byte salt is generated, and your password is stretched into a 256-bit key with PBKDF2-SHA-256 and 600,000 iterations. That deliberately slows down anyone trying to guess the password.
  2. A random 12-byte IV is generated, and the text is encrypted with AES-256-GCM, which also adds an authentication tag that detects any tampering.
  3. Salt, IV and ciphertext are packed into one Base64URL string starting with BT1., safe to paste into email or chat.

Because the salt and IV are random every time, encrypting the same text twice gives completely different results, which reveals nothing about the content.

Using it well

  • Send the password separately, for example message by email and password by phone or text message.
  • Use a strong password. The encryption is only as strong as the password. Four or more random words are a good minimum.
  • Remember there’s no recovery. Without the password, the message cannot be decrypted, by anyone.

Everything runs locally, with your browser’s built-in Web Crypto API. Nothing is uploaded, logged or stored.

Frequently asked questions

How secure is this encryption?

Text is encrypted with AES-256-GCM, the same authenticated encryption used in HTTPS. The key is derived from your password with PBKDF2-SHA-256 and 600,000 iterations and a random salt. The weak point is the password, so use a long, random one.

Can someone decrypt it without the password?

Not with a strong password. Each attempt needs 600,000 hash rounds, which makes guessing slow. A short or common password can still be guessed, though, so use at least four random words or 16 random characters.

What if the message is changed or the password is wrong?

GCM includes an authentication tag, so any change to the message, even one character, or a wrong password makes decryption fail with an error, rather than producing garbled text.

Can other programs decrypt these messages?

The format is documented. It's "BT1." followed by Base64URL of a 16-byte salt, a 12-byte IV and the AES-GCM ciphertext and tag. A short script with any standard crypto library can decrypt it. Otherwise, use this page.

Is anything sent to a server?

No. Encryption and decryption use your browser's Web Crypto API. Neither the text nor the password leaves your device.

Tutorials