Markdown AST Explorer & Token Tree Inspector

Parse, traverse, and debug Markdown Abstract Syntax Tree (AST) tokens, block types, and node hierarchy in real time.

Presets:
Root Tokens15
Headings3
Code Blocks1
Tables1
Lists1
Source Markdown637 characters
AST Tokens (15)
Complete Guide & Overview

Markdown AST Explorer & Token Tree Inspector

Inspect, traverse, and debug Markdown Abstract Syntax Tree (AST) tokens and node hierarchy in real time.

How to Use the Markdown AST Explorer & Token Tree Inspector

1

Input Content

Paste or compose your markdown or source data into the input editor.

2

Customize Settings

Select formatting options, syntax modes, or display options.

3

Copy or Download

Copy the processed output to your clipboard or download the generated file.

Key Features & Capabilities

Live CommonMark and GitHub Flavored Markdown (GFM) tokenization via Marked Lexer.
Hierarchical inspection of headings, code blocks, pipe tables, lists, and HTML tags.
Token type filtering and instant keyword search across node metadata.
1-click export of complete AST JSON for compiler development and static site generator plugins.

Frequently Asked Questions

What is an Abstract Syntax Tree (AST) in Markdown?

An Abstract Syntax Tree is a tree representation of the syntactic structure of Markdown text. Instead of treating text as a flat string, the AST breaks it down into typed semantic tokens such as headings, code blocks, lists, and blockquotes with associated metadata.

Which Markdown specification does this AST generator use?

The AST explorer is powered by Marked's Lexer, adhering strictly to GitHub Flavored Markdown (GFM) and CommonMark specifications.

Is any document content sent to external servers?

No. All AST parsing and JSON tree generation occurs 100% locally inside your browser memory. Your documents remain completely private.