designwithfocus

On-page SEO

URL SEO Best Practices Google Publishes for Crawlers

By Design With Focus Team 6 min read
A browser address bar with a short hyphenated path

Short answer

Google's URL SEO best practices ask for a simple, crawlable address: readable words, hyphens between those words, and ordinary key=value parameters. Fragments should not swap the page content, because Google generally does not index them. Matching uppercase and lowercase, and dropping session IDs, keeps one page from looking like many. The docs cite IETF STD 66 for the URL syntax itself.

Last verified against the sources listed below.

Key takeaways

  • Google Search says it supports URLs as defined by IETF STD 66, which is RFC 3986.
  • Use hyphens between words. Google says underscores have been used to keep a concept together.
  • Prefer descriptive words over long ID numbers in the path.
  • Parameters should use = and &. A comma can list several values for one key.
  • Do not use a fragment, the part after #, to show different content.
  • If the server treats /Apple and /apple as the same page, publish one case only.

URL SEO best practices, in Google’s Search docs, are rules that keep a crawler from seeing one page as thousands of addresses. The URL structure guide, updated October 21, 2026, says that if the structure fails the crawl requirements, Google Search is likely to crawl inefficiently, including at an extremely high rate, or not at all.

The same guide says Google supports URLs as defined by IETF STD 66. That standard is RFC 3986, published in January 2005. The recommendations under the requirements are about words, hyphens, parameters, and case.

What must a URL do to be crawlable?

Three requirements sit above the style tips. Follow STD 66, and percent-encode characters the standard calls reserved. Do not use a fragment to change the page’s content, because Google says it generally does not support fragments. The example is https://example.com/#/potatoes, and if JavaScript changes what the reader sees, use the History API instead.

Encode parameters in the common way. An equal sign separates a key and a value, and an ampersand adds the next parameter. Several values for one key can use a comma, which the guide says does not conflict with STD 66. A colon-and-bracket style, and a style that separates pairs with commas only, are the patterns it marks as not recommended.

RFC 3986 is the syntax behind that percent-encoding. A percent-encoded octet is % plus two hex digits, and the RFC’s example is %20 for a space. Hex letters may be upper or lower case and still match. The RFC says producers should use uppercase hex.

MDN’s URL API says the interface encodes URLs by the RFC 3986 rules, and its example turns a path with é into %C3%A9.

Why does Google want words and hyphens?

Readable words help Google and readers tell pages apart. The guide prefers https://example.com/wiki/Aviation over a long index.php query full of IDs. Use the audience’s language in the path, including transliterated words when that is how they search. The examples are a German food path and a Japanese path.

Hyphens are the separator Google recommends. Underscores, it says, have a history of gluing a concept together, the way a function might be named format_date, while a hyphen marks a word boundary. summer-clothing is the recommended shape. summer_clothing and greendress are the ones it does not recommend.

Use as few parameters as you can, and drop any parameter that does not change the content. URLs are case sensitive: /APPLE and /apple are different addresses. If the server treats them as one page, publish a single case. For a multi-regional site, the guide’s examples are a country domain such as https://example.de or a subdirectory such as https://example.com/de/.

How should parameters and filters work?

Extra parameters are how a small catalog becomes an endless crawl. The guide names additive filters, such as hotels that combine beach and fitness until every combination is its own URL. It says Googlebot only needs a small number of lists from which it can reach each hotel.

Irrelevant parameters do the same thing. The examples include referral codes, sort parameters, and session IDs. Wherever possible, avoid session IDs in URLs and consider cookies instead.

A calendar with no start or end can also emit links forever. The guide says to put nofollow on links to dynamically created future calendar pages. Broken parent-relative links can invent paths if missing pages do not return the right status, so use root-relative URLs instead.

If those URLs are already being crawled, the guide says to consider robots.txt for dynamic search results, calendars, and ordering or filtering URLs. Faceted navigation has its own crawling guide, which this page points to rather than replacing.

What should a store change in the path?

The ecommerce URL guide, updated December 10, 2025, applies the same ideas to products. It says Google does not use fragment identifiers in indexing, so #black and #white on one product path are the same page. A timestamp query such as now=12:34am can look like an infinite set of URLs for one about page.

Put words in the path. The recommended example is /product/black-t-shirt-with-a-white-collar, and the one it does not recommend is /product/3243. Each page of a paginated list needs its own URL. The guide says pagination is where it sees the most URL mistakes.

Choice Recommended in the ecommerce guide Not recommended there
Parameter shape ?key=value, as in ?color=green A bare ?green or ?2
Repeated key ?type=candy,sweet ?type=candy&type=sweet
Stable links ?location=UK location=nearby, a clock time, or a session id
Variant URL /t-shirt/green or ?color=green A fragment that only changes color
Path words A descriptive product path A numeric id alone

For variants, each combination should be identifiable by its own URL, either a path segment or a query. If the query is optional, the guide says to use the URL with the query omitted as the canonical. Use that same URL in internal links, the sitemap, and the canonical tag. It also says not to rely on JavaScript alone for navigation, because Googlebot might not detect it, and not to use generic anchor text such as “click here”.

Where do these rules stop?

They do not promise a click-through change. Neither Google page states a percentage lift for hyphens or for shorter paths. They describe crawl waste, duplicate URLs, and addresses humans can read.

The WHATWG URL Standard defines URLs, domains, IP addresses, and percent-encoded bytes for the web platform. Google’s crawl doc points at STD 66 for what Search supports. When you build a link, follow the Google patterns above, and let the URL parser percent-encode reserved characters instead of hiding a second page in a fragment.

A shared link still needs a preview image. The Open Graph resizer sets that image’s frame.

How crawlers use the URL is part of technical SEO.

How search engines work is the wider crawl story.

Structured data describes the page. It does not repair a fragment that Google will not index.

Frequently asked questions

Should URLs use hyphens or underscores?

Google's URL structure guide says to separate words with hyphens, not underscores, when you can. The reason it gives is historical: underscores often keep a concept together, as in a function name like format_date, while a hyphen signals a word boundary. Joining the words with no separator, such as greendress, is the pattern it does not recommend. Hyphens help users and search engines identify the concepts in the URL.

Do URL fragments change what Google indexes?

Google's URL guide says not to use fragments to change page content, because Google Search generally does not support URL fragments. Its example is a hash route such as example.com/#/potatoes. If JavaScript changes the content, use the History API instead. The ecommerce guide adds that Google does not use fragment identifiers in indexing, so a product path with #black and the same path with #white count as one page.

Are URLs case sensitive?

Google says yes, because it follows IETF STD 66 like other HTTP clients. Its example is that /APPLE and /apple are distinct URLs, each with its own content. If your server treats those spellings as the same page, publish one case so Google can tell they are one page. RFC 3986, which is STD 66, also says percent-encoded hex digits A through F match a through f, and that producers should use uppercase hex.

How should query parameters be written?

Use an equal sign between the key and the value, and an ampersand between parameters. For several values of one key, Google says you can use a comma, as in color=purple,pink,salmon. Colon-and-bracket formats, and comma-only pair formats, are the ones it does not recommend. The ecommerce guide adds that repeating one parameter, type=candy and type=sweet, may lead Googlebot to ignore a value, so use type=candy,sweet.

What parameters should stay out of internal links?

Google's URL guide says to drop parameters that do not change the content. Referral codes, sort parameters, and session IDs are the patterns it says multiply URLs. The ecommerce guide says not to link internally to session IDs, tracking codes, values such as location=nearby, or the current time. Use a stable URL, and keep session state in a cookie when you can. robots.txt can also keep Googlebot off the leftover URLs.

Sources