Sorting algorithm visualizer

Watch bubble, insertion, selection, merge, quick or heap sort replay as animated bars.

Algorithm

Runs entirely in this browser. Nothing is sent anywhere.

Traces the algorithm on a shuffled 1..N array, then replays compare/swap/write steps as bars. 5–200 elements. This visualizes comparisons, not benchmark timings — real speed depends on data and machine.

How to use

  1. Pick an algorithm and array size.
  2. Shuffle, then run.
  3. Watch compares and swaps replay.

What it supports

Traces the algorithm on a shuffled 1..N array, then replays compare/swap/write steps as bars — 5–200 elements, adjustable speed. This visualizes comparisons, not benchmark timings; real speed depends on data and machine.

Related tools

Related guides