Skip to content
All tools
Modern cryptoRuns locallyNo account

AES decryption tool (CBC, GCM, CTR, ECB)

Decrypt AES in every common mode and key size, with hex, Base64, or UTF-8 key material and automatic PKCS#7 padding removal. Runs on Web Crypto in your browser.

Open in ctfpal

Most AES challenges fail not on the cryptography but on the plumbing: the key was hex and you pasted it as UTF-8, the IV was prepended to the ciphertext and you did not split it off, the padding was left on. Getting all four inputs in the right encoding is most of the work.

The mode tells you what to attack

ModeNeedsWeakness to look for
ECBKey onlyIdentical plaintext blocks give identical ciphertext - detectable and exploitable
CBCKey + IVPadding oracle, bit flipping via the previous block
CTRKey + nonceKeystream reuse if the nonce repeats - crib drag it
GCMKey + nonceForbidden attack on nonce reuse

ECB detection is free

ECB encrypts each 16-byte block independently, so repeated plaintext blocks produce repeated ciphertext blocks. Split any ciphertext into 16-byte chunks and look for duplicates - if you find them, the mode is ECB and the structure of the plaintext is already leaking. The famous ECB penguin image is this exact property made visible.

Related tools