S
Sorting Visualizer
Watch sorting algorithms in action with colorful animated bar charts.
Algorithms
v1.0.0
85 uses
S
Sorting Visualizer
Esc
or
Ctrl+Shift+F
to exit
Comparisons
0
Swaps
0
Status
Ready
About This Simulator
This simulator visualizes how different sorting algorithms work step-by-step. Watch Bubble Sort, Selection Sort, Insertion Sort, and Quick Sort rearrange bars in real time. Compare their speed and behavior on random, nearly-sorted, and reversed data. A great way to build intuition about algorithm efficiency.
How It Works
- 1 Choose a sorting algorithm from the dropdown
- 2 Adjust the array size and animation speed with the sliders
- 3 Click Shuffle to generate a new random array
- 4 Click Sort to start the visualization
- 5 Watch the bars rearrange — active comparisons are highlighted
- 6 Try different algorithms and array sizes to compare performance
More Simulators in Algorithms
D
Database B-Tree
AlgorithmsVisualize how databases use B-Trees for indexing — insert keys and watch the tree split and grow.
F
Finite State Machine
AlgorithmsBuild and run finite state machines — define states, transitions, and test input strings.
H
Hash Table
AlgorithmsVisualize hash table insertions, lookups, and collision resolution strategies.