A URL slug is the last, readable part of a web address that names one page, such as green-tea-guide in example.co.uk/blog/green-tea-guide/. It tells people and machines what the page is about before they open it. A good slug is short, lower case, made of real words and joined with hyphens.
What is a URL slug? #
Every URL has parts. MDN’s guide to what a URL is splits one into the scheme (https://), the domain, an optional port, the path, optional parameters after a ? and an optional anchor after a #. The slug is the final piece of the path. MDN notes that a path once pointed to a real file on the server, but today it is mostly a label the server maps to content. That is why you can choose the slug freely. In WordPress the slug is a field under each post or page title.
What does a good slug look like? #
| Weak slug | Better slug | Why |
|---|---|---|
?p=4812 |
how-to-descale-a-kettle |
Words, not an ID number |
How_To_Descale_A_Kettle |
how-to-descale-a-kettle |
Hyphens and lower case |
descalekettle |
descale-kettle |
Clear word breaks |
the-ultimate-complete-guide-to-descaling-your-electric-kettle-in-2026 |
descale-kettle |
Short and does not date |
Why does it matter for search? #
Google’s page on URL structure best practices asks you to use readable words rather than long ID numbers. It says Google prefers hyphens to underscores, because a hyphen marks where one word ends and the next begins, while an underscore often joins words in code. It also warns against running words together. The slug is not a big ranking factor on its own. Its value is clarity: the address shows in results as part of the attribution line, it appears in links people share, and plain words make it look trustworthy. See SEO-friendly URL for the wider address.
Google’s same page gives 3 rules that trip people up:
- Case matters. Google treats
/APPLEand/appleas 2 separate URLs. Pick lower case and stick to it, or you risk duplicate content. - Use your readers’ language. A German page can use German words in its slug.
- Encode special characters. Google says characters outside the basic ASCII range should be percent-encoded in links.
The web standard behind this, RFC 3986, lists the “unreserved” characters that never need encoding: letters, digits, hyphen, full stop, underscore and tilde. Stick to lower-case letters, digits and hyphens and you never have to think about it.
Why does it matter for AI answers? #
AI tools cite pages by their address. When ChatGPT, Perplexity or an AI Overview shows a source, the slug is often the only part of the link a reader sees in full. A slug like /descale-kettle/ tells the reader what they will get. A slug like /p4812/ tells them nothing. A clear slug also helps a citation survive being copied into notes, emails and other AI chats. And a stable slug matters more than a perfect one: every time the address changes, old citations and backlinks point to the wrong place unless you redirect them.
How does it work? #
Your content system turns the page title into a slug, usually by lower-casing it, swapping spaces for hyphens and dropping odd characters. You can then edit it. When a visitor or a crawler asks for the address, the server looks up which content belongs to that slug and sends it. If you change the slug, the old address breaks unless you add a redirect. Google’s guide to site moves with URL changes recommends permanent server-side redirects such as 301 or 308, kept for as long as possible and generally at least 1 year.
Common mistakes #
- Changing slugs for small gains. Renaming a page that already ranks costs more than it earns. If you must, use a 301 redirect.
- Dates and years in the slug.
/best-kettles-2025/looks old in 2026. Put the year in the title, not the address. - Stop-word soup. Long slugs full of “the”, “and” and “your” add length, not meaning.
- Mixed case or trailing variants.
/Kettle/,/kettleand/kettle/can all resolve. Pick one and set a canonical tag. - Tracking codes in the slug. Campaign tags belong in UTM parameters, not the path.
- Keyword stuffing.
/kettle-descale-kettle-descaler-kettle/reads as spam. See keyword stuffing.
A worked example #
A small UK kitchen shop has a guide at /blog/?p=4812 titled “How to descale a kettle with vinegar or citric acid”. It picks the core words people search, from its keyword research, and sets the slug to /blog/descale-kettle/. Because the old address had links, it adds a 301 from ?p=4812 to the new one and tests it with our redirect checker to make sure there is no redirect chain. It then updates its XML sitemap, checks the new entry with our sitemap checker and fixes 3 internal links that still pointed at the old address. Finally it runs our broken link checker to catch anything missed.
How to check it #
- Paste a title into our free URL slug optimiser to get a clean, hyphenated slug.
- Use the URL parser to split an address into its parts and spot stray parameters.
- Run any address with special characters through the URL encoder and decoder.
- Before renaming many pages, plan the moves with the redirect mapper, then read how to move a site and keep your visits.
- After any change, use URL Inspection in Search Console to ask Google to fetch the new address.
Questions #
How long should a slug be? #
Google sets no limit. In practice, 2 to 5 words covers most pages and stays readable in results.
Should the slug match the title? #
It should share the main words, but it can be much shorter. The title can change; the slug ideally never does.
Is the slug the same as a permalink? #
No. The permalink is the full, lasting address of a page. The slug is the page’s own name inside it. See WordPress SEO for how WordPress builds both.
Related words #
Sources #
- Google Search Central: URL structure best practices, checked 24 November 2026
- MDN: What is a URL?, checked 24 November 2026
- RFC 3986: Uniform Resource Identifier generic syntax, checked 24 November 2026
- Google Search Central: site moves with URL changes, checked 24 November 2026
Updated 24 November 2026 by URSY.com.
Cite this page: URL slug. URSY. Updated 26 November 2026. https://ursy.com/wiki/url-slug/ · Section links
Tools for this
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →