New: 500+ free SEO and AI search tools, no sign-up.Explore tools →

How to Use the Table of Contents Generator (Step by Step Guide)

By Hasnain Sanmal
Table of Contents Generator: how to fill in the tool

This guide explains how to use Table of Contents Generator, step by step, with screenshots of the real tool. It is written for bloggers, writers and SEOs who optimise individual pages. Paste your article HTML and get a linked table of contents plus the same HTML with id anchors added to every H2 and H3.

Quick answer: To use the Table of Contents Generator, open the free tool, paste the input and choose the levels, then copy the text it creates. Everything runs in your browser, so there is no sign up and nothing you type is stored on a server.

how to use Table of Contents Generator: Table of Contents Generator with example inputs
Screenshot of the live Table of Contents Generator with its example values.

What is the Table of Contents Generator?

Create a clickable TOC with jump links from H2 and H3 headings and add anchor IDs to your article HTML.

A table of contents helps readers jump to answers, and Google sometimes shows these jump links in search results.

How to use Table of Contents Generator step by step

  1. Step 1: Open the Table of Contents Generator

    Go to the Table of Contents Generator on hasnainsanmal.com. It loads with example values already filled in, so you can see how it works straight away. It works the same way on a phone, tablet or computer.

  2. Step 2: Paste Input

    Paste or type your text into Input. The example starts with: <h2>What is technical SEO?</h2><p>…</p><h2>How to….

  3. Step 3: Choose Levels

    Choose an option from Levels. Options include H2 only and H2 and H3. The example uses H2 only.

  4. Step 4: Read the results

    The output appears inside the tool card. Change any input to compare different scenarios.

    Table of Contents Generator results example
    Screenshot of the Table of Contents Generator results.
  5. Step 5: Copy or download the output

    Use Copy to take the result into your document, CMS, spreadsheet or report.

What does each field in the Table of Contents Generator mean?

Field What to enter Example
Input Text, one item per line where asked <h2>What is technical SEO?</h2><p>…</p><h2>How to…
Levels Choose one option (H2 only, H2 and H3) H2 only

What does a worked example look like?

With the example inputs (Levels: H2 only), the Table of Contents Generator returns: <!– Table of contents –> <nav class="toc"> <ul> <li><a href="#what-is-technical-seo">What is technical SEO?</a></li> <li><a href="#how-to-start">How to start</a></li> </ul> </nav> <!– Article with anchors –> <h2…

Replace the example with your own input to get your own result, then review it before you use it.

How do you get the best results from the Table of Contents Generator?

  • Look at the top results first and cover the topic better, not longer.
  • Add internal links to related pages with descriptive anchors.

For background, read the Google SEO Starter Guide. If you are working on a related task, our guide on how to use the Jump Link Generator walks through it the same way. You can also browse all free On-Page SEO Tools.

What mistakes should you avoid with the Table of Contents Generator?

  • Repeating the keyword unnaturally to chase a score.
  • Forgetting search intent and optimising the wrong page type.
  • Leaving titles and meta descriptions too long, so Google cuts them off.

Key terms

Backlink
A link from another website to yours. Search engines treat relevant links from trusted sites as a sign of authority, while paid or manipulative links break Google spam policies and can be ignored or penalised.
Anchor text
The visible, clickable words of a link. Descriptive anchors help readers and search engines understand the target page, while a profile with too many exact match commercial anchors can look unnatural.
Click through rate
The share of people who click a result after seeing it, found by dividing clicks by impressions and multiplying by 100. In Google Search Console it helps you spot pages that rank but need a better title or description.
Core Web Vitals
Google metrics for real user experience: Largest Contentful Paint for loading, Interaction to Next Paint for responsiveness and Cumulative Layout Shift for visual stability. Good thresholds are 2.5 seconds, 200 milliseconds and 0.1.
HTML
HyperText Markup Language, the standard language that structures web pages with elements such as headings, paragraphs, links and images. Search engines read the HTML to understand page content, links and metadata.

Related free tools

Frequently asked questions

Is the Table of Contents Generator free to use?

Yes. The Table of Contents Generator is completely free, with no sign up, no daily limit and no watermark. It is one of more than 500 free SEO and marketing tools on hasnainsanmal.com.

Is my data stored when I use the Table of Contents Generator?

No. The Table of Contents Generator runs in your browser with JavaScript, so the values and text you enter are processed on your own device and are not sent to or saved on our server.

How accurate is the Table of Contents Generator?

It creates a solid first draft from your inputs. Always review and edit the output so it is accurate, specific and sounds like you before you publish or send it.

Does the Table of Contents Generator work on a phone?

Yes. The tool is built for screens from 360 pixels wide, so you can use the Table of Contents Generator on a phone, tablet or computer in any modern browser.

Can I use the Table of Contents Generator for client work?

Yes. You can use the results for your own sites and for client projects. Check the output first, and keep a note of the inputs you used so you can repeat the check later.

What should I do after using the Table of Contents Generator?

Apply the result on your page, campaign or document, then measure the effect. If you would like expert help, see the SEO services or message Hasnain on WhatsApp for a free recommendation.

How we checked this guide: every step and screenshot was taken from the live Table of Contents Generator on 2 November 2026. Further reading: Google guidance on title links.

Hasnain Sanmal
Hasnain Sanmal

SEO and guest post outreach specialist with 2000+ completed orders and a list of 1000+ hand-picked, high-authority websites. More about me

Need high-authority backlinks?

Get niche-relevant guest posts from my own outreach list of 1000+ websites.

Chat on WhatsApp

More to read

All articles