FertiJourney Dev Tools 🏠← All tools

Sort Algorithm Visualizer

Hand-rolled bubble / selection / insertion / quick / merge / heap sort with canvas animation and step statistics.

Algorithm
Data
Size (10-50)
Speed (ms / step)
Comparisons
0
Swaps / writes
0
Step
0
Elapsed (ms)
0
Idle Compare Swap / write Sorted
Pick an algorithm and a data pattern (random / reversed / nearly-sorted), set array size (10-50) and step delay (ms). Start plays the precomputed operation stream step-by-step on canvas — yellow bars are being compared, red bars are being swapped or written, green bars are locked-in sorted positions. Pause / Resume / Reset / Shuffle are available at any time. The four counters show comparisons, swaps / writes, current step and total elapsed wall-clock time. All six algorithms are implemented from scratch (no library) — useful for understanding O(n²) vs O(n log n) behaviour.