Markdown Anchor Link Generator

Convert heading text into a GitHub-style anchor link.

Category: Text Tools

When to use?

Use it to make a link that jumps to a specific section, or to quickly check which anchor ID a heading text converts to.

How to use

  • Enter the heading text to turn into an anchor.
  • The GitHub-style anchor link appears instantly.
  • Copy the link to use in your document.

Input Explanation

Enter one heading text to link. You do not need to include the Markdown # symbol.

Calculation Basis

It lowercases the text, replaces spaces with hyphens (-), removes special characters (except letters, numbers, hyphens, underscores), and assembles it as #anchor-id.

Usage Examples

  • Direct section links - Generate an anchor link that jumps to a specific heading.
  • Check anchor IDs - Quickly see which heading converts to which anchor.
  • Write TOC links - Make anchors per heading to build TOC links manually.

Examples

  • "Getting Started" → #getting-started
  • "Installation (v2.0)" → #installation-v20

Cautions

  • The base rule is GitHub style; rules can differ slightly per platform.
  • For duplicate headings, GitHub appends -1, -2 to distinguish them.

FAQ

Are anchors generated for non-Latin headings?

Yes, non-Latin characters are kept and only spaces are replaced with hyphens.

Is it compatible with GitLab or Notion?

The base rule is GitHub style; rules can differ slightly per platform.

How is the anchor made?

It follows GitHub rules: lowercase the heading, replace spaces with hyphens, and remove some special characters.

What about duplicate headings?

Like GitHub, append numbers such as -1, -2 from the second occurrence to distinguish them.

Related Tools

  • Markdown Table of Contents Generator - Analyze Markdown headings (#, ##, ###) to auto-generate a linked table of contents.
  • Slug Generator - Convert a title or sentence into a URL-friendly slug string.
  • Markdown Preview - Render Markdown in real time and provide an HTML preview.
  • Character Counter - Count characters with and without spaces, and line count, in real time.
  • Byte Counter - Calculate the byte length of text when stored as UTF-8.
  • Case Converter - Convert text, variable names, and filenames to UPPER, camelCase, snake_case, kebab-case, and more.