Browser Labs

Avalanche Visualizer

Watch how flipping a single input bit cascades to flip ~50% of output bits.

Avalanche Effect Visualizer

Demonstrates diffusion: a single-character change flips many output bits in a secure hash. Edit either side and observe the bit-difference grid and statistics.

SHA-256
-
SHA-256
-
different bits: 0 • 0.00% (of 256 bits)
01
Why This Matters & 30-Second Experiment
Tap to expand plain-English guide & CLI command
Why This Matters

Named after Claude Shannon’s principle of diffusion, the Avalanche Effect ensures that flipping even 1 bit of input flips roughly 50% of all 256 output bits so attackers cannot tell when two inputs are close.

Try This 30-Second Experiment
  1. Compare the two prefilled strings where only the final character differs.
  2. Check the bit-difference counter under the 256-bit grid; it lands right around 128 bits (~50%).
  3. Change a single uppercase letter to lowercase and observe how the entire 256-bit grid reshuffles unpredictably.
Compare two nearly identical strings in Python 3
python3 -c "import hashlib; print(hashlib.sha256(b'dog').hexdigest()); print(hashlib.sha256(b'dof').hexdigest())"
02
Visual Diagram, Guide & History
Tap to expand visual architecture & references
How It Works Visually
"hello""hellp" (+1 bit)2cf24dba5fb0a30e...769a2c44d8e10b91...~50% of bits flipped