AST Explorer & Syntax Tree Inspector
Inspect the Abstract Syntax Tree (AST) structure of JavaScript and JSON code snippets. Explore compiler tokens, expression types, and collapsible scopes.
100% Client-Side Privacy
Source Code (JavaScript / JSON)
0 tokens
Abstract Syntax Tree
Ready
Frequently Asked Questions
What dialect and specification does the parser follow?
The parser targets the ESTree specification standard adopted by ESLint, Prettier, Babel, and Acorn, mapping program declarations, statements, and expressions.
How are syntax errors surfaced?
If invalid JavaScript or JSON is pasted, the parser catches the exact token collision or premature EOF and renders an informative error banner with line and column numbers.
Can I export the full AST as JSON?
Yes. Clicking "Copy AST (JSON)" copies the complete recursive tree representation to your clipboard.
Is my code sent across the network?
No. 100% of lexing and AST traversal execute client-side in your browser.