What is AES?

AES, the Advanced Encryption Standard, is the most widely used encryption method today. It protects HTTPS connections, Wi-Fi networks and encrypted disks, and it has been a US government standard since 2001. AES is symmetric: the same secret that locks the data also unlocks it. Its key comes in three sizes, 128, 192 and 256 bits.

Tool description

Type or paste your text into Plain text and enter a password in Secret Key. The encrypted text appears in Cipher text as you type, ready to copy. AES Mode sets the key size: AES-128, AES-192 or AES-256, which is the default.

The tool turns your password into a key with PBKDF2 (SHA-256, 100,000 iterations) and a random salt, then encrypts the text with AES-GCM and a random IV. The cipher text is a single Base64 string that holds the salt, the IV and the encrypted text. So besides the cipher text, you only need to remember the password and the AES Mode. To read the text again, use the AES Decryptor, or press the swap button to turn the conversion around.

Example

  • Plain text: Surprise party on Saturday at 4 pm. Bring balloons!
  • Secret Key: confetti-and-cake
  • AES Mode: AES-256

One run gave this cipher text. Yours will look different, but with the same Secret Key and AES Mode, both decrypt to the same text:

Mop4LBjjpgAOylZmtjnQ6LiKUMa1uVFzmWH0a/h4uqzPtGS7jkEGnOaIGFPW6KlVVzDolI+JaG0t/XgCW1/ROoYRMhvpWJZaXu5NohRtUnk1I3rnJkzxd4TXc9vl+ys=

Good to know

  • Every change to the text, the key or the mode encrypts again with a new salt and IV. So the same text and password give a different cipher text each time.
  • The encryption is only as strong as your password. Pick a long one that's hard to guess, such as a few random words, and share it apart from the cipher text, for example by phone.
  • AES-GCM seals the cipher text: if anyone changes the encrypted data, decrypting fails instead of giving wrong text.
  • Any language and emoji work, as the text is encoded as UTF-8 before it's encrypted.
  • The cipher text uses this tool's own layout. Other AES apps, such as OpenSSL, use other layouts and can't read it as is.
  • Everything runs in your browser with the Web Crypto API, so your text and password never leave your device.