ToolNest

AES Encrypt & Decrypt

AES-GCM, CBC, CTR and ECB onlineRuns locally · nothing uploaded

Plaintext
Ciphertext
  • Padding: PKCS#7 (same as Java's PKCS5Padding).
  • Encryption runs locally with Web Crypto; keys and data are never uploaded.

Don't paste production secrets into any web tool. This runs locally and uploads nothing, but use it for debugging and learning.

Also works as:aes encryption onlineaes decryptaes-256-cbcaes ecb

How to use

  1. 1Choose encrypt or decrypt and a mode.
  2. 2Enter the key and IV (none for ECB) and their formats.
  3. 3Type plaintext or ciphertext and read the result.

FAQ

What key length do I need?

16, 24 or 32 bytes for AES-128, -192 or -256.

Decryption fails.

Mode, key, IV and ciphertext encoding must match the ones used to encrypt; GCM also fails if the data was altered.