Developer tool
LeetCode Tree Visualizer
Turn a list of values into a tree you can understand.
Built by Maksym Solomkin · Web

About the project
Debugging a binary-tree problem is easier when you can see the structure. This tool takes LeetCode’s level-order input and draws the nodes and branches, so you can follow a test case without sketching it by hand.
Add an expected answer to compare it with your actual output. The visualization highlights differences between nodes, helping you find the part of the tree that your algorithm built incorrectly. Leave the expected input empty to explore a single tree.
What it does
- LeetCode input format
- Paste comma-separated values with or without brackets. Use null for missing nodes.
- Compare two answers
- See differences between your actual output and the expected binary tree.
- Readable node values
- Inspect long labels in a compact drawing, with horizontal scrolling for wider trees.
- Drawn in your browser
- The tree is rendered on a canvas as you edit the input. No account is needed.
