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.
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.
Slug vs permalink vs title
| Element | Example | What it covers |
|---|---|---|
| URL slug | keyword-placement | One or more path segments naming the resource |
| Permalink | https://example.com/glossary/keyword-placement/ | Full stable URL including host and path |
| Title tag | What is Keyword Placement? | HTML document title for tabs and SERP candidates |
| H1 | Keyword Placement for On-Page SEO | Visible 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
Use lowercase and hyphens
running-shoes beats Running_Shoes or runningShoes in paths.
Keep it short but descriptive
Prefer words searchers recognize over internal codenames.
Avoid dates unless news
Evergreen guides age poorly inside slugs like /2021-seo-tips/.
Strip stop words when natural
/what-is-crawl-budget/ is fine; /the-complete-guide-to-crawl-budget/ may be long.
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
Permalink
The full permanent address that includes the slug.
URL Structure
How slugs fit into broader path conventions.
Title Tag
Often aligned with—but not identical to—the slug.
Canonical URL
Preferred URL when slug changes create duplicates.
Search Intent
The slug should reflect what the page actually satisfies.
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.