A URL slug is the readable part of a page’s web address, the bit that sits after the domain name and any folder structure, used to identify a specific page on a site. In an address like example.com/blog/url-slug-seo, the slug is the final segment: url-slug-seo. It is not the whole URL, only one component within it, and it usually mirrors the page title in a shorter, cleaner form.
That single piece of the address does more work than it looks like. It shows up in search results, gets copied into chat messages, and tells anyone glancing at a link what the page is about. The rest of this guide covers where exactly the slug sits in a URL, why it earns a place in SEO hygiene, how to write one well, and what happens when you change it.
Where the Slug Sits in a URL
Take a real URL and break it into pieces. The address https://example.com/blog/what-is-a-url-slug has four visible components. The protocol is https, the part that tells the browser how to connect. The domain is example.com, the site’s main address. The subfolder is /blog, which signals the section of the site the page lives in. The slug is what-is-a-url-slug, the readable identifier at the end that names this specific page, as defined in the web glossary entry for slugs.
The slug is almost always the last path segment, and it is what makes the page addressable within the site. Anything after a question mark, such as ?utm_source=email, sits in the query string and is not part of the slug. The same is true of fragment identifiers introduced with a #, which point to sections of the page rather than to the page itself. Distinguishing those from the slug matters when you are editing or auditing URLs, because changes to the slug rewrite the page address while changes to parameters usually do not.
Why URL Slugs Matter for SEO
A clean slug makes the page topic obvious the moment a link appears in a search result, a Slack thread, or a tweet. Users scan URLs quickly, and a slug like example.com/seo-slug tells them what they are clicking on, while example.com/p=1234 does not. That kind of clarity can lift click confidence, and links that look trustworthy tend to get clicked more often than ones that look like noise.
Including the primary keyword in the slug reinforces topical relevance, but the signal is small. Search engines weigh page content, backlinks, and many other factors far more heavily than the few words in a URL. Treat the slug as a supporting signal that helps users and crawlers confirm the page’s topic, not as a lever that moves rankings on its own.
Most slugs end up looking like the page title because content management systems auto-generate them from whatever you type into the title field. WordPress, Ghost, Shopify, and similar platforms all do this by default, and editors typically trim the result before publishing. That is why so many permalinks read like shortened, hyphenated versions of the H1: the slug is usually a direct descendant of the title tag.
How to Write an SEO-Friendly Slug
Writing a slug well comes down to a handful of habits. Once you internalize them, slug decisions take a few seconds rather than a few minutes.
The Four Rules of a Good Slug
A good slug is descriptive, short, lowercase, and hyphen-separated. Descriptive means the slug signals the page topic at a glance. Short means it stays readable when copied into a message. Lowercase prevents the case-sensitivity quirks that show up across different servers and contexts. Hyphens, not underscores, separate the words so the URL reads naturally to a human scanning it. These four rules are repeated across mainstream slug references.
Good Slug vs Bad Slug
Compare the pairs below. The shorter, cleaner versions win every time.
- Good:
example.com/seo-slug - Better for a blog post:
example.com/what-is-a-url-slug - Less ideal:
example.com/What_Is_A_URL_Slug - Less ideal:
example.com/what-is-a-url-slug-in-seo-2026-guide-final-version
Turning a Title Into a Slug
Take the title “What Is a URL Slug in SEO?” Drop the filler, lowercase what remains, and replace the spaces with hyphens. The first pass gives you what-is-a-url-slug-in-seo. Trim it to what-is-a-url-slug or, for a more compact version, url-slug-seo. Both are descriptive, both fit in a search snippet without truncation, and neither one tries to do too much, which is why most slug best practice guides land on examples much like these.
Want a second pair of eyes on your URL structure? The team at Clickside can audit your slugs and flag the ones worth cleaning up first.
Is It Bad for SEO to Change a URL Slug?
Changing a slug is not inherently bad for SEO, but it does change the page URL, and the old address still exists somewhere: in bookmarks, in backlinks, in search engine indexes. If you swap the slug and walk away, the old URL starts returning a 404, traffic dips, and any backlink equity has to be rebuilt as search engines reprocess the new address.
Treat a slug change like a small migration. Update the internal links that point at the old slug, then add a 301 redirect from the old address to the new one. The redirect preserves the link equity and sends visitors to the right page. Done with redirects, a slug change is routine. Done without them, it is a small, avoidable loss.
The Takeaway on URL Slugs
A URL slug is the readable page identifier at the end of a URL, and it earns its place in SEO by improving clarity, shareability, and click confidence. It is not a ranking lever on its own, but it is a low-cost habit that pays off across every page you publish.
Pick one published page with a messy or generic slug today, draft a cleaner version, and set up a 301 redirect from the old slug before swapping it in.
Ready to clean up your site’s slugs the right way? Talk to the Clickside team for a practical redirect plan you can ship this week.