Tree Visualizer
Build binary trees and step through traversals
Runs on this device · 0 B uploadedComma-separated values, LeetCode style
Visualization
Algorithms
Output log
Select an algorithm to start visualization
What does the Tree Visualizer show?
Tree Visualizer draws binary trees from a level-order array or binary search tree insertions, animates pre-order, in-order, post-order and level-order traversals, and exports SVG or PNG.
What array format does it accept?
Comma separated numbers in level order, null for a missing child, brackets optional. Values under a null parent are errors; the maximum is 255 nodes.
How are search tree duplicates treated?
They are ignored. Switching to search tree mode reinserts the values on screen, which removes duplicates and may change the tree's shape.