How to Fix Missing Table of Contents Web Part in Modern SharePoint
Question details
Users are looking for ways to add a table of contents to their SharePoint pages because the built-in web part is no longer available.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Creating or formatting a long modern SharePoint page where users need jumping links or page navigation for better readability.
- Observed behavior
- The traditional Table of Contents web part, which was present in classic SharePoint, is completely missing from the modern SharePoint web part gallery.
Verify that your site is using the Modern experience, as classic SharePoint pages still support the legacy Table of Contents web part.
Create a Manual Table of Contents Using Anchor Links
Use the standard Text web part to manually build a table of contents by hyperlinking to the automatic anchor links generated by SharePoint headings.
Modern SharePoint automatically generates anchor URLs for any text formatted as a Heading. You can leverage these to create manual page jumps.
In your existing Text web parts, format the titles of your sections as Heading 1, Heading 2, or Heading 3.
Publish or save your page as a draft. Hover your cursor over the headings you just created to reveal the chain-link icon. Right-click this icon and select 'Copy link'.
Edit the page again and add a new Text web part at the top of your page. Type out your list of sections.
Highlight the text for your first section item, click the Hyperlink icon on the text toolbar, and paste the anchor link you copied. Repeat this for all sections.

Use the Quick Links Web Part for Navigation
Instead of a plain text list, use the built-in Quick Links web part to create a more visual, button-style table of contents.
Deploy a Community-Built SPFx Web Part
For enterprise environments requiring an automated TOC, administrators can deploy custom SharePoint Framework (SPFx) web parts developed by the community.
Enhance Your Document Workflow with WPS Office
While SharePoint handles your site structures and cloud storage, you still need a robust tool to create and edit the documents you share. WPS Office is a high-performance, free suite that handles your Word, Excel, and PowerPoint files natively, making it an excellent companion for managing SharePoint documents offline.

Frequently Asked Questions
Why did Microsoft remove the Table of Contents web part in modern SharePoint?
Modern SharePoint pages were redesigned from scratch to be responsive and mobile-friendly. During this redesign, many classic web parts were deprecated because they relied on outdated code. Microsoft encourages using text anchors or custom SPFx solutions instead.
Can I force a classic web part onto a modern page?
No, modern SharePoint pages do not support classic web parts natively. You can only use modern web parts found in the updated '+' menu.
Do heading anchor links work on mobile devices?
Yes. If you create a manual table of contents using heading anchor links, users tapping the links on the SharePoint mobile app or mobile browsers will correctly jump to the respective sections.
Is there a Microsoft roadmap to bring the TOC web part back?
Currently, Microsoft has not announced a built-in automated TOC web part for modern pages. Users frequently submit feedback on the Microsoft Feedback portal, but for now, the community PnP web parts serve as the best automated alternative.




