What is URL Slug?

A URL slug is the human-readable, hyphenated part of a URL that identifies a page, ideally short, lowercase, and keyword-rich.

A URL slug is the segment of a web address that identifies a specific page in a readable way, typically appearing at the end of the path. In example.com/blog/how-to-write-a-slug, the slug is how-to-write-a-slug. A good slug is lowercase, uses hyphens to separate words, avoids stop words and special characters, and describes the page's content clearly.

Slugs matter for both usability and SEO. A descriptive slug tells users and search engines what a page is about before they even load it, and it appears in search results, making the URL itself a small ranking and click-through signal. Clean slugs are also easier to read aloud, remember, and share than URLs full of query parameters or numeric IDs.

Creating a slug from a title is a process called slugification: convert the text to lowercase, replace spaces with hyphens, transliterate or strip accented and non-ASCII characters, and remove punctuation. The goal is a compact string that stays valid in a URL without needing percent-encoding, while remaining meaningful to a human reader.

Best practices include keeping slugs short, front-loading important keywords, and - critically - not changing them after publication. Changing a slug breaks existing links and bookmarks unless you set up an HTTP redirect from the old URL to the new one. When restructuring a site, mapping old slugs to new ones with 301 redirects preserves both traffic and accumulated SEO value.

Examples

  • Good: /guides/email-deliverability-checklist
  • Poor: /guides/page?id=48213&ref=nav - opaque and unmemorable
  • Slugified from 'The 10 Best Tools!' → the-10-best-tools

Common questions

Should I use hyphens or underscores in a slug?
Use hyphens. Search engines treat hyphens as word separators, while underscores can join words together, so hyphenated slugs are clearer for both users and crawlers.
Can I change a URL slug after publishing?
You can, but you should add a 301 redirect from the old slug to the new one. Otherwise existing links, bookmarks, and any accumulated SEO value pointing at the old URL will break.
Should slugs include stop words like 'the' and 'a'?
Generally omit them to keep slugs short and focused, unless removing them makes the slug confusing or changes the meaning of a phrase.

Related tools

Related terms for URL Slug