An SEO-friendly URL is short, lowercase and hyphenated, with 1 or 2 keywords that describe the page. Keep it short, put it in 1 or 2 logical folders, and never change it without a 301 redirect.

Key facts

  • Google advises a URL structure as simple as possible, built logically and in a way that is most intelligible to humans.
  • Use 1 or 2 relevant keywords in the slug, and 3 to 5 descriptive words from the page title.
  • Hyphens separate words; Google treats a hyphen as a space, while an underscore joins words together.
  • URLs are case-sensitive, so lowercase avoids duplicate pages.
  • Keep important pages 3 to 4 clicks from the homepage.
  • Avoid dates, parameters and session IDs in URLs.

Good and bad URLs

URLVerdict
example.com/blog/winter-vacation-berlin/Good: short, descriptive, hyphenated
example.com/blog/how-to-write-seo-friendly-urls-in-2026/Weak: long and dated
example.com/index.php?productID=83671Bad: dynamic and unreadable
example.com/Blog/SEO_Friendly_URLs/Bad: uppercase letters and underscores

Rules at a glance

RuleDo this
Words3 to 5 descriptive words
Keywords1 or 2 in the slug
SeparatorsHyphens, not underscores
CaseAll lowercase
Folders1 or 2 logical folders
Changes301 redirect to the new URL

Start from the page topic

Take the page title and pull out 3 to 5 words that describe the topic. Put 1 or 2 keywords in the slug and drop filler words like the, and and of. A slug that matches the title helps visitors and search engines agree on what the page covers.

For a guide about winter holidays in Berlin, /blog/winter-vacation-berlin/ says what the page covers, while a path of random letters and a year says nothing at all.

  1. Write the page title first.
  2. Pick 3 to 5 words that carry the meaning.
  3. Drop stop words that add nothing.
  4. Join the words with hyphens.

Keep the format simple

Use lowercase letters only, because URLs are case-sensitive and mixed case creates duplicate pages. Use hyphens between words, since Google reads a hyphen as a space and does not treat an underscore the same way. Avoid special characters, spaces and encoded symbols.

Serve every URL over HTTPS and pick one version of www or no www, then redirect the other. A consistent format keeps links, shares and bookmarks pointing at one page.

Organise folders logically

Group related pages under 1 or 2 short folders, such as /blog/ or /guides/, so the path shows where a page sits. Subfolders beat subdomains for SEO, because a subdomain is treated more like a separate site. Keep key pages 3 to 4 clicks from the homepage.

Avoid dynamic URLs

Static paths beat dynamic ones with parameters, session IDs and tracking strings. Parameters create duplicate versions of the same page and make URLs hard to read or share. Keep tracking in analytics tools, not in the address bar.

Changing a URL

Do not change a live URL unless you must, because links and rankings point at the old address. When a change is needed, add a 301 redirect from the old URL to the new one. Update internal links too, so visitors never land on a redirect chain.

Avoid dates in URLs, because a 2024 date on a refreshed guide looks outdated and forces a redirect later. The same applies to years, version numbers and campaign parameters.

For the full on-page checklist, see SEO checklist.

FAQ

What is an SEO-friendly URL?

A short, readable web address that uses lowercase letters, hyphens and 1 or 2 keywords to describe the page. It sits in 1 or 2 logical folders and stays stable over time.

Should URLs contain keywords?

Yes, 1 or 2 relevant keywords in the slug help search engines and visitors understand the page. Keyword stuffing does not help, and readability matters more than an exact match.

Hyphens or underscores in URLs?

Hyphens. Google treats a hyphen as a space between words, while an underscore joins words together. Use hyphens to separate every word in a slug.

How long should a URL be?

As short as the topic allows, usually 3 to 5 descriptive words in the slug. Short URLs are easier to read, share and remember than long ones.

What happens if I change a URL?

Add a 301 redirect from the old URL to the new one, and update internal links. Without a redirect, visitors and search engines hit a dead page.

Sources