Table of Contents Generator Instructions

  1. Open a local heading source, paste a Markdown outline, or select Open Sample.
  2. Choose HTML or Markdown and select Generate TOC.
  3. Review the heading tree and the anchor IDs.
  4. Download the output, or copy the TOC and apply the matching IDs to the original headings yourself.

Supports UTF-8 Markdown and HTML up to 4 MiB, pasted Markdown outlines, and standard DOCX up to 16 MiB. Output uses section anchors and leaves the original file alone.

To insert a copied TOC into another document, assign each suggested ID to its corresponding heading. Keep unique existing HTML IDs marked Keep. Apply explicit HTML IDs in a Markdown renderer that allows them. The HTML download contains a heading-only copy with its own targets.