SEO glossary

What is a URL Slug?

Learn what a URL slug is—the human-readable path segment in a web address—how slugs differ from full permalinks, and how to write stable, crawl-friendly slugs for on-page SEO.

On-Page SEOUpdated August 14, 2026
Also known asSEO slugpath slugURL path slug

Definition

A URL slug is the human-readable portion of a URL path—usually the final segment—that identifies a page in words rather than IDs, such as running-shoes in /products/running-shoes/.

URL slug: the readable name in the address bar

A URL slug is the word-based segment that names a page inside its path. In https://example.com/glossary/url-slug/, the slug is url-slug. It is not the domain, not query parameters, and not the full permalink—just the human-facing label embedded in the path.

Slugs matter because they appear in SERPs, emails, and analytics. A clear slug tells users what they are about to open before the page loads.

ElementExampleWhat it covers
URL slugkeyword-placementOne or more path segments naming the resource
Permalinkhttps://example.com/glossary/keyword-placement/Full stable URL including host and path
Title tagWhat is Keyword Placement?HTML document title for tabs and SERP candidates
H1Keyword Placement for On-Page SEOVisible on-page headline

Slugs, titles, and headings should agree on topic without being copy-pasted clones. The slug is the most permanent of the three—treat it like infrastructure.

Anatomy of a slug in context

https://www.crawlox.com/glossary/url-slug/
        └─ host ─┘└─ path prefix ─┘└ slug ┘

Multi-segment paths can contain several slugs:

/blog/2026/on-page-seo-checklist/
      └─1─┘└2┘└────────3────────┘

Segment 3 is often the primary content slug even when parent folders add hierarchy.

Slug writing principles

1

Use lowercase and hyphens

running-shoes beats Running_Shoes or runningShoes in paths.

2

Keep it short but descriptive

Prefer words searchers recognize over internal codenames.

3

Avoid dates unless news

Evergreen guides age poorly inside slugs like /2021-seo-tips/.

4

Strip stop words when natural

/what-is-crawl-budget/ is fine; /the-complete-guide-to-crawl-budget/ may be long.

5

Plan redirects before edits

Slug changes without 301s break backlinks and split signals.

Slugs and on-page SEO alignment

Slugs support search intent when they preview the page job. A slug best-crm-for-startups signals comparison content; crm-login signals navigation. Mismatch between slug, title tag, and body confuses users and weakens click-through.

Keyword placement in slugs is optional polish—not a substitute for strong content. One primary concept per slug is enough.

CMS and slug generation

Most CMS platforms auto-generate slugs from headlines at publish time. Risks include:

  • Auto-updating slugs when editors tweak titles (breaking URLs)
  • Duplicate slugs across drafts (post-2, post-3)
  • Non-ASCII characters encoded into ugly percent sequences

Lock slugs after publish. Use a stable ID in the database even when the public slug changes.

Common slug mistakes

Keyword stuffing

buy-cheap-running-shoes-discount-running-shoes reads as spam, not clarity.

Random IDs only

/p/88291/ helps warehouses, not humans scanning SERPs.

Mixed conventions

/Blog/My_Post and /blog/my-post both indexed—duplicate chaos.

Silent slug churn

Plugins that rewrite slugs on save without redirects erase equity.

Slug change migration checklist

  • Export URLs with traffic, backlinks, and indexed status before any slug edit.
  • Map old slug paths to new paths one-to-one for content moves.
  • Implement 301 redirects at the server or edge, not JavaScript-only hops.
  • Update internal links, sitemaps, and canonical tags to the new paths.
  • Crawl for 404s and redirect chains longer than one hop.
  • Monitor Search Console coverage for eight weeks after migration.

Slug myths

  • Myth: "Every word in the H1 must appear in the slug." Reality: topical alignment beats mechanical duplication.
  • Myth: "Shorter slugs always rank higher." Reality: relevance and links dominate; arbitrary shortening removes useful context.
  • Myth: "Slugs are a major ranking factor." Reality: they are a minor clarity signal—helpful, not magical.
  • Myth: "You can fix a bad slug with canonical tags alone." Reality: users and links still hit the old path; redirect.

How Crawlox helps with URL slugs

Crawlox groups URLs by path pattern, flags slug duplicates, and surfaces pages where slugs drift from titles or canonical declarations. Catch template-generated slug collisions and orphaned legacy paths before they dilute indexation.

The practical takeaway

A URL slug is the readable name inside the path—not the whole permalink. Write slugs for humans and stability, align them with intent, change them rarely, and always redirect when you must.

Related terms

Frequently asked questions

Is a URL slug the same as a permalink?

No. The slug is one path segment (or a few joined segments). A permalink is the complete permanent URL—scheme, host, and full path.

Should the slug match the page title exactly?

Close alignment helps users, but slugs should stay short and stable. Titles can change for SERP testing; slugs should not churn without redirects.

Do keywords in slugs boost rankings?

Slugs are a minor relevance signal. Descriptive slugs improve clarity, sharing, and analytics more than aggressive keyword stuffing.

When should you change a URL slug?

During rebrands, major topic pivots, or when a slug is misleading. Always 301 redirect the old URL and update internal links.

Hyphens or underscores in slugs?

Use hyphens between words. Search engines treat hyphens as separators; underscores often read as one token.

References

Explore authoritative guidance and frameworks related to url slug.

Explore every glossary definition

Return to the glossary to search by term, alias, starting letter, or category.

Browse glossary