Skip to content

DSA Visualizer · Data structures & algorithms

Watch algorithms think.

Step through every comparison, swap, split and rotation — with the code that does it.

Take the tour

best with sound on
An 83-second tour of the DSA Visualizer: the three-pane workspace, merge sort, a sorting race, linked lists, infix to postfix, building a heap, an AVL rotation, a B-tree split, Dijkstra and three more graph algorithms side by side, and the playback controls and code tabs.

Visualizers

8 topics

Every algorithm, one click away

Questions

What is a DSA visualizer?

A DSA visualizer animates data structures and algorithms one step at a time, so you can see every comparison, swap, pointer change or rotation instead of imagining it. This one also highlights the matching line of code and explains why each step happens.

Which algorithms and data structures can I visualize?

Eight sorting algorithms (bubble, selection, insertion, shell, counting, radix, merge, quick), stacks, queues, circular queues, deques, linked lists, binary heaps and heap sort, binary search trees, AVL trees, B-trees, and graph algorithms: BFS, DFS, Dijkstra, Bellman-Ford, Kruskal, Prim, topological sort and strongly connected components.

Can I use my own input?

Yes. Every visualizer accepts your own values (whole numbers from 0 to 999), offers presets and random data, and you can build your own graph by clicking. Leave the box empty and it picks a random value for you.

Does it show real code?

Yes. Each page shows pseudocode that highlights the line being executed, plus tested implementations in Python, C++, Java and JavaScript that you can copy.

Is it free?

Yes — it is free, needs no sign-up, and runs entirely in your browser.

Can AI agents use this site?

Yes. Pages expose WebMCP tools so browser agents can run visualizations directly, and a Markdown copy of every explanation is listed in /llms.txt.