Two 4ร4 byte blocks โ one holding the original input, one with a single input bit flipped โ run through identical rounds of a simplified AES-like substitution-permutation network (SPN). Watch S-box substitution, byte permutation and round-key XOR scramble both blocks, and see how quickly they become statistically unrelated.
Modern symmetric ciphers like AES protect data by repeating a simple round function โ substitution (S-box), permutation (P-box), and key mixing (XOR) โ enough times that a single flipped input bit statistically flips about half of the output bits. This simulator runs that round function on two nearly-identical blocks side by side and tracks the live "diffusion" percentage: the share of output bits that differ between them. That climb toward 50% is the avalanche effect, and it is what makes brute-force pattern analysis of a symmetric cipher's ciphertext hopeless after only a handful of rounds.
Set the round count (1โ8) to see how quickly diffusion saturates, choose which of the 8 bits in the first byte gets flipped in the second block, and adjust playback speed. Press "New block & key" to randomize the demonstration, or drag to orbit and scroll to zoom the two grids.
The strict avalanche criterion โ every output bit should flip with roughly 50% probability whenever one input bit flips โ is a formal design goal cipher designers test their S-boxes and P-boxes against; a symmetric cipher that fails this test leaks structure an attacker can exploit statistically, no brute-force key search required.