Markdown Heading Slug Generator
Generate clean, GitHub-compatible URL anchor slugs from heading titles. Output raw slugs (`#quick-start`), Markdown links (`[Title](#quick-start)`), or slugified file paths.
Generate GitHub Anchor Slugs for Markdown Headings Online
Convert heading text into URL-safe Markdown anchor slugs conforming to GitHub, GitLab, and Bitbucket algorithms. Generate ready-to-use clickable link tags or raw URL anchors.
How to Use the Markdown Slug Generator
Paste Headings
Input your list of section titles or chapter headings one per line.
Choose Format & Separator
Select Markdown links, anchor hashtags, or raw slugs with hyphen or underscore delimiters.
Copy Slugs
Click 'Copy Slugs' to paste into your table of contents or documentation navigation bar.
Key Features & Capabilities
Pro Tips & Best Practices
- •Use the 'Markdown Link' output mode to instantly construct custom navigation menus for long single-page guides.
Frequently Asked Questions
How does GitHub turn headings into anchor slugs?
GitHub lowercases all characters, strips punctuation like periods, colons, question marks, and parentheses, and converts spaces into hyphens (e.g. '1. What is It?' becomes '#1-what-is-it').
Can I use these slugs in Hugo, Astro, or Docusaurus?
Yes! Modern static site generators follow the same CommonMark anchor slugging standard.
Does this handle numbers in headings?
Yes! Numeric prefixes like '1. Introduction' are preserved and slugified cleanly to '1-introduction'.
Related Markdown Tools
TOC Generator
Generate clickable Table of Contents lists with GitHub-compatible heading anchor slugs.
Anchor Checker
Audit internal #anchor jumps against existing document headings to find broken in-page links.
URL Cleaner
Strip UTM marketing parameters, fbclid, and analytics tracking queries from all links in Markdown.
Markdown Editor
Full-featured dual-pane live editor with syntax toolbar, localStorage autosave, and document stats.