AES Encrypt / Decrypt
Free online AES encryption and decryption tool: CBC/ECB modes, Pkcs7/ZeroPadding, Base64/Hex output, keys stay local.
Data handling: common local tools process inputs in your browser; network queries, server execution and optional AI follow their separate data-use notes.
What is AES Encrypt / Decrypt?
AES is the most widely used symmetric cipher — API payload encryption and database field encryption are almost always AES. The classic integration pain is "the ciphertext does not match": any mismatch in mode, padding, IV or key length breaks decryption. This tool supports CBC and ECB modes, Pkcs7 and ZeroPadding, and Base64 or Hex output. All computation runs in your browser; keys never cross the network.
How to Use
- Choose encrypt or decrypt, then enter the content and key
- Select mode / padding / output encoding (matching the other system)
- View the result and copy it
FAQ
- Should I choose CBC or ECB?
- CBC is more secure (identical plaintext yields different ciphertext each time) and is the recommended default; ECB is only for compatibility with legacy systems — do not use it in new ones.
- What are the key length requirements?
- AES supports 16/24/32-byte keys (AES-128/192/256). This tool takes the key as UTF-8 bytes and, in CBC mode, uses the first 16 bytes as the IV — a convention shared by most backends.
- Why is the decrypted output garbled?
- Check item by item: key, mode, padding and ciphertext encoding (Base64/Hex) must match the encrypting side exactly — any mismatch causes failure or garbage.
Practical tutorials
- How to Choose an AES Mode: Why ECB Is Unsafe, and How CBC Differs from GCM
The famous penguin picture explains ECB's pattern leakage, a comparison of CBC/GCM/CTR on security and performance, plus practical advice on key length, IV usage, and padding.
Related Tools
Last updated 2026-09-15