Markdown to JSON
Parse Markdown into a JSON token tree.
Example
# Hi
[
{ "type": "heading_open", "tag": "h1" },
{ "type": "inline", "content": "Hi" }
]
What it keeps
- The markdown-it token stream as JSON
- Every block and inline token, in order
- Ideal input for tooling and analysis
Where it struggles
- It's a token list for programs, not a document format
- It doesn't convert back to Markdown
Frequently asked questions
What is this for?
Feeding Markdown into build tools, linters or your own scripts that need the parsed structure.
Can I convert the JSON back to Markdown?
No — this is a one-way parse into a token tree for tooling.
Is my file uploaded?
No — parsing happens in your browser.