Loading Shrinkify...
Loading Shrinkify...
Animate sorting operations step by step to build intuition for comparisons, shifts, and swaps.
Visual practice for graph traversal, sorting, complexity understanding, and interview prep.
Step through sorting algorithm changes to build intuition.
Step 1 of 17
23
5
99
12
7
41
3
18
Sorting algorithms look identical in pseudocode until you see them move. The Sorting Visualizer animates Bubble, Selection, Insertion, Merge, Quick, and Heap sort across live data arrays — making comparison counts, swap patterns, and divide-and-conquer splits immediately intuitive.
Pair visualization with the Complexity Cheatsheet to connect visual rhythm with formal Big-O analysis.
Quick Sort is typically fastest on average (O(n log n)) due to cache efficiency, but Merge Sort guarantees O(n log n) worst case.
A sort that preserves the original relative order of equal elements. Merge Sort is stable; Quick Sort and Heap Sort are not by default.
Its simplicity makes the swap mechanism easy to understand and visualize, even though it is O(n²) and impractical at scale.
Check out our technical guides to learn more about how browser-side processing works.
Read Glossary