Official statement
Other statements from this video 9 ▾
- 2:08 Comment Google réindexe-t-il réellement votre site lors du passage en Mobile First ?
- 9:57 Le PageRank est-il vraiment mort ou Google l'utilise-t-il encore en coulisses ?
- 21:04 Comment Google choisit-il vraiment l'URL canonique entre vos doublons ?
- 22:06 Faut-il vraiment optimiser les ancres de liens avec des mots-clés exacts ?
- 32:03 Plusieurs balises H1 nuisent-elles vraiment au référencement de votre site ?
- 33:56 Pourquoi robots.txt ne suffit-il pas à protéger vos environnements de test ?
- 39:44 L'outil de changement d'adresse dans la Search Console est-il vraiment indispensable pour une migration de domaine ?
- 47:01 Pourquoi Google indexe-t-il votre contenu JavaScript en différé et comment l'anticiper ?
- 50:00 Le noindex empêche-t-il réellement le passage de jus de lien et le crawl des liens internes ?
Google confirms that file names remain a marginal signal in its algorithm. While there is a distinction between hyphens and underscores, their weight is negligible compared to other ranking criteria. In practice, prefer hyphens to facilitate the parsing of your URLs, but don't waste time renaming your thousands of existing files.
What you need to understand
Does Google consider file names as a ranking factor?
Yes, but their influence remains minimal within the ecosystem of hundreds of signals that Google evaluates. This official statement explicitly places file names in the category of micro-optimizations, far removed from structural levers like content, backlinks, or technical architecture.
Google treats URLs as strings that it breaks down into tokens. The hyphens serve as natural separators, allowing the engine to distinguish 'red-dress' into two distinct words. Underscores, on the other hand, stick the terms together: 'red_dress' becomes a single token 'reddress' in certain parsing contexts.
Why does this difference between hyphens and underscores still exist?
This is a legacy from the early years of the web. Unix naming conventions favored underscores, while HTTP standards and good SEO practices gradually adopted hyphens as delimiters. Google had to adapt to both schools, but its natural language processing engine clearly favors explicit separators.
In reality, Google's modern algorithms manage underscores better than they did ten years ago. Machine learning and contextual analysis largely compensate for this mechanical difference. Still, Google maintains its recommendation for hyphens based on the principle of maximum readability.
What is the real impact on a site's performance?
Field tests show a near-zero correlation between the type of separator and rankings in the SERPs. Sites using underscores do not suffer a visible penalty, as long as their overall strategy is solid.
This statement mainly aims to avoid unnecessary obsessions. Too many junior SEOs waste hours debating syntax details while their competitors produce content or optimize their internal linking. Google cuts to the chase: focus elsewhere.
- File names remain an active signal, but of marginal weight
- Hyphens facilitate parsing on Google's side, but the performance gap is negligible
- Mass renaming of your existing URLs for this sole reason brings no measurable gain
- Apply the hyphen rule only to new content creations
- Prioritize consistency: do not mix hyphens and underscores on the same domain
SEO Expert opinion
Does this statement truly reflect field observations?
Yes, and this is one of the rare times Google explicitly acknowledges the weakness of a signal without beating around the bush. Audits on thousands of sites show that SERP positions do not correlate with the format of file names. Sites ranking on the first page use hyphens, underscores, or even no separator interchangeably.
What sometimes holds back is the confusion between file names and URL structure. Google is specifically talking about files (images, PDFs, resources), not the overall architecture of page URLs. For the latter, hyphens remain the universal standard. Mixing the two concepts generates misinterpretations.
What are the real cases where file names matter?
For images, the file name contributes slightly to ranking in Google Images. A file named 'nike-running-shoe.jpg' offers a slight advantage over 'IMG_3847.jpg' as it reinforces semantic coherence with the alt text and the page context. But even there, the impact remains modest compared to the quality of the image, its compression, and its editorial integration.
Indexed PDFs represent the other notable exception. Google extracts and displays the file name in result snippets for documents. A PDF named 'seo-technical-guide-2023.pdf' generates more clicks than 'final-document-v3.pdf'. Here, it's less about pure ranking and more about click-through rate optimization.
Should we completely ignore this factor?
No, simply apply the principle of least rational effort. For your new creations, use hyphens and descriptive keywords by default. It's a good practice that costs zero extra time and brings a marginal cumulative benefit across thousands of resources.
However, reject any project for URL migration or mass renaming justified solely by this criterion. The risk of 404 errors, loss of SEO juice through poorly configured redirects, and developer time mobilized far outweigh the theoretical gain. [To verify]: some CMS still generate underscores by default in their automatic slugs; check your settings.
Practical impact and recommendations
What should be done concretely on an existing site?
Don't change anything if your current URLs are functioning and ranking properly. Google states it clearly: this is not a critical factor. Launching a global renaming campaign would mean breaking URLs for an invisible gain, with a real risk of temporary regression in the SERPs during the recrawl phase.
Focus your efforts on new pages, images, and resources. Configure your CMS and publishing workflows to automatically generate file names with hyphens. Most modern platforms (WordPress, Shopify, etc.) already do this by default, but check your custom plugins and extensions.
How to integrate this rule into your SEO workflow?
Integrate file name verification into your content publication checklist, at the same level as writing title and meta description tags. No need for a heavy process: a simple visual check before publishing is sufficient.
For images, use batch renaming tools before upload if you handle large volumes. Simple scripts (Python, Bash) can transform 'IMG_001.jpg' into 'product-brand-name.jpg' in two seconds. But again, this is about comfort and consistency, not an SEO emergency.
What mistakes should be avoided at all costs?
Never mix hyphens and underscores on the same site without a clear logic. This visual inconsistency confuses your own teams and complicates maintenance. If you must coexist with legacy code using underscores, keep that convention for the old and switch to hyphens for the new.
Avoid also overly long file names stuffed with keywords. 'nike-max-running-shoe-men-2023-promo-sales.jpg' becomes visual spam. Google favors naturalness and relevance, not keyword stuffing in URLs. Three to five descriptive words are more than enough.
- Configure your CMS to generate hyphens by default in slugs
- Add file name verification to your editorial checklist
- Rename images before upload with short descriptive terms
- Do not launch a migration of existing URLs for this sole reason
- Maintain consistency: a single separator format throughout the site
- Limit file names to a maximum of 3-5 relevant keywords
❓ Frequently Asked Questions
Dois-je renommer toutes mes URLs existantes pour remplacer les underscores par des tirets ?
Les underscores dans les noms de fichiers peuvent-ils pénaliser mon site ?
Cette règle s'applique-t-elle différemment aux images et aux pages HTML ?
Faut-il mettre des mots-clés dans tous les noms de fichiers ?
Comment configurer WordPress pour qu'il génère automatiquement des tirets ?
🎥 From the same video 9
Other SEO insights extracted from this same Google Search Central video · duration 58 min · published on 26/09/2018
🎥 Watch the full video on YouTube →
💬 Comments (0)
Be the first to comment.