GitHub URL Anchor SlugifierGitHub • GitLab • Bitbucket Slugs

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.

Heading Titles (One per line)
5 headings to slugifyRaw text
Generated Slugs
GitHub / GitLab Slug Specification100% Client-Side
Complete Guide & Overview

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

1

Paste Headings

Input your list of section titles or chapter headings one per line.

2

Choose Format & Separator

Select Markdown links, anchor hashtags, or raw slugs with hyphen or underscore delimiters.

3

Copy Slugs

Click 'Copy Slugs' to paste into your table of contents or documentation navigation bar.

Key Features & Capabilities

GitHub Slug Specification: Strips punctuation, lowercases text, and replaces whitespace with hyphens.
Multiple Output Formats: Choose between Markdown links ([Title](#slug)), anchors (#slug), or raw slugs.
Custom Separators: Toggle between standard hyphens (-) and underscore (_) separators.
Bulk Conversion: Slugify dozens of headings simultaneously in seconds.
100% Client-Side Privacy: Runs completely within your browser without sending heading titles to any server.

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'.