DataToolsLab
Markdown Tools

Markdown Anchor Link Generator

Convert a heading into its GitHub-style anchor link slug.

Loading tool…

What is Anchor Links?

An anchor link generator that converts a heading string into the exact slug GitHub uses for in-page anchors.

How it works

It applies GitHub's slugification algorithm (lowercase, strip punctuation, collapse spaces, keep hyphens) — shared with the TOC generator.

  1. Enter your input. Type or paste your input into the field above — the tool responds instantly.
  2. Review the result. Output updates live as you type. Everything runs entirely in your browser.
  3. Copy or download. Use the Copy button to grab the result, or Download to save it as a file.

Examples

Jump links to headings

Generate a link that jumps to a heading — using the exact anchor slug GitHub computes for that heading.

Common mistakes

Editing the heading breaks the link

Anchors derive from heading text — renaming the heading silently breaks the jump link.

Frequently asked questions

What slugging rules are used?

Lowercase, spaces to hyphens, punctuation stripped — GitHub's rules, including the -1 suffix for duplicate headings.

Does it handle duplicate headings?

Yes — subsequent duplicates get numeric suffixes exactly like GitHub.

Online