Skip to main content
Interactive Recursion Visualization

Visualize Recursion,
Step by Step

Write any recursive function, execute it, and watch the full call tree unfold — with step-by-step animation, memoization toggles, and node-level inspection.

Open Visualizer

Controls

Configure how the recursion visualizer runs: animation, memoization, theme, and more.

Step-by-stepInstant
Memo on Memo off

Understand recursion faster

A complete toolkit for visualizing call stacks, subproblems, and execution flow.

Step-by-step execution

Play through every recursive call in order, so you can see exactly how the recursion unfolds over time.

Templates & custom code

Start from curated recursion templates or write your own JavaScript function and parameters directly in the editor.

Memoization insights

Toggle memoization on and off to compare total calls, memo hits, and performance for overlapping subproblems.

Interactive recursion tree

Pan, zoom, and click nodes in the recursion tree to inspect arguments, depth, and return values.

Execution stats & details

See total calls, depth, execution time, and final result, plus rich node details in the sidebar.

Ready to debug?

Bring your recursive ideas to life.

Start visualizing calls, subproblems, and base cases with an interactive recursion workspace.