Binary Tree Visualizer

Insert values, remove values, generate random trees, and watch traversals animate. Built with HTML + Tailwind + vanilla JS + SVG.

Traversal will highlight nodes in order.
Auto-balance layout
Animation speed
Tips: Use numbers for predictable ordering. Click a node to highlight it. Tap "Random" for a sample tree.
Tree canvas
Zoom with pinch/scroll on desktop/mobile
Nodes: 0
Depth: 0
Ready