S
Sorting Visualizer
Watch sorting algorithms in action with colorful animated bar charts.
Algorithms
v1.0.0
45 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
P
Pathfinding Visualizer
AlgorithmsVisualize A*, Dijkstra, and BFS algorithms finding the shortest path on a grid.
B
Binary Search Tree
AlgorithmsInsert, search, and delete nodes in a binary search tree with real-time visualization.
H
Hash Table
AlgorithmsVisualize hash table insertions, lookups, and collision resolution strategies.