What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 3 questions

Less than 30 seconds. Find out how much you really know about Google search.

🕒 ~30s 🎯 3 questions 📚 SEO Google

Official statement

Google recommends using hyphens rather than underscores in URLs. Google's tokenizer uses certain parts of the URL to understand page content, and cannot easily segment at the underscore level because many terms on the internet contain them.
🎥 Source video

Extracted from a Google Search Central video

💬 EN 📅 21/06/2022 ✂ 12 statements
Watch on YouTube →
Other statements from this video 11
  1. L'expérience de page suffit-elle vraiment à garantir une bonne UX pour Google ?
  2. Faut-il vraiment penser aux utilisateurs avant les machines en SEO ?
  3. Le contenu masqué dans les accordéons pénalise-t-il votre référencement ?
  4. Le contenu caché est-il devenu aussi important que le contenu visible pour Google ?
  5. Googlebot peut-il vraiment indexer du contenu caché derrière des clics utilisateur ?
  6. Pourquoi Google ignore-t-il votre navigation si elle n'utilise pas de vrais liens anchor ?
  7. Les Core Web Vitals suffisent-ils vraiment à mesurer l'expérience utilisateur ?
  8. Pourquoi Google refuse-t-il de donner des critères précis sur certains aspects de l'UX ?
  9. Les URLs lisibles et cohérentes sont-elles vraiment un critère de ranking ?
  10. L'accessibilité web influence-t-elle directement le classement dans Google ?
  11. Lighthouse rate-t-il vraiment la qualité de vos ancres de liens ?
📅
Official statement from (3 years ago)
TL;DR

Google recommends using hyphens rather than underscores in URLs because its tokenizer does not recognize the underscore as a word separator. In practice: 'seo-audit' will be understood as two distinct words, while 'seo_audit' will be treated as a single term. This technical limitation directly affects Google's ability to interpret your page content through their URLs.

What you need to understand

Why can't Google segment underscores?

The issue stems from the historical use of underscores in programming and variable names. In many languages, the underscore is an integral part of the name — removing or segmenting at this character would literally break the term.

Google therefore calibrated its tokenizer to treat the underscore as a standard alphanumeric character, not as a delimiter. The hyphen, on the other hand, is recognized as a natural word separator — just like a space.

Which parts of the URL does Google actually analyze?

Gary Illyes speaks of the "tokenizer" that uses "certain parts of the URL" — deliberately vague wording. In practice, Google primarily examines the slug (the part after the last slash) and potentially directory segments.

The URL becomes a relevance signal among others. Not decisive, but not negligible either — especially when other signals are balanced between multiple candidate pages.

Does this recommendation apply to all types of websites?

In theory yes, but the impact varies enormously. On an e-commerce site with thousands of dynamically generated URLs, refactoring the entire architecture to replace existing underscores can cause more damage than benefits.

On a new project or a site undergoing redesign, however — there's no excuse for not applying this rule from the start.

  • Hyphens = word separators recognized by Google
  • Underscores = treated as alphanumeric characters, no segmentation
  • Primary impact on the slug and URL segments
  • Recommendation especially applicable to new projects
  • On existing sites, evaluate the cost/benefit of major migration

SEO Expert opinion

Is this statement consistent with field observations?

Completely. Empirical testing confirms that Google does indeed dissociate terms separated by hyphens, while underscores produce a single token. This is measurable in SERPs for multi-term queries.

However — and this is crucial — the actual ranking impact remains marginal in the vast majority of cases. We're talking about a micro-signal among hundreds. Good content, solid authority, and relevant backlinks far outweigh this technical difference.

When does this rule become really problematic?

Two scenarios where it gets serious: multilingual sites with translated slugs, and e-commerce platforms with SKUs or technical identifiers in the URL. If your URLs contain product references like "REF_12345_BLUE", Google won't segment anything.

Another edge case: legacy CMS or frameworks imposing naming conventions with underscores. Migration can require heavy server rewrites or deep code modifications — with regression risks.

Should you really redo everything if your site uses underscores?

Let's be honest: probably not. Unless you're in an ultra-competitive sector where every micro-optimization counts, the ROI of a massive migration is questionable.

However, two simple rules apply: for any new page or section, use hyphens systematically. And if you're completely redesigning the site, take the opportunity to normalize — but don't do a migration just for this isolated reason.

Warning: Migrating existing URLs involves 301 redirects, risk of temporary position loss, and increased crawl budget. Always evaluate the impact versus gain before taking action.

Practical impact and recommendations

What should you do concretely on a new project?

Set it up in advance. Enforce the hyphens only convention in your templates, URL generation rules, and editorial guidelines. Most modern CMS platforms (WordPress, Shopify, Drupal) handle this natively.

If you're developing custom solutions: configure your router or slug generator to automatically replace spaces and special characters with hyphens, never underscores. Test with accented characters, apostrophes — the devil is in the edge cases.

How do you audit an existing site to spot underscores?

Crawl with Screaming Frog, Oncrawl, or Botify. Filter URLs containing "_" and evaluate their SEO weight: current organic traffic, rankings, backlinks. Prioritize strategic pages if you decide to migrate.

Also check for automatic generation patterns — pagination, filters, categories. A hidden underscore in a parameter or facet segment can multiply across thousands of URLs.

What mistakes should you avoid during migration?

Never migrate without an exhaustive redirect plan. Each old URL with underscore must point to its hyphenated version via permanent 301 redirect. Test in preprod, verify redirect chains (never more than one hop).

Second pitfall: forgetting canonical tags and sitemaps. After migration, update your XML sitemap, resubmit via Search Console, and monitor indexation for at least 4-6 weeks.

  • Configure your CMS or URL generator to use hyphens by default
  • Crawl the existing site to identify all URLs with underscores
  • Evaluate the SEO weight of each affected URL (traffic, rankings, backlinks)
  • Prioritize strategic pages if partial migration
  • Create a complete mapping of old URLs → new URLs
  • Implement permanent 301 redirects (never 302)
  • Update XML sitemap and canonical tags
  • Monitor indexation and rankings in Search Console post-migration
  • Document the convention for future site evolution
URL optimization with hyphens is solid technical foundation, but it fits into a broader SEO strategy. Between auditing existing URLs, managing redirects, post-migration monitoring, and weighing cost/benefit, these projects demand pointed expertise — especially on complex architectures. To avoid costly mistakes and traffic loss, partnering with a specialized SEO agency helps secure each step and integrate this optimization into a coherent action plan.

❓ Frequently Asked Questions

Dois-je migrer toutes mes URLs si elles contiennent des underscores ?
Pas forcément. Évaluez d'abord l'impact SEO réel : si vos pages performent bien et que la migration implique des risques techniques importants, le jeu n'en vaut souvent pas la chandelle. Pour les nouveaux contenus en revanche, utilisez systématiquement des tirets.
Les underscores pénalisent-ils vraiment mon référencement ?
Ils ne constituent pas une pénalité au sens strict, mais limitent la capacité de Google à segmenter les termes dans vos URLs. L'impact reste marginal par rapport à d'autres facteurs (contenu, backlinks, UX), mais dans un environnement concurrentiel, chaque signal compte.
Cette règle s'applique-t-elle aussi aux noms de fichiers images ou PDF ?
Oui, pour la même raison technique. Google segmente également les noms de fichiers pour comprendre leur contenu. Privilégiez 'rapport-annuel-2023.pdf' plutôt que 'rapport_annuel_2023.pdf'.
Peut-on mélanger tirets et underscores dans une même URL ?
Techniquement oui, mais c'est incohérent et source de confusion — tant pour Google que pour les utilisateurs. Adoptez une convention unique (tirets) et tenez-vous-y sur l'ensemble du site.
Les autres moteurs de recherche ont-ils la même logique ?
Bing et la plupart des moteurs modernes suivent des règles similaires, même si les détails techniques peuvent varier. En pratique, optimiser pour Google avec des tirets bénéficie à votre visibilité globale.
🏷 Related Topics
Domain Age & History Content AI & SEO Domain Name

🎥 From the same video 11

Other SEO insights extracted from this same Google Search Central video · published on 21/06/2022

🎥 Watch the full video on YouTube →

Related statements

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.