Slug Generator

Convert any title or phrase into a clean URL slug. Supports hyphen and underscore separators, stopword removal, max length truncation, and SEO best practice analysis.

URL Slug
Slug Length (chars)
Words in Slug
Extended More scenarios, charts & detailed breakdown
URL Slug
Characters
Professional Full parameters & maximum detail

Generated Slug

Final Slug
Slug Length
Word Count

SEO Analysis

SEO Assessment

Alternative Formats

camelCase Version
PascalCase Version

How to Use This Calculator

  1. Type or paste your title or phrase into Input Text.
  2. Choose a Separator — hyphens are recommended for SEO.
  3. Optionally set a Max Length to truncate long slugs (60 chars is a good target).
  4. The slug is generated instantly. Copy and use it as a URL path.
  5. Use the Professional tier for stopword removal, SEO scoring, and camelCase/PascalCase alternatives.

Formula

1. Lowercase all text. 2. Transliterate accented characters (é→e, ü→ue, ñ→n). 3. Remove all characters except letters, digits, and spaces. 4. Replace spaces with the chosen separator. 5. Trim leading/trailing separators. 6. Optionally truncate at word boundary.

Example

Input: "How to Make Ünderstörm Coffee at 150°C!" → Slug: "how-to-make-understoerm-coffee-at-150c" (umlauts transliterated, special chars removed, spaces become hyphens).

Frequently Asked Questions

  • A URL slug is the part of a URL that identifies a specific page in a readable, URL-safe format. For example, in "example.com/blog/how-to-make-coffee", the slug is "how-to-make-coffee". Slugs use only lowercase letters, numbers, and hyphens.
  • Google officially recommends hyphens over underscores. Google treats hyphens as word separators (so "red-shoe" = two words: "red" and "shoe") but treats underscores as connectors (so "red_shoe" = one word: "redshoe"). Use hyphens for SEO.
  • Keep slugs under 60–75 characters. Google truncates long URLs in search results. Shorter slugs are more shareable and memorable. Remove stopwords like "the", "a", "of" to reduce length without losing meaning.
  • RFC 3986 defines unreserved characters: letters (a-z), digits (0-9), hyphens (-), underscores (_), dots (.), and tildes (~). All other characters must be percent-encoded. Slugs typically use only letters, digits, and hyphens.
  • Removing stopwords (the, a, is, at, of) shortens slugs and focuses them on keywords. For example, "the-best-guide-to-seo" becomes "best-guide-seo". However, if the phrase sounds unnatural without stopwords, keeping them is fine.

Related Calculators

Sources & References (5)
  1. Google Search Central: URL Structure Best Practices — Google
  2. Moz: URL Best Practices for SEO — Moz
  3. RFC 3986 — Uniform Resource Identifier (URI): Generic Syntax — IETF
  4. MDN Web Docs: URIs — Mozilla
  5. Yoast SEO: Slug Optimization — Yoast