Skip to main content
>_devtools

AST Explorer

Parse JavaScript, JSX or TypeScript and explore the syntax tree, with source ranges linked both ways.

How to use it

Parse JavaScript, JSX or TypeScript and explore the syntax tree, with source ranges linked both ways. Paste code above, select the parser and source type, then expand nodes in the syntax tree.

Example

Input: const total = 2 + 3;
Output: VariableDeclaration → BinaryExpression

Limits and behavior

  • The tree is bounded by parser token and nesting limits.
  • Parsing does not execute the source code.