When it comes to SEO and URLs (or file names), hyphens (-) are better than underscores (_). Here’s why:
✅ Use Hyphens - (Recommended by Google)
-
Google treats hyphens as word separators.
-
For example:
best-wedding-photographyis read as “best wedding photography”
-
-
Improves readability for both search engines and users.
-
Google’s official SEO guidelines recommend using hyphens.
🚫 Avoid Underscores _
-
Google does not treat underscores as word separators.
-
best_wedding_photographyis read as “bestweddingphotography”
-
-
That hurts your SEO and readability.
✅ Example Comparison:
| URL Slug | Google Reads As | SEO Friendly |
|---|---|---|
best-wedding-photography |
best wedding photography | ✅ Yes |
best_wedding_photography |
bestweddingphotography | ❌ No |
Final Verdict:
Always use hyphens (-) in URLs, slugs, file names, image names, etc., for better SEO.
Let me know if you want help fixing any existing URLs or slugs.