Skip to content
News

Google: use hyphens, not underscores, to separate words in URLs

Google has clarified its URL structure advice: separate words with hyphens rather than underscores. What it means for your site and what to do now.

On 23 October 2026 Google reported in its Google Search Central documentation updates that it has updated its best practices for URL structure. Google has clarified its advice to separate words in a URL with hyphens rather than underscores. The change brings the documentation in line with episodes of the video series The Non-Canonical Cabinet.

What has changed?

The URL structure best practices now explain more clearly why hyphens are preferred:

  • Hyphens (-) make it easier for people and search engines to pick out the concepts in a URL.
  • Underscores (_) have long been used to join concepts together, for instance in function names in programming languages, such as format_date. A hyphen, by contrast, marks the boundary between two words.
  • Words run together, such as greendress, are also among the examples Google advises against.

The page also lists requirements for a crawlable URL structure. If your URLs fall short, the page says Google is likely to crawl your site inefficiently: at an extremely high rate, or not at all. Some of the points:

  • Follow the IETF STD 66 standard and percent-encode reserved characters.
  • Do not use fragments (the part after #) to change what a page shows. With JavaScript, use the History API.
  • Separate parameters with = and &; for several values under one key you can use a comma, for example.
  • Use readable words in your audience's language rather than long ID numbers, and keep parameters to a minimum.
  • URLs are case sensitive: /APPLE and /apple are two different URLs to Google.

Google also describes pitfalls that produce needless numbers of URLs: filters that can be stacked, irrelevant parameters such as referral, sorting and session parameters, endless calendars and broken relative links.

What does this mean for SEO?

Google is clarifying existing advice. If you have URLs with underscores, that is no reason for a large migration. The page does not say such URLs fail, but it recommends hyphens because they make word boundaries clearer. Changing URLs means redirects, updated internal links and a period of re-indexing. Weigh that against the benefit. For new pages and sections, choose hyphens from now on.

For most sites, the crawlability points matter more. Stacked filters, parameters and session IDs can generate large numbers of URLs with identical or similar content. Googlebot then uses more bandwidth than it needs to, or Google cannot index all the content on your site. Google mentions robots.txt as a way to fence off such URLs.

What does this mean for GEO?

The impact on GEO is small. The update concerns Google Search and says nothing about AI assistants.

One point does touch GEO indirectly: Google advises against swapping page content through fragments. Content that only appears after JavaScript runs is a risk for other crawlers too. Make sure your key text is simply in the HTML, so any system that fetches your page can read it.

What should you do now?

  1. Use hyphens in new URLs. Adjust your CMS settings or slug rules if they produce underscores or words run together.
  2. Only change existing URLs with a plan, using permanent redirects and updated internal links.
  3. Limit duplicate URLs. Trim unnecessary parameters and point variants to the main version. The check Canonical URLs are correct shows whether your canonical URLs are set properly.
  4. Do not make content depend on fragments or JavaScript. The check Text readable without JavaScript shows whether your text is visible without scripts.

Want to know where your site stands today? Run the free scan.

Source: Updated guidance on crawlable URL structures (Google Search Central documentation updates, 23 October 2026).

Frequently asked questions

Should I change existing URLs that contain underscores?

Google recommends hyphens, but does not say that URLs with underscores fail to work. Changing them requires redirects and causes a period of disruption, so in any case use hyphens for new pages.

Why are fragments in URLs a problem?

Google Search generally does not support URL fragments. If you use JavaScript to swap the content of a page, Google recommends the History API instead of fragments.

Are URLs case sensitive for Google?

Yes. Google treats /APPLE and /apple, for example, as separate URLs. If your server handles both the same way, convert all text to one case so Google can tell they are the same page.

Sources

  1. Updated guidance on crawlable URL structures (Google Search Central documentation updates)
  2. URL structure best practices for Google Search (Google Search Central)

What you can check

These items from our checklist relate to this news:

  • Canonical URLs are correct (measured automatically by the free scan)
  • Text readable without JavaScript (measured automatically by the free scan)
Start free scan

We summarise official announcements in our own words and explain what they mean. Always check details and figures in the original.

More news