Skip to content

Library Guides

URL slugs for product pages: how to write SEO-friendly URLs

What Google documents about URL structure, a rules table with good and bad slugs, umlauts, variants, category paths, redirects and 10 worked examples.

By CentralUpdated 23 November 202611 min read13 sources, checked 23 November 2026
On this page
  1. The rules in one table
  2. What Google documents, and what it does not
  3. Umlauts and accents: transliterate or percent-encode
  4. Product name, SKU or ID in the URL
  5. Variants: parameters or paths
  6. Category paths
  7. When a slug changes
  8. Image file names
  9. Ten worked examples: from product name to slug
  10. Common mistakes
  11. Where Central helps

In short

  • Google recommends readable words rather than long ID numbers in URLs, words in the audience's language and hyphens instead of underscores to separate words.
  • Google states no maximum length for a URL path; its only sentence on length is to shorten URLs by trimming unnecessary parameters.
  • Google's SEO Starter Guide says keywords in the domain name or URL path have hardly any effect beyond appearing in breadcrumbs.
  • Google asks that each product variant can be identified by a separate URL, as a path segment such as /t-shirt/green or a query parameter such as /t-shirt?color=green.
  • When a URL changes, Google recommends a permanent server-side redirect such as 301 or 308 and keeping it for generally at least 1 year.
  • Non-ASCII characters such as umlauts should be percent-encoded in links, according to Google; transliterated words are the other option it names.
Slug and file name generatorFree tool

The rules in one table#

A product URL should be readable, unique and stable. The slug is the part you write: the last path segment, such as trail-runner-2-forest-green. The rules below come from Google's URL structure page and its URL design page for ecommerce sites, read on November 23, 2026.

RuleGoodBadWhat Google says
Readable words, not ID numbers/products/beam-400-headlamp/products/3243"use readable words rather than long ID numbers"
Hyphens between words/rain-jacket/rain_jacket, /rainjacketHyphens instead of underscores: they "clearly signal a word boundary"
One case/trail-runner-2/Trail-Runner-2 next to /trail-runner-2Google treats /APPLE and /apple as distinct URLs; convert all text to the same case
The audience's language/regenjacke-stormline on a German page/rain-jacket-stormline on a German page"Use words in your audience's language in the URL"
Umlauts and accents/gemuese or /gem%C3%BCse/gemüse typed raw into a linkTransliterated words where applicable; non-ASCII characters percent-encoded
No fragments for content/trail-runner-2?color=green/trail-runner-2#green"Google does not use fragment identifiers in indexing"
Parameters as key and value?color=green&size=42?green,42"Use ?key=value URL parameters rather than ?value, where possible"
No temporary parameters in internal links/camp-blanket/camp-blanket?sessionid=6EE2Avoid linking internally to session IDs and tracking codes
One URL per pageThe same URL in links, sitemap and canonical tag/product/black-t-shirt and /product?sku=1234 both live"Minimize the number of alternative URLs that return the same content"

The slug generator at the top of this page applies the first five rules to a list of product names: lowercase, hyphens, umlauts transliterated, accents dropped.

What Google documents, and what it does not#

Three points are often stated more firmly than the documentation does.

  • Length. Google gives no maximum for a URL path and no character count. Its one sentence on length: "Whenever possible, shorten URLs by trimming unnecessary parameters." The 80-character cut of the slug generator is the tool's own choice, not a Google limit.
  • Keywords. Two Google pages put it differently. The ecommerce page says: "The words in URLs may help Google better understand the page." The SEO Starter Guide lists keywords in the URL among the things not to focus on: they "have hardly any effect beyond appearing in breadcrumbs". Both fit one practice: describe the product once, in plain words, and stop.
  • Lowercase. Google does not require lowercase. It asks for one case when the server treats both the same, so that it can tell the URLs reference one page.

For syntax, Google supports URLs as defined by IETF STD 66, which is RFC 3986. The RFC's unreserved characters are "uppercase and lowercase letters, decimal digits, hyphen, period, underscore, and tilde". A slug of lowercase letters, digits and hyphens stays inside that set and never needs encoding.

Bing's Webmaster Guidelines add one rule of their own: "Avoid unnecessary URL changes."

Umlauts and accents: transliterate or percent-encode#

Both work; transliteration is simpler to live with. Google names both in one section: use words in the audience's language "and, if applicable, transliterated words", and percent-encode non-ASCII characters. Its example marks https://example.com/gem%C3%BCse as recommended and https://example.com/gemüse as not recommended in a link.

Option"Größe L" becomesWhat you get
Transliterategroesse-lPlain ASCII. The slug reads the same in a browser, an email, a feed and a spreadsheet
Keep and percent-encodegr%C3%B6%C3%9Fe-lThe correct spelling for the reader where software decodes it, and %C3%B6 where it does not
Drop the dotsgrosse-lA different word in German. Use ae, oe, ue and ss

A raw umlaut does not stay raw in transit. The URL Standard has the parser convert code points above U+007F to percent-encoded bytes, and RFC 3986 describes the encoding: the character becomes UTF-8 bytes first, then each byte is percent-encoded. The request carries %C3%B6 whether you typed it or not; the question is only what people see and copy.

What the slug generator does:

  • ä, ö, ü and ß become ae, oe, ue and ss. The letters æ, ø, å, œ, ł and đ become ae, o, a, oe, l and d.
  • Other accents are dropped: é becomes e, ñ becomes n, č becomes c, ż becomes z.
  • An ampersand becomes "and"; every other character that is not a letter or digit becomes a hyphen. That includes apostrophes and decimal points: "Men's" turns into men-s and "0.75 L" into 0-75-l.
  • Letters outside the Latin alphabet, such as Greek or Cyrillic, are removed. Transliterate such names first, or use native-script slugs with percent-encoding: one of Google's own examples of an audience-language URL is in Japanese script.

Each language version of a product gets a slug in its own language. Google's multilingual guidance accepts localized words in URLs and asks for UTF-8 encoding; hreflang for online shops shows how to connect the versions.

Product name, SKU or ID in the URL#

Use the product name; add a model number when it is what buyers type. Google's ecommerce page marks /product/black-t-shirt-with-a-white-collar as recommended and /product/3243 as not recommended.

In the slugExampleReadableChanges when
Product name/products/trail-runner-2-mens-trail-running-shoeYesThe product is renamed
Name plus model number/products/beam-400-headlamp-np-b400YesThe product is renamed
SKU only/products/np-tr2-fg-42Only to people who know the codeYour SKU scheme changes
Database ID only/products/3243NoRarely

An ID is the most stable choice and the least readable, which is why Google advises against it. A name is readable and changes when marketing renames the product, so pair it with redirects (see below). If you put SKUs in URLs, they have to be stable first: how to create SKU numbers covers a scheme that does not need renumbering.

Two products with the same name need different slugs. The slug generator numbers repeats (trail-mix-50-g, trail-mix-50-g-2); a distinguishing fact such as flavor or pack size says more than a number.

Variants: parameters or paths#

Google accepts both and asks for one thing: "make sure that each variant can be identified by a separate URL". Its two recommended structures:

AspectPath segmentQuery parameter
Google's example/t-shirt/green/t-shirt?color=green
Canonical URLEach variant page has its own; no single URL represents the product group"use the URL with the query parameter omitted as the canonical URL"
In Google's variant markupMulti-page site: variants "are accessible on different pages"Single-page site: variants are selectable on one page, "usually through query parameters"

Whichever you choose, the variant URL has to open the page with that variant selected. Google's variant markup page describes this as "showing the right image, price, and availability". A fragment such as /t-shirt#green does not qualify, because Google does not use fragments in indexing. How to model the variants behind the URLs is in product variants.

Category paths#

A category in the path reads well and costs stability. Compare:

StructureExampleWhen the product moves or sits in two categories
Flat/products/camp-blanketNothing changes
Category in the path/camping/blankets/camp-blanketThe URL changes and needs a redirect, or two URLs show the same product

Two URLs for one product are what Google's ecommerce page asks you to minimize; where they exist, Google picks one as canonical and you should name your choice in the canonical tag. The category does not have to live in the URL to be understood. For breadcrumb markup, Google recommends "breadcrumbs that represent a typical user path to a page, instead of mirroring the URL structure". Filter and sort parameters on category pages are a separate matter, handled in robots.txt for online shops.

When a slug changes#

Redirect the old URL to the new one, permanently and on the server. Google documents the steps for site moves; a renamed product is the same move at the size of one URL.

  1. Decide whether the change is needed. A new title does not require a new slug.
  2. Map old to new. One line per URL.
  3. Use a permanent redirect. Google recommends "HTTP permanent redirects if possible, such as 301 and 308", and treats them as a signal that the target should be canonical (redirects). Bing says to use 301 for permanent changes, 302 only for changes of less than 2 days, and redirects instead of canonical tags.
  4. Redirect straight to the final URL. Googlebot can follow up to 10 hops, but Google advises redirecting directly and, where a chain cannot be avoided, keeping it short: "ideally no more than 3 and fewer than 5".
  5. Update what points to the old URL: internal links, the sitemap, canonical tags, hreflang entries and the link in your product feed.
  6. Keep the redirect. Google says "generally at least 1 year", and to consider keeping redirects indefinitely for users.
  7. Do not send old product URLs to the home page. Google says many old URLs redirected to one irrelevant destination "might be treated as a soft 404 error".

Google's site move page tells you to expect temporary ranking fluctuation while it recrawls and reindexes. The title shown with the URL in a result is a separate setting; see meta title and description length.

Image file names#

Name image files the way you name pages. Google's image SEO page says my-new-black-kitten.jpg is better than IMG00023.JPG, asks that the file extension match the file type and, for localized images, that file names are translated too. Image URLs move like page URLs: Google includes embedded images in a site move.

The slug generator writes an image file name next to each slug, as the slug plus .jpg: beam-400-headlamp-400-lm-usb-c.jpg. Add the view when a product has several photos (-front, -side, -detail). Formats, sizes and image sitemaps are in image SEO for product pages.

Ten worked examples: from product name to slug#

Each slug is what the slug generator returns for the name on the left.

Product nameSlugWhat happened
Trail Runner 2 Mens Trail Running Shoe, Forest Greentrail-runner-2-mens-trail-running-shoe-forest-greenLowercase; spaces and the comma become hyphens
Trail Runner 2 Men's Trail Running Shoe, Forest Greentrail-runner-2-men-s-trail-running-shoe-forest-greenThe apostrophe becomes a hyphen. Remove it from the name first if you want mens
Beam 400 Headlamp, 400 lm, USB-Cbeam-400-headlamp-400-lm-usb-cDigits stay; the existing hyphen stays
Daunenschlafsack Driftdown 2, Größe L, für Körpergröße bis 195 cmdaunenschlafsack-driftdown-2-groesse-l-fuer-koerpergroesse-bis-195-cmGerman: ö to oe, ü to ue, ß to ss
Réchaud à gaz Ember, 2 800 Wrechaud-a-gaz-ember-2-800-wFrench: accents dropped
Fjellkjøkken Sæt, blåfjellkjokken-saet-blaScandinavian letters: ø to o, æ to ae, å to a
Kurtka przeciwdeszczowa Stormline, żółtakurtka-przeciwdeszczowa-stormline-zoltaPolish: ż to z, ó to o, ł to l
Camp Stove & Windshield Setcamp-stove-and-windshield-setThe ampersand becomes "and"
Water Bottle 0.75 Lwater-bottle-0-75-lThe decimal point becomes a hyphen. Write "750 ml" in the name to avoid it
Northpeak Stormline Women's Waterproof Rain Jacket, Slate Blue, Size M, 2.5-Layer Recycled Nylon, Packablenorthpeak-stormline-women-s-waterproof-rain-jacket-slate-blue-size-m-2-5-layerLonger than 80 characters: cut at the last whole word that fits

The last row shows why a title is not a slug. A slug needs the words that identify the page, not every attribute: stormline-womens-rain-jacket-slate-blue is enough.

Common mistakes#

  • A new slug with every title edit. Each one needs a redirect, and chains build up.
  • Raw umlauts in links, feeds or sitemaps. Encode them or transliterate.
  • Two cases live. /Camp-Blanket and /camp-blanket are two URLs to Google.
  • Tracking parameters in internal links. Google asks you to avoid them; use long-term, persistent URLs.
  • Words repeated for search engines. rain-jacket-rain-coat-waterproof-jacket helps no reader, and Google says URL keywords have hardly any effect.
  • Variants on fragments. Google does not index #green as a page.

URLs are one row of the product page SEO checklist, next to titles, descriptions, images and structured data.

Where Central helps#

Central researches the facts behind a product page (name, model, variant attributes, identifiers) in your own data, on the open web and in verified databases, and backs every value with sources you can check. It writes titles, descriptions and attributes from that one record and holds back what the sources do not support. When a fact behind a text changes, Central flags the text.

See it on your own products

Questions

What is an SEO-friendly URL?

A URL a person can read: lowercase words that describe the page, separated by hyphens, in the language of the audience, without session IDs or tracking parameters, and stable over time. Google recommends readable words rather than long ID numbers.

Should a product URL contain keywords?

It should contain the words that describe the product, because people read URLs. Do not expect a ranking effect from them: Google's SEO Starter Guide says keywords in the domain name or URL path have hardly any effect beyond appearing in breadcrumbs.

Hyphens or underscores in URLs?

Hyphens. Google recommends separating words with hyphens instead of underscores, because hyphens clearly signal a word boundary. Joined words such as greendress are also not recommended.

How do I handle umlauts and accents in a URL?

Either transliterate them (ä to ae, ö to oe, ü to ue, ß to ss) or keep them and percent-encode them in links, as in gem%C3%BCse. Google names both options. Transliteration gives a plain ASCII slug that reads the same everywhere.

What happens when I change a product URL?

The old URL has to redirect to the new one with a permanent server-side redirect, such as a 301. Google treats that as a signal that the new URL should be canonical, expects temporary ranking fluctuation while it recrawls, and recommends keeping redirects for generally at least 1 year.

Sources

  1. URL structure best practices for Google SearchGoogle Search Centralchecked 23 November 2026
  2. Designing a URL structure for ecommerce sitesGoogle Search Centralchecked 23 November 2026
  3. Search Engine Optimization (SEO) Starter GuideGoogle Search Centralchecked 23 November 2026
  4. Redirects and Google SearchGoogle Search Centralchecked 23 November 2026
  5. Site moves with URL changesGoogle Search Centralchecked 23 November 2026
  6. What is canonicalizationGoogle Search Centralchecked 23 November 2026
  7. Product variant structured data (ProductGroup, Product)Google Search Centralchecked 23 November 2026
  8. Breadcrumb (BreadcrumbList) structured dataGoogle Search Centralchecked 23 November 2026
  9. Google image SEO best practicesGoogle Search Centralchecked 23 November 2026
  10. Managing multi-regional and multilingual sitesGoogle Search Centralchecked 23 November 2026
  11. Bing Webmaster GuidelinesBing Webmaster Toolschecked 23 November 2026
  12. RFC 3986: Uniform Resource Identifier (URI): Generic SyntaxIETFchecked 23 November 2026
  13. URL StandardWHATWGchecked 23 November 2026

More on this topic

Product pages and SEO

You choose what goes in and where it goes out.

Central AI does everything in between. Your first 3 products are free.

  1. Your inputYour shop, your files or your product pages.
  2. Central AIResearches, verifies and writes everything in between. Every value is backed by sources you can check; what the sources do not support is held back.
  3. Your channelsProduct data and listings for the channels you choose.