This guide answers: url structure best practices for search engines
URL structure best practices for search engines
Learn how to write clean URLs: lowercase, hyphens, descriptive words, short length and 301 redirects. A practical guide based on Google Search Central.
By Hannah Wells, Technical SEO, site performance and online stores
· 6 min read
updated

Short answer
The short answer: write URLs in lowercase, separate words with hyphens, use descriptive words instead of numeric IDs, keep them short, and never change one without a 301 redirect. None of this guarantees a better position on Google. A clean structure helps engines crawl your pages and helps people understand a link before they click it. This guide follows Google Search Central’s URL structure documentation, checked on 03/12/2026.
Key points
- A URL is the first thing a crawler sees about a page, and often the first thing a person sees in a result.
- Google recommends hyphens to separate words in a URL.
- Google recommends human-readable URLs made of words rather than long numeric IDs.
- Secondary research suggests that shorter URLs, typically under 60 characters, tend to do better in search results than longer ones.
- Hyphens between words, never underscores
- Words that describe the page, not a database number
- Under 60 characters where possible
- One or two relevant keywords
- Lowercase throughout
- A 301 redirect for every change
Why URL structure matters for search engines
A URL is the first thing a crawler sees about a page, and often the first thing a person sees in a result. Google’s documentation treats it as a tool for clarity: a readable address tells both audiences what to expect.
The effect on rankings is indirect. Well-structured URLs improve crawlability, reduce duplicate content problems, raise the potential for clicks and keep link signals stable over time. Google does not publish a precise ranking weight for URL structure, so treat any claim of a fixed boost with suspicion. The reasoning is practical: a tidy structure removes friction for crawlers and for readers.
Google also updated its URL structure documentation in October 2026, with an emphasis on crawlability and clarity. If you have not reread the page recently, it is worth doing.
Hyphens vs. underscores: Google’s clear recommendation
Google recommends hyphens to separate words in a URL. Underscores are used in programming to join concepts into one unit, while a hyphen clearly marks a word boundary. A crawler reading a hyphenated slug sees separate words. An underscored slug risks being read as one long string.
/python-programming-tutorial/
/python_programming_tutorial/
The two addresses carry the same words. Only the first separates them in the way Google describes.
Use descriptive words, not numbers
Google recommends human-readable URLs made of words rather than long numeric IDs. Compare /best-espresso-machines/ with /product/8472/. The first tells a visitor and a crawler what the page is about before it loads. The second tells them nothing.
This matters beyond search. People copy links into messages, spot them in browser bars and judge them in result pages. A descriptive address is easier to trust and easier to remember. If your system generates numeric IDs behind the scenes, the public address can still carry the words.
Keep URLs short and focused
Secondary research suggests that shorter URLs, typically under 60 characters, tend to do better in search results than longer ones. A practical target is a slug of 3 to 5 words. This is a rule of thumb, not an official Google limit.
Depth follows the same logic. A recommended hierarchy runs 3 to 4 levels, mirroring how the site is organised, not seven. Every extra level adds length and makes the parent-child relationship harder to read.
Key figures from the research
Include one or two relevant keywords
Backlinko’s analysis of 4 million Google search results found that URLs with one or two relevant keywords earned 45 % more clicks than those without a matching keyword. It is a secondary source, and the full dataset is not public in the detail needed to judge it, so read it as a sign that relevance helps people choose a result, not as a promise.
The signal is modest. One or two keywords is the target, and overstuffing works against you. This is what not to do: /technical-seo-tips-for-technical-seo-expert-search-engine-optimization/. It repeats itself, runs long and reads like spam.
Use lowercase throughout
URLs are case-sensitive. /apple and /APPLE are two different URLs. If both resolve to content, link signals can be split between them and the same page can appear twice. Choose lowercase and use it everywhere, in navigation, in sitemaps and in internal links.
Format URL parameters correctly
When parameters are needed, Google’s syntax is simple: an equals sign (=) between a key and its value, and an ampersand (&) between parameters, as in key=value&key=value. Brackets and colons are not recommended. Keep the number of parameters low, since every extra one makes the address longer and harder to read.
Avoid fragments for content changes
A fragment is the part after the hash sign, such as #/potatoes. Google ignores fragments for page routing, so changing page content with a fragment gives the engine no separate page to index. This catches out single-page applications that swap content behind a hash. If a view deserves to be found, it needs its own proper URL.
Align URL structure to site hierarchy
URLs should reflect how the site is organised editorially. A path like /guides/seo/on-page/ signals a clear chain: a section, a topic, a subtopic. A reader can trim the address and guess where they will land.
Google has not said whether it prefers a category-and-article structure or a flat one, so both remain open choices. Pick the one that matches your site and stay consistent.
Handle URL changes with 301 redirects
Every URL change needs a 301 redirect from the old address to the new one. The redirect preserves link equity, the value carried by links pointing to the old address. Frequent changes also disrupt crawl patterns, so the best URL is one you do not have to change. Choose the structure carefully before publishing.
What nobody can state precisely
Some questions have no reliable answer, and it is better to say so than to guess.
- The exact ranking impact of URL structure. Google does not publish that level of precision.
- How many sites are affected by poor URL choices.
- The full Backlinko dataset: how many URLs were tested, over what period, with what controls and margin of error.
- Whether Google prefers a category-and-article structure to a flat one.
- The precise effect of depth beyond 4 levels. No official Google study covers that boundary.
- Whether a trailing slash matters to Google’s crawler today.
URL structure checklist
- Words are separated by hyphens, not underscores.
- The slug uses descriptive words, not a numeric ID.
- The address stays under 60 characters where possible, with 3 to 5 words in the slug.
- One or two relevant keywords appear, with no repetition.
- Everything is lowercase.
- Parameters use = and &, with no brackets or colons, and are kept minimal.
- No fragment is used to change page content.
- Depth stays within 3 to 4 levels and mirrors the site’s organisation.
- Every changed URL has a 301 redirect.
- Google Search Central, URL Structure documentation, consulted 03/12/2026
- Google Search Documentation Updates, October 2026: URL Structure, Content Controls and the UGC Fresh Data Program, consulted 03/12/2026
- Backlinko, analysis of 4 million Google search results (secondary source), consulted 03/12/2026


