SEO Best Practices for URL Slugs: Why kebab-case Wins
Google explicitly treats hyphens as word separators in URLs, while underscores are treated as part of the word. That means best-case-converter ranks for "best case converter" while best_case_converter does not.
Rules for great URL slugs
- Use kebab-case (hyphens, not underscores)
- Lowercase only
- Keep under ~60 characters
- Include the primary keyword
- Strip stopwords ("a", "the", "of") if the slug gets long