Key Takeaways

  • Insert the Table of Contents macro from the toolbar or / menu to scan and link headings on the current page, live doc, or blog post.
  • Format section titles using standard Confluence heading styles (levels 1 through 6) rather than bold body text so the macro detects them.
  • Complete four steps: apply heading styles, insert the macro, configure list style and heading range under Basic parameters, and set filters or PDF options under Advanced parameters.
  • Confirm your setup in the live configuration preview and published view by clicking generated links to verify smooth in-page navigation.

Generate an automatic, clickable outline at the top of long Confluence pages and live docs so readers jump straight to relevant sections. Configuring heading depth, list styles, and keyword filters keeps navigation tidy even as teammates add or rename sections.

For plan limits and team seat pricing behind this workflow, read our Confluence review or connect Confluence to AI agents in Confluence API and MCP.

Key steps

  1. 1Format page sections with Confluence heading styles
  2. 3Configure layout and heading range in Basic parameters
  3. 4Filter headings and PDF export behavior in Advanced parameters

What do you need before starting in Confluence?

Confluence requires the following workspace setup before you begin:

  • Edit permission on the target Confluence Cloud page, live doc, or blog post
  • Document sections formatted with Confluence heading levels 1 through 6

How do you complete the steps in Confluence?

Follow these 4 steps in Confluence in order:

  1. Format page sections with Confluence heading styles

    Open your page, live doc, or blog post in edit mode and apply Heading 1 through Heading 6 styles from the toolbar to each section title. Position your cursor near the top of the draft.

    The macro scans only the single page, live doc, blog post, or container macro where it resides. It captures heading-formatted text along with heading-formatted emojis, mentions, statuses, and dates.

  2. Insert the Table of Contents macro

    Type / on the page (or open the toolbar insert menu), filter for Table of Contents, and select it. Click the macro placeholder and select the Edit icon to open configuration.

    Use the centered, medium-width, or full-width icons to adjust macro width if supported, or select the trashcan icon to remove the macro.

  3. Configure layout and heading range in Basic parameters

    Under Basic options, set Display as to Vertical list or Horizontal list, pick a Bullet style (Bullet, None, Mixed, Circle, Square, or Numbered), set Include heading levels from [#] to [#], and optionally check Include section numbers.

    Narrowing heading levels (for example, 1 to 3) hides minor subheadings from cluttering top-level runbooks. Checking Include section numbers adds outline numbering such as 1.1 and 1.2, and all changes save and display immediately.

    Confluence page displaying a formatted vertical table of contents macro linking to document headings
    Verify that your selected heading levels and bullet styles display in nested order inside the Table of Contents block. Screenshot source
  4. Filter headings and PDF export behavior in Advanced parameters

    Open Advanced options to enter a CSS unit like 10px in Indent headings, filter titles via Include headings with: or Exclude headings with:, add a CSS class name, or check Exclude in PDF export. Click back into your document to close the panel.

    Both Include headings with: and Exclude headings with: are case sensitive and accept pipe-separated terms like Overview|Summary. Checking Exclude in PDF export hides the web outline when printing or exporting to PDF.

How does this Confluence setup work in practice?

Worked example: Structuring an engineering architecture handbook

A platform lead adds top-of-page navigation to a long service architecture specification while hiding footer notes and suppressing duplicate outlines in PDF exports.

ChoiceWhy it mattersHow to check
Set Display as to Vertical list with Include section numbers checkedGives reviewers numbered references such as 1.1 and 1.2 during design reviews.Outline numbers render beside every linked heading in the vertical list.
Set Include heading levels from 1 to 3Keeps granular H4 through H6 field notes out of the executive summary.Only H1, H2, and H3 headings populate in the outline.
Enter Changelog|Appendix in Exclude headings with: and check Exclude in PDF exportHides administrative sections online and omits the macro when exporting PDFs.Changelog and Appendix disappear online and PDF exports exclude the block.

Engineers open the published handbook, scan numbered sections at a glance, and jump directly to service diagrams without manual scrolling.

How do you verify your result in Confluence?

Publish your page and click generated links in the table of contents to verify they jump accurately to each matching heading. Whenever collaborators add new sections formatted with included heading levels, the outline refreshes automatically.

StepWhat you should see
Format page sections with Confluence heading stylesEvery target section title uses a standard Confluence heading level.
Insert the Table of Contents macroThe Table of Contents placeholder appears with its configuration panel open.
Configure layout and heading range in Basic parametersThe macro preview updates immediately to match your list style, numbering, and heading range.
Filter headings and PDF export behavior in Advanced parametersResuming page edits closes the panel and leaves your filtered table of contents in place.

Related Confluence guides include How to create a custom space template in Confluence and How to organize a space and publish pages in Confluence.

Which official Confluence sources were checked?

Every step and limit in this Confluence guide was verified against official documentation on 27 Nov 2026 following how we check figures, alongside more walkthroughs in our Confluence tutorials hub:

How do you troubleshoot common Confluence issues?

Why are some section titles missing from my Table of Contents macro?

Confirm the missing titles use Confluence heading levels within your configured minimum and maximum range rather than bold body text. Also check Include headings with: and Exclude headings with: under Advanced parameters, as both filters are case sensitive.

Can one Table of Contents macro pull headings from child pages in the space?

No, the macro works strictly inside the single page, live doc, or blog post where it is added. If placed inside an excerpt macro, it lists only headings within that excerpt and those links will not navigate to the source page.

How do I widen the indentation between parent and nested heading levels?

Select the macro placeholder, click the Edit icon, and open Advanced parameters. Enter a valid CSS value such as 10px in Indent headings so Level 1 indents by 10px and Level 2 indents by an additional 10px.