Paste your content with headings
Output Format
GENERATED TABLE OF CONTENTS
Paste content with headings above to generate a table of contents
Headings Found
0
H2 Sections
0
H3 Subsections
0
Output Format
HTML
How the Table of Contents Generator Works
A table of contents lets readers see what a long article covers and jump straight to the part they came for. Paste your article as HTML or Markdown and this generator pulls out its headings, keeps their hierarchy, and writes a list of anchor links you can copy as HTML or Markdown. It also previews the headings it found and counts your H2 sections and H3 subsections, which makes it a quick outline check too.
What it reads. HTML headings, h1 to h6, written with the opening and closing tag on the same line; any tags inside a heading, such as bold or links, are stripped from its text. If the input contains no HTML heading at all, it reads Markdown instead: lines that start with one to six # characters followed by a space. When both are present, only the HTML headings are used. Text pasted straight from Google Docs or Word arrives without heading markup, so download the document as HTML or Markdown first, or convert it with the HTML to Markdown converter.
How anchors are made. Each heading becomes a slug: lowercased, with everything except the letters a–z, digits, spaces and hyphens removed, spaces turned into hyphens, repeated hyphens merged, and hyphens trimmed from the ends. "What Is SEO? (2026 Guide)" becomes #what-is-seo-2026-guide. Two headings with the same text get the same anchor, and headings written in non-Latin scripts lose those letters, so rename duplicates or set those anchors by hand.
The step most people miss: the generator writes the links, not the targets. A link to #what-is-seo-2026-guide only jumps if the matching heading carries id="what-is-seo-2026-guide". In the WordPress block editor, select the heading and paste the slug into the HTML anchor field under Advanced. Many Markdown renderers and static site generators add heading IDs automatically, but each uses its own slug rules, so after pasting, click one link with symbols or accents in it to confirm it lands.
Worked example. Paste four Markdown lines: # Keyword Research Guide, ## What Is Keyword Research?, ### Search Intent and ## How to Find Keywords. The Markdown output is a four-item list: [Keyword Research Guide](#keyword-research-guide) at the margin, the two H2 links indented two spaces, and [Search Intent](#search-intent) indented four. The HTML output wraps the same links in a nav element with nested lists, and the counters show 4 headings, 2 H2 sections and 1 H3 subsection.
Common mistakes. The page title is usually the H1, and it is included in the output, so delete that line when the table sits under the title. Very deep tables are hard to scan; for most posts, keep H2 and H3 entries and drop the rest. In Markdown mode, a code sample whose lines begin with # (shell comments, for instance) is read as headings, so remove those lines from the input. And a table of contents can only be as clear as the headings it lists, so check the outline with the heading structure checker first.
What Google says. A 2009 post by Google's snippets team on named anchors advised breaking long, multi-topic pages into distinct sections, giving each an anchor with a descriptive name rather than "Section 2.1", and including a table of contents that links to those anchors, noting that section links appear in results only for queries where they are useful. Google's current snippet documentation describes "Read more" deep links to a section of a page and asks that the content be visible without opening tabs or expanders, that the page not use JavaScript to control scroll position on load, and that scripts not strip the # fragment from the URL. None of this guarantees section links. Google's SEO Starter Guide also says heading order doesn't matter to Google Search, though a logical order helps screen reader users.
Skribra writes every article with a logical heading hierarchy, so adding a table of contents is a paste away, and publishes it straight to your CMS.
SEO-Optimized Content
Create content that ranks with built-in SEO best practices. Skribra analyzes search intent, competitor content, and keyword opportunities to generate articles optimized for organic traffic from day one.
AI-Powered Generation
Get ideas, outlines, and full articles delivered straight to your CMS. With AI that understands context and your brand voice, you'll move from idea to published content faster than ever.
Human-First Quality
Every article reads naturally and provides real value to your audience. No robotic AI content—just well-researched, engaging articles that build trust and authority in your niche.
Automated Publishing
Connect Skribra to WordPress, Webflow, or your custom CMS. Articles are automatically published on your schedule, so you can focus on growing your business while your content works for you.
Ready to Scale Your Content?
Join thousands of businesses using Skribra to grow their organic traffic with AI-powered SEO content.
Try Skribra FreeWho Benefits From a Table of Contents Generator?
Content creators working with long-form content will find this tool valuable.
Bloggers
Add navigation to long blog posts to improve reader experience.
Technical Writers
Generate TOCs for documentation and user guides.
Content Marketers
Structure pillar content and comprehensive guides.
SEO Specialists
Improve page structure for better search visibility.
Course Creators
Outline lessons and modules for online courses.
Knowledge Base Managers
Create navigation for help articles and FAQs.
Academic Writers
Generate contents pages for papers and reports.
Documentation Teams
Build consistent navigation across docs sites.
Frequently Asked Questions
How do I generate a table of contents?
What input formats does it accept?
How are the anchor links created?
Why don't the links jump to my sections?
Does a table of contents help SEO?
Where should I place the table of contents?
Which headings should a table of contents include?
Can I use it for Markdown files, README files and docs sites?
More Free Writing Tools from Skribra
Skribra helps with all aspects of writing. Here are a few other useful tools that can support you.
Paragraph Length Analyzer
Optimize paragraph lengths for readability.
Keyword Density Checker
Optimize keyword usage for better SEO.
Open Graph Preview
Preview how your content appears on social media.
Schema Generator
Generate structured data for rich search results.