Markdown Linter Online

Lint Markdown with the markdownlint rules (MD001–MD060), auto-fix what can be fixed, generate a table of contents and find broken internal links.

Free tool: 20 requests per minute.

Result

Press “Run” to see the result.

Send Markdown as markdown, a file, a URL (e.g. a raw README) or a .zip of docs. You get every problem from markdownlint's rule set — heading levels, list indentation and style, line length, blank lines around headings / lists / fences, bare URLs, empty links, images without alt, code blocks without a language, link fragments… — with line, column, rule id and alias, description and a link to the rule docs. Configure with config (the usual .markdownlint.json object), preset=relaxed, disable / enable lists or line_length.

fix=1 applies every automatic fix (repeated until stable) and returns the fixed text plus what remains. toc=1 builds a table of contents with GitHub-style anchors (toc_min / toc_max levels) and, with insert_toc=1 or fix=1, writes it between <!-- toc --> and <!-- tocstop --> markers. Internal links are checked: #anchors against the headings (with GitHub duplicate suffixes) and explicit ids, undefined reference links, and — for a ZIP — relative links to files and to headings inside other files.

Uses markdownlint (MIT). Custom JavaScript rules are not accepted.

Use this in your code

curl -X POST "https://apibox.io.vn/v1/markdown-lint" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"markdown":"# Project\n\n<!-- toc -->\n<!-- tocstop -->\n\n## Install\nRun it:\n```\nnpm i\n```\n## Usage\nSee [install](#install) and [api](#api).\n","fix":true,"toc":true}'

API documentation → Get a free API key

FAQ

Which rules are applied?

All markdownlint rules (MD001–MD060) with their defaults; pass a config object like your .markdownlint.json or preset=relaxed for prose-friendly settings.

Are the line numbers from my original text?

Yes, unless fix=1 or a TOC was inserted: then they refer to the returned fixed text.

Can I lint a whole docs folder?

Yes, upload it as a ZIP (up to 300 Markdown files); links between files are checked too.