Count Headings

Count headings by level in Markdown

Input
0 words·0 chars·0 lines

Quick Access

About Count Headings

Counts the number of headings by level (H1–H6) in a Markdown document. Useful for auditing document structure.

Use cases

  • Audit markdown document structure
  • Check if a README has a single H1
  • Validate heading hierarchy
  • Count sections in documentation

FAQ

Does it count headings inside code blocks?
No — headings inside fenced code blocks are not counted.

Related tools