SEC

AES Text Encrypt & Decrypt

Lock text with a password using AES-256-GCM, and open it again later. Runs in your browser; nothing is sent or stored.

TEXT TO ENCRYPT
ENCRYPTED TEXT (BASE64)

          

Your text and password stay in your browser and are never sent anywhere. If you forget the password, the text cannot be recovered by anyone, including this site.

What this tool does

It locks a piece of text with a password so that only someone who knows the password can read it. The result is a block of letters and numbers that you can store in a note or send in a message. To read it again, paste it back in, choose Decrypt, and enter the same password. It uses AES-256-GCM, a standard cipher that is also used by password managers and secure messaging, and it runs entirely in your browser.

How to use it

  1. Enter a password. Longer is better; a few random words or a generated password works well.
  2. With Encrypt selected, type or paste your text and press Encrypt.
  3. Copy the encrypted text. To read it later, switch to Decrypt, paste it in, enter the same password and press Decrypt.

How it works

The password is not used as the key directly. It is stretched into a 256-bit key with PBKDF2 using SHA-256 and 600,000 rounds, which makes each password guess slow for an attacker. A fresh random salt and a fresh random nonce are made for every encryption, so encrypting the same text twice gives two different results. AES in GCM mode also adds an authentication tag, so any change to the encrypted text, or a wrong password, is detected instead of producing garbage.

The output is Base64 of these bytes, joined in order: a version byte (1), the 16-byte salt, the 12-byte nonce, then the ciphertext with its 16-byte tag. This is documented so that the text can be opened by your own code, but other online tools use different layouts and will not open it.

Good to know

  • The password is the weak point. Strong encryption does not help if the password is short or guessable. Make one with the Password Generator and check it with the Password Strength Checker.
  • There is no recovery. Nothing is stored, so a lost password means the text is gone for good.
  • It hides the content, not the fact that you have a secret. The length of the text is visible, plus a small fixed overhead.
  • Use a tested password manager for important secrets. This is a handy tool for notes and short messages, not a replacement for audited software for things such as full-disk or file encryption.
  • Text only. It encrypts what you type or paste. It does not encrypt files.

Frequently asked

Is my text or password sent to a server?

No. Encryption and decryption happen in your browser using the Web Crypto feature built into it. Nothing is uploaded or stored.

Which encryption does it use?

AES-256-GCM, with the key made from your password by PBKDF2 (SHA-256, 600,000 iterations) and a random salt and nonce for every message.

Why does encrypting the same text give a different result each time?

A new random salt and nonce are made every time. This is intended, and it stops anyone from spotting that two messages are the same.

Why do I get a 'could not decrypt' message?

Either the password is wrong, or the encrypted text was changed or cut off, for example by a messaging app. GCM detects both and refuses to return text, so you never get wrong output.

Can I decrypt this text in another program?

Only with code that follows the layout described above. Different tools use different formats, so text made elsewhere will not open here, and the reverse is also true.

Last updated: October 2026