---
title: "URL slug"
description: "A URL slug is the readable end of a web address that names one page. Keep it short, lower case, real words joined by hyphens, and never change it lightly."
url: https://ursy.com/wiki/url-slug/
updated: 2026-11-26T15:43:59+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/url-slug/
---

# URL slug

> A URL slug is the readable end of a web address that names one page. Keep it short, lower case, real words joined by hyphens, and never change it lightly.

**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? {#what-is-a-url-slug}

Every [URL](https://ursy.com/wiki/url/) has parts. MDN’s guide to [what a URL is](https://developer.mozilla.org/en-US/docs/Learn_web_development/Howto/Web_mechanics/What_is_a_URL) splits one into the scheme (`https://`), the [domain](https://ursy.com/wiki/domain-name/), 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? {#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? {#why-does-it-matter-for-search}

[Google](https://ursy.com/wiki/google/)’s page on [URL structure best practices](https://developers.google.com/search/docs/crawling-indexing/url-structure) 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](https://ursy.com/wiki/ranking-factor/) on its own. Its value is clarity: the address shows in results as part of the [attribution](https://ursy.com/wiki/attribution/) line, it appears in links people share, and plain words make it look trustworthy. See [SEO-friendly URL](https://ursy.com/wiki/seo-friendly-url/) for the wider address.

Google’s same page gives 3 rules that trip people up:

- **Case matters.**  Google treats `/APPLE` and `/apple` as 2 separate URLs. Pick lower case and stick to it, or you risk [duplicate content](https://ursy.com/wiki/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](https://www.rfc-editor.org/rfc/rfc3986), 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? {#why-does-it-matter-for-ai-answers}

AI tools cite pages by their address. When [ChatGPT](https://ursy.com/wiki/chatgpt/), [Perplexity](https://ursy.com/wiki/perplexity/) or an [AI Overview](https://ursy.com/wiki/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](https://ursy.com/wiki/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](https://ursy.com/wiki/backlinks/) point to the wrong place unless you redirect them.

## How does it work? {#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](https://ursy.com/wiki/redirect/). Google’s guide to [site moves with URL changes](https://developers.google.com/search/docs/crawling-indexing/site-move-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 {#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](https://ursy.com/wiki/301-vs-302-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/`, `/kettle` and `/kettle/` can all resolve. Pick one and set a [canonical tag](https://ursy.com/wiki/canonical-tag/).
- **Tracking codes in the slug.**  Campaign tags belong in [UTM parameters](https://ursy.com/wiki/utm-parameters/), not the path.
- **[Keyword](https://ursy.com/wiki/keyword/) stuffing.**  `/kettle-descale-kettle-descaler-kettle/` reads as spam. See [keyword stuffing](https://ursy.com/wiki/keyword-stuffing/).

## A worked example {#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](https://ursy.com/wiki/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](https://ursy.com/redirect-checker/) to make sure there is no [redirect chain](https://ursy.com/wiki/redirect-chain/). It then updates its [XML sitemap](https://ursy.com/wiki/xml-sitemap/), checks the new entry with our [sitemap checker](https://ursy.com/sitemap-checker/) and fixes 3 [internal links](https://ursy.com/wiki/internal-linking/) that still pointed at the old address. Finally it runs our [broken link checker](https://ursy.com/broken-link-checker/) to catch anything missed.

## How to check it {#how-to-check-it}

1. Paste a title into our free [URL slug optimiser](https://ursy.com/webmaster-tools/url-slug-optimiser/) to get a clean, hyphenated slug.
2. Use the [URL parser](https://ursy.com/webmaster-tools/url-parser/) to split an address into its parts and spot stray parameters.
3. Run any address with special characters through the [URL encoder and decoder](https://ursy.com/webmaster-tools/url-encoder-decoder/).
4. Before renaming many pages, plan the moves with the [redirect mapper](https://ursy.com/webmaster-tools/redirect-mapper/), then read [how to move a site and keep your visits](https://ursy.com/wiki/move-a-website-without-losing-traffic/).
5. After any change, use [URL Inspection](https://ursy.com/wiki/url-inspection/) in Search Console to ask Google to fetch the new address.

## Questions {#questions}

### How long should a slug be? {#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? {#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? {#is-the-slug-the-same-as-a-permalink}

No. The [permalink](https://ursy.com/wiki/permalink/) is the full, lasting address of a page. The slug is the page’s own name inside it. See [WordPress SEO](https://ursy.com/wiki/wordpress-seo/) for how WordPress builds both.

## Related words {#related-words}

- [URL](https://ursy.com/wiki/url/)
- [SEO-friendly URL](https://ursy.com/wiki/seo-friendly-url/)
- [URL parameter](https://ursy.com/wiki/url-parameter/)
- [301 vs 302 redirect](https://ursy.com/wiki/301-vs-302-redirect/)
- [Canonical tag](https://ursy.com/wiki/canonical-tag/)

## Sources {#sources}

- [Google Search Central: URL structure best practices](https://developers.google.com/search/docs/crawling-indexing/url-structure), checked 24 November 2026
- [MDN: What is a URL?](https://developer.mozilla.org/en-US/docs/Learn_web_development/Howto/Web_mechanics/What_is_a_URL), checked 24 November 2026
- [RFC 3986: Uniform Resource Identifier generic syntax](https://www.rfc-editor.org/rfc/rfc3986), checked 24 November 2026
- [Google Search Central: site moves with URL changes](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
