Compare these two addresses: example.com/index.php?id=7713&cat=42&sess=a9f3 and example.com/garden/raised-bed-kits/. You can guess what the second page is about before you click. So can search engines, and so can anyone who sees the link in a message, a social post or a search result.
URLs are not a major ranking factor on their own, but they shape how people perceive your result, how your site is organised and how efficiently search engines crawl it. Bad URL patterns can also create thousands of duplicate addresses that waste crawling and split signals.
In this guide you will learn what makes a URL SEO-friendly, what Google itself recommends, how to structure folders and slugs, and how to change URLs safely when you need to.
Key Takeaways
- Use readable words rather than long ID numbers, in your audience's language.
- Separate words with hyphens, not underscores, and keep URLs lowercase because Google treats URLs as case sensitive.
- Keep structure simple and logical; folders should reflect your site's real hierarchy.
- Minimise parameters and avoid session IDs and endless filter or calendar combinations.
- Do not change working URLs without a good reason; when you must, 301-redirect every old URL to its new equivalent.
What Is an SEO-Friendly URL?
An SEO-friendly URL is short, readable and descriptive, uses a consistent format, and maps to exactly one piece of content. A typical URL has several parts:
| Part | Example | SEO note |
|---|---|---|
| Protocol | https:// | Use HTTPS across the site |
| Subdomain | www. | Pick www or non-www and redirect the other |
| Domain | example.com | Your brand; changing it means a full site move |
| Folder (path) | /garden/ | Reflects site structure and helps users orient themselves |
| Slug | raised-bed-kits | Describes the specific page in a few words |
| Parameters | ?colour=green&sort=price | Keep to a minimum; control filter combinations |
| Fragment | #reviews | Fine for jump links; do not use to load different content |
What Google Recommends
Google's URL structure guidelines are short and practical. The core advice:
“When possible, use readable words rather than long ID numbers in your URLs.”
— Google Search Central, URL structure best practices for Google Search
The same page recommends:
- Using words in your audience's language, with non-ASCII characters percent-encoded when needed.
- Separating words with hyphens rather than underscores, because underscores are commonly used to join concepts together.
- Remembering case sensitivity: Google treats
/APPLEand/appleas distinct URLs. - Using standard parameter encoding, with an equals sign between keys and values and an ampersand between parameters.
- Not using fragments to change content, because Google Search generally does not support URL fragments for that.
- Avoiding session IDs and patterns that create huge numbers of URLs, such as additive filtering and unbounded calendars.
Google's SEO Starter Guide adds that readable URL words can help people judge a result, and Google may use them to build breadcrumb-style displays. That is one more reason to keep paths meaningful; our guide to breadcrumb navigation explains the connection.
Good vs Bad URL Examples
| Avoid | Prefer | Why |
|---|---|---|
/p?id=7713 | /raised-bed-kits/ | Readable words instead of IDs |
/Raised_Bed_Kits | /raised-bed-kits/ | Lowercase and hyphens |
/blog/2019/03/14/the-10-best-raised-bed-kits-you-can-buy-this-year/ | /blog/best-raised-bed-kits/ | Shorter; no dates or years on content you will update |
/shop/products/items/garden/beds/raised/kits/ | /garden/raised-bed-kits/ | Shallow, meaningful folders |
/raised-bed-kits?sessionid=a9f3 | /raised-bed-kits/ | No session IDs in URLs |
/kits-raised-bed-garden-raised-beds-buy-raised-bed | /raised-bed-kits/ | No keyword stuffing |
How to Create SEO-Friendly URLs: Step by Step
- Plan your structure first. Decide your main sections (for example
/services/,/blog/,/shop/) based on your website architecture. Folders should mirror how users browse. - Write a short, descriptive slug. Use the page's main topic in a few words, usually based on the primary keyword. Drop filler words like "a", "the" and "and" when the slug still reads clearly.
- Use lowercase and hyphens. Set your CMS to generate lowercase, hyphenated slugs and redirect uppercase variants.
- Avoid dates and numbers that will age. "best-tools-2026" forces a URL change next year; "best-tools" does not.
- Choose one trailing slash and protocol convention. Pick with or without a trailing slash, HTTPS, and www or non-www, then redirect all alternatives to it.
- Control parameters. Keep tracking and sorting parameters out of internal links, and point parameter variants at the clean version with canonical tags. See our guides to canonical tags and faceted navigation.
- Handle international URLs consistently. Use subfolders, subdomains or country domains for language versions and connect them with hreflang tags.
- Test before launch. Crawl the site to check for duplicate URL variants, uppercase links, parameter sprawl and broken links.
Should You Change Existing URLs?
Usually not just to make them prettier. A URL that already ranks and has links carries history, and every change introduces risk. Change URLs when there is a clear benefit: moving off a platform with ID-based URLs, fixing a broken structure, consolidating duplicates or rebranding.
When you do change them:
- Create a full map from every old URL to its new equivalent.
- Use permanent server-side redirects; our guide to 301 vs 302 redirects explains which to use.
- Update internal links, canonical tags and XML sitemaps to the new URLs so you do not rely on redirects.
- Avoid creating redirect chains by pointing old URLs straight at the final destination.
- Monitor Search Console for crawl errors and traffic changes for several weeks.
For larger changes, follow a full website migration checklist.
Common URL Mistakes
- Mixed case. Because Google treats case as significant,
/Pageand/pagecan become duplicates. Our post on duplicate content covers the fixes. - Underscores and spaces. Use hyphens; spaces become
%20and look messy. - Keyword stuffing. Repeating keywords makes URLs look spammy and adds no value.
- Deep nesting. Five or six folders deep is rarely necessary and makes URLs long and fragile.
- Infinite URL spaces. Filters, sorting options and calendars that generate endless combinations waste crawling.
- Changing URLs without redirects. This turns ranking pages into 404s overnight.
Related Guides
- Alt Text: How to Write It for SEO and Accessibility
- How to Build an SEO Strategy for 2026 (Step by Step)
- SEO for Small Business: A Practical Guide
Frequently Asked Questions
Do URLs affect SEO rankings?
URLs are a minor factor on their own, but readable URLs help users judge results, support a clear site structure and avoid duplicate URL problems that can waste crawling and split signals.
Should I use hyphens or underscores in URLs?
Use hyphens. Google recommends hyphens over underscores to separate words, because underscores are commonly used to join concepts together.
Are URLs case sensitive for Google?
Yes. Google treats URLs with different capitalisation as different URLs, so use lowercase consistently and redirect uppercase variants.
How long should a URL be?
There is no fixed limit for SEO. Aim for a short, descriptive path that names the page's topic in a few words and avoids unnecessary folders and parameters.
Should I include keywords in my URL?
Include the page's main topic where it reads naturally, as this helps users understand the page. Do not stuff multiple keywords or variations into the URL.
Should I remove dates from my blog URLs?
For new content, avoid dates if you plan to update the post over time. For existing URLs, only change them if the benefit outweighs the risk, and always use 301 redirects.
Conclusion
SEO-friendly URLs are simple: readable words, hyphens, lowercase, a logical folder structure and as few parameters as possible. Get the pattern right before you launch, keep it consistent and avoid changing URLs that already work. When you must change them, redirect carefully and monitor the results.
Planning a new site structure or a URL clean-up? Our technical SEO guide covers the wider picture, and our SEO team can plan and run the change for you. Get a free quote.




