Back to all tools

Table of Contents Generator

Web Scraping

Generate a table of contents from page headings. Get markdown and HTML output with anchor links.

Unlock Full Power with Krawly Pro

Get access to all 150+ tools with higher limits. Start with 100 free credits — no credit card required.

Use via API
Table of Contents Generator — cURL
curl -X POST "https://krawly.io/api/v1/tools/toc-generator/" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"url": "https://example.com"}'
150+ Tools Full API Access Bulk Processing Priority Support

What is Table of Contents Generator?

Table of Contents Generator extracts all headings (H1-H6) from a webpage and creates a hierarchical table of contents with anchor links, available in both Markdown and HTML formats.

Use Cases

  • Generate page outlines
  • Check heading hierarchy
  • Create navigation menus
  • Audit content structure

Key Features

H1-H6 extraction
Slug generation
Markdown output
Heading level indicators

Frequently Asked Questions