Google says keywords in the URL path alone have hardly any ranking effect, but URLs still matter for users: parts of the URL can appear in search results as breadcrumbs, and clean, descriptive URLs communicate content before users click.
Key Takeaways
- 1Include target keywords naturally in the URL path
- 2Keep URLs short but descriptive (there is no Google length target; shorter is easier to read and share)
- 3Use hyphens to separate words, not underscores
- 4Avoid unnecessary parameters in indexable URLs
- 5Maintain logical hierarchy (/category/subcategory/page)
"To help Google Search (and your users) better understand your site, we recommend creating a simple URL structure, applying the following best practices when possible. Consider organizing your content so that URLs are constructed logically and in a manner that is most intelligible to humans."
Good vs Bad URLs
The difference between a good URL and a bad one is immediately obvious to users. Google's URL structure guidelines recommend simple, descriptive URLs that people can understand. Let's look at real examples to understand what separates effective URLs from problematic ones.
The table below compares common URL patterns. Notice how good URLs communicate page content before users even click, while bad URLs provide no useful information.
| Bad | Good | Why Better |
|---|---|---|
| /p?id=12345 | /products/running-shoes | Descriptive, contains keywords |
| /article.php?cat=3&id=456 | /blog/seo-tips | Clean, readable |
| /products/shoes_running_men | /products/mens-running-shoes | Hyphens, not underscores |
| /2024/01/15/post | /blog/seo-url-structure | Keywords over dates |
With the basics of good versus bad URLs clear, let's dive into one of the most discussed aspects of URL structure: keyword placement.
Keyword Placement
Including your target keywords in the URL tells users what the page is about. Google's SEO Starter Guide is explicit that keywords in the URL path alone "have hardly any effect beyond appearing in breadcrumbs", so write for readability: URLs should read naturally, not stuff keywords in awkwardly.
# Target keyword: "running shoes"
✅ Good: /products/running-shoes
✅ Good: /running-shoes/nike-air-zoom
✅ Good: /shop/mens/running-shoes
❌ Bad: /products/item12345
❌ Bad: /products/running-shoes-for-men-and-women-athletic-footwear
❌ Bad: /running/shoes (keywords separated by extra path)The good examples keep keywords together and readable. The bad examples either hide keywords behind IDs, stuff too many keywords together, or break the keyword phrase across path segments unnecessarily.
Beyond individual page URLs, your entire site's URL structure should reflect a logical hierarchy that users can navigate mentally.
URL Hierarchy
A well-planned URL hierarchy does more than help SEO. It helps users understand where they are on your site and how content relates. When someone sees /products/shoes/running/nike-pegasus-40, they immediately understand the page's context within your site structure.
# Clear hierarchy helps users and search engines understand structure
/ # Homepage
/products/ # All products
/products/shoes/ # Shoes category
/products/shoes/running/ # Running shoes subcategory
/products/shoes/running/nike-pegasus-40 # Specific product
# Breadcrumbs should match URL structure
Home > Products > Shoes > Running > Nike Pegasus 40This example shows how URL paths should mirror your site's category structure. When breadcrumb navigation matches URL hierarchy, users can predict URLs and navigate by editing the address bar, a sign of excellent information architecture.
Now let's consolidate the most important guidelines into actionable rules you can apply to any URL.
Best Practices
These guidelines combine Google's URL structure recommendations (readable words, hyphens, case sensitivity) with common conventions. Following them consistently across your site creates a professional, trustworthy impression and avoids common technical pitfalls.
| Guideline | Example | Reasoning |
|---|---|---|
| Use hyphens | running-shoes | Google treats hyphens as word separators |
| Lowercase only | /Products → /products | Google treats URL paths as case sensitive |
| No special characters | Café → cafe | Better compatibility |
| Avoid stop words | /a-guide-to → /guide-to | Shorter, same meaning |
| No file extensions | .html, .php not needed | Cleaner, more flexible |
One aspect that deserves special attention is URL length. Google publishes no length target, but shorter URLs are easier to read and share.
URL Length
Very long URLs work technically, but that does not mean you should use them. Shorter URLs are easier to remember, share, and read when they are shown in search results or pasted into messages.
# Rule of thumb (not a Google limit): keep the path short
https://example.com/products/mens-running-shoes
└─────────── 27 chars ─────────┘
# Long URLs get truncated when displayed
# and are harder to read, type and shareAs a rule of thumb, keep the path portion of your URL to a few descriptive words. If you find yourself exceeding this, consider whether you have too many subdirectories or unnecessarily verbose slugs. Trim stop words and focus on essential keywords.