Markdown Heading Generator

Generate markdown headings with proper formatting.

Turn a list of headings into Markdown headings at the level you choose (H1 # to H6 ######), with an optional linked table of contents at the top. The table of contents uses GitHub-style anchors, so the links work in READMEs, wikis and most Markdown sites. Paste one heading per line; any # signs already there are replaced.

Common use cases

  • Outline a README or documentation page
  • Build a table of contents for a long Markdown file
  • Convert a list of section titles into Markdown

How to use

  1. Type headings, one per line.
  2. Choose the heading level.
  3. Tick Add a linked table of contents if you want one.
  4. Copy the Markdown.

FAQ

How are the anchor links made?

Headings are lowercased, spaces become hyphens and punctuation is removed, which is how GitHub creates anchors.

Can I preview the result?

Paste it into the Markdown preview.