Document Hierarchy ShifterPromote • Demote • H1-H6 Clamping

Markdown Heading Level Shifter

Shift Markdown heading levels up or down across entire documents. Demote headings (H1 → H2) when embedding chapters into larger wikis, or promote headings (H2 → H1).

Original Markdown
Input lines: 22Raw text
Shifted Markdown
Offset:
Clamped between H1 and H6Code block comments protected
Complete Guide & Overview

Promote & Demote Markdown Heading Levels Online (H1-H6)

Shift heading levels (+1 or -1) across entire Markdown documents. Easily nest standalone articles under existing guide headers or promote sub-sections into top-level pages.

How to Use the Markdown Heading Shifter

1

Paste Document

Input your Markdown file with various heading depths (H1-H6).

2

Select Shift Level

Choose +1 to demote (e.g. embed inside a chapter) or -1 to promote section levels.

3

Copy Result

Click 'Copy Markdown' to paste your restructured document into your documentation repository.

Key Features & Capabilities

Batch Level Shifting: Increase or decrease heading levels across hundreds of sections in milliseconds.
Code Fence Immunity: Protects code comments starting with hashtags (#) inside code blocks.
Level Clamping: Automatically prevents headings from exceeding H6 or dropping below H1.
One-Click Copy & Save: Fast clipboard integration for documentation writers.
100% In-Browser Computation: Secure and private processing for sensitive drafts.

Pro Tips & Best Practices

  • •Demote all headings by +1 when importing external README files into multi-page Docusaurus or Next.js documentation sites.

Frequently Asked Questions

Why do I need to shift heading levels?

When merging multiple standalone Markdown files into a single book or documentation site, having multiple H1 headings ruins SEO hierarchy. Shifting allows you to demote an entire file to H2 and below instantly.

What happens to H6 headings when shifting down (+1)?

Markdown headings are clamped at level 6 (######). Any heading already at H6 remains at H6.

Will code comments with # be modified?

No! Code fences (```) are detected and protected from heading adjustments.