# URL slug (the readable name of a page in its address)

> What a URL slug is, where it sits in a URL in the terms of the URL standard, how it differs from a permalink and a handle, and what makes a good one.

Source: https://central.to/glossary/url-slug · Updated 2026-11-23 · Published by Central (https://central.to)

**Definition:** A URL slug is the part of a web address that names one page in readable words, usually the last path segment, such as trail-runner-2-forest-green in /products/trail-runner-2-forest-green.

Free tool: [Slug and file name generator](https://central.to/tools/slug-generator). Turn product names into clean URL slugs and image file names, with umlauts and accents handled and duplicates numbered.

## What it means in practice

The slug is the name of a page inside its address. In a shop, every product, category and article has one, and it is what you edit when you "change the URL" of a product. Shop and content systems create it from the title when the page is first saved: lowercase, with hyphens between the words. The WordPress glossary describes it as "a few words that describe a post or a page", usually "a URL friendly version of the post title".

People read slugs in search results, in links they share and in the address bar. That makes the slug one item on the [product page SEO checklist](https://central.to/guides/product-page-seo).

## Where the slug sits in a URL

Take `https://shop.example/products/trail-runner-2-forest-green?size=42#reviews`:

| Part | In the example | Term in the URL Standard |
| --- | --- | --- |
| `https` | How the page is fetched | Scheme |
| `shop.example` | The shop's domain | Host |
| `/products/trail-runner-2-forest-green` | Where the page lives | Path, made of two path segments |
| `trail-runner-2-forest-green` | The name of this page | The last path segment: the slug |
| `size=42` | An option for the page | Query |
| `reviews` | A place on the page | Fragment |

"Slug" is not a term of the standards. The [URL Standard](https://url.spec.whatwg.org/) speaks of a path and its segments: "A URL path segment is an ASCII string. It commonly refers to a directory or a file, but has no predefined meaning." RFC 3986 says the same from the other side: "A path consists of a sequence of path segments separated by a slash ("/") character." The word slug comes from publishing systems, which needed a name for the segment an editor writes.

## Slug, permalink and handle

| Term | What it is | Example |
| --- | --- | --- |
| Slug | The readable name of one page: a single path segment | `wordpress-203` |
| Permalink | The whole permanent URL of a page. WordPress defines it as "a URL at which a resource or article will be permanently stored". The slug is one part of it | `https://wordpress.org/development/2006/06/wordpress-203/` |
| Handle | Shopify's name for the same idea. A handle is generated from the title, always lowercase, with whitespace and special characters replaced by hyphens, and it "is used to build the URL for the resource". Templates also use it to fetch the resource | `potion`, and `potion-1` for a second product with the same title |

Both systems keep the address when the title changes. [Shopify's documentation](https://shopify.dev/docs/api/liquid/basics) says: "After a resource has been created, changing the resource title doesn't update the handle." The [WordPress glossary](https://wordpress.org/documentation/article/wordpress-glossary/) says a post slug "should not be changed". A changed slug is a changed URL, and the old one then needs a redirect.

## What makes a good slug

1. Readable words that describe the page, not an ID number.
2. Lowercase, with hyphens between the words.
3. In the language of the page, with umlauts and accents transliterated or percent-encoded.
4. Stable: when it has to change, the old address redirects to the new one.

Google's wording for these rules, good and bad examples and the redirect steps are in [URL slugs for product pages](https://central.to/guides/url-slugs-for-product-pages). The slug generator at the top of this page applies the first three lines to a list of product names.

Three neighbors of the slug have their own guides: image file names follow the same pattern ([image SEO for product pages](https://central.to/guides/image-seo-for-product-pages)), each language version of a page gets a slug in its own language ([hreflang for online shops](https://central.to/guides/hreflang-for-online-shops)), and colors and sizes need addresses too ([product variants](https://central.to/guides/product-variants)).

## Questions

### What is a slug in a URL?

The readable name of one page inside its address, usually the last path segment. In https://shop.example/products/trail-runner-2-forest-green the slug is trail-runner-2-forest-green.

### Is a slug the same as a permalink?

No. The permalink is the whole permanent URL of a page; the slug is the one part of it that names the page. WordPress's glossary gives the permalink https://wordpress.org/development/2006/06/wordpress-203/ and its slug wordpress-203.

### Can I change a slug later?

Yes, but the address changes with it, so the old URL has to redirect to the new one with a permanent redirect. Shop and content systems keep the slug when you edit the title for that reason.

## Sources

1. [URL Standard](https://url.spec.whatwg.org/), checked 2026-11-23
2. [RFC 3986: Uniform Resource Identifier (URI): Generic Syntax](https://www.rfc-editor.org/rfc/rfc3986), checked 2026-11-23
3. [WordPress Glossary](https://wordpress.org/documentation/article/wordpress-glossary/), checked 2026-11-23
4. [Liquid basics: Handles](https://shopify.dev/docs/api/liquid/basics), checked 2026-11-23
5. [URL structure best practices for Google Search](https://developers.google.com/search/docs/crawling-indexing/url-structure), checked 2026-11-23

## More on this topic: Product pages and SEO

- [Product page SEO: what search engines and AI assistants read](https://central.to/guides/product-page-seo.md)
- [How to write product descriptions: structure, examples and channel rules](https://central.to/guides/how-to-write-product-descriptions.md)
- [hreflang](https://central.to/glossary/hreflang.md)
- [Hreflang for online shops: languages, countries and x-default](https://central.to/guides/hreflang-for-online-shops.md)
- [JSON-LD](https://central.to/glossary/json-ld.md)
- [Meta title and description length for product pages](https://central.to/guides/meta-title-and-description-length.md)
- [Product description examples and a template you can copy](https://central.to/guides/product-description-examples.md)
- [Product page FAQ: which questions to answer, and FAQ schema](https://central.to/guides/product-page-faq.md)
- [Product schema markup: the structured data Google needs](https://central.to/guides/product-schema-markup.md)
- [Structured data](https://central.to/glossary/structured-data.md)
- [URL slugs for product pages: how to write SEO-friendly URLs](https://central.to/guides/url-slugs-for-product-pages.md)
- [Product description writer](https://central.to/tools/product-description-writer.md) (Free tool)
- [Product FAQ writer](https://central.to/tools/product-faq-writer.md) (Free tool)
- [Search snippet preview](https://central.to/tools/search-snippet-preview.md) (Free tool)
- [Slug and file name generator](https://central.to/tools/slug-generator.md) (Free tool)
- [Hreflang generator](https://central.to/tools/hreflang-generator.md) (Free tool)
- [Product schema checker](https://central.to/tools/product-schema-checker.md) (Free tool)
- [Product page checker](https://central.to/tools/product-page-checker.md) (Free tool)
- [Duplicate description finder](https://central.to/tools/duplicate-description-finder.md) (Free tool)

## Try Central on your own products

Central is the AI-first product content operating system: you choose the input (your shop, files or product pages) and the channels; Central AI researches, verifies and writes the product data and content in between, every value backed by sources you can check. The first 3 products are free. To start with a shop, open https://central.to/users/sign_up?onboarding_url=SHOP_ADDRESS (replace SHOP_ADDRESS with the shop's website address).
