Tested tool guide
Tested browser tools
Checked August 15, 2026
What AST Explorer does, with a checked example
Paste a snippet of JavaScript, TypeScript, or Python and this tool runs it through that language's parser to produce that parser's abstract syntax tree, then lets you click through nodes to see their type and fields. People often assume there is one universal AST shape; in practice Babel, Acorn, and the TypeScript compiler emit different node names and structures for the same JavaScript, and Python's ast module is a different format again, so a tree that looks right here may not match what your target library actually consumes.
Worked example
A concrete input and expected output from the current implementation.
->
Expected output
Program
└─ VariableDeclaration (kind: "const")
└─ VariableDeclarator
├─ id: Identifier (name: "x")
└─ init: Literal (value: 1, raw: "1") A const declaration parses as one VariableDeclaration statement holding one VariableDeclarator, whose id is the bound identifier x and whose init is the literal 1 this ESTree-style layout is what Acorn- and Espree-based tools produce for this line.