alg0.dev is an interactive algorithm visualizer where classic algorithms come to life through step by step animations, controls to pause or advance, and access to the underlying code.

Learn algorithms and data structures interactively.
Step-by-step visualizations, real-time code highlighting and detailed explanations. All in your browser, no setup needed.
A free, interactive web tool to learn algorithms through animated step-by-step visualizations. Every algorithm includes:
SortingBubble Sort · Selection Sort · Insertion Sort · Quick Sort · Merge Sort · Heap Sort · Counting Sort · Radix Sort · Shell Sort |
Data StructuresStack · Queue · Linked List · Hash Table · Binary Search Tree · Heap |
GraphsBFS · DFS · Dijkstra · Prim · Topological Sort |
SearchingBinary Search · Linear Search · Jump Search · Interpolation Search |
Dynamic ProgrammingFibonacci · 0/1 Knapsack · LCS (Longest Common Subsequence) |
BacktrackingN-Queens · Sudoku Solver · Maze Pathfinding |
Divide & ConquerTower of Hanoi |
ConceptsBig O · Recursion · Two Pointers · Sliding Window · Memoization · Greedy vs DP · Space Complexity |
| Key | Action |
|---|---|
Space |
Play / Pause |
→ |
Next step |
← |
Previous step |
C |
Code tab |
E |
Explanation tab |
Plus: speed control (5 levels), skip to start/end, and resizable panels.
prefers-reduced-motionBuilt with Astro + React + Tailwind CSS + Monaco Editor.
MIT — created by @midudev