Free auditStart free
GlossaryGlossary · On-page SEO

URL length

Google's URL guidance sets no character limit. The limits that are documented sit in sitemaps and HTTP, plus what long, complex URLs cost in crawling.

2 min
read
4
sources
Oct 29, 2026
updated
Scaplet Editorial Team
author
In one line

Google's URL structure guidance gives no maximum URL length and does not describe length as a ranking factor. The limits that are documented live elsewhere: the sitemap protocol requires each URL to be under 2,048 characters, and the HTTP standard recommends supporting at least 8000 octets. Complexity causes more trouble than character count.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode

At a glance

4 facts from the sources below
No character limit stated in the URL structure page
Google guidance
Each URL must be less than 2,048 characters
Sitemap protocol
Recommends supporting URIs of at least 8000 octets
HTTP (RFC 9110)
Many parameters create near-duplicate URLs
Real risk
02At a glance

What long URLs actually cost

Google's guidance targets complexity. It says overly complex URLs, especially ones with multiple parameters, can cause problems for crawlers, because they can generate many URLs that point to similar content. It also advises readable words over long ID numbers.
Part of the long URL

Hash-like ID

Problem
Says nothing about the page
Fix
Use words in the path, per Google's guidance
Part of the long URL

sessionid=...

Problem
One page, endless URLs
Fix
Keep session IDs out of URLs where possible
Part of the long URL

ref=, sort=, cat=

Problem
Parameters that do not change content multiply near-duplicates
Fix
Trim them from links; point canonicals at the clean URL
Same product, two URL styles
Hard to read:  https://example.com/p?id=8f3a9c2b71e04d65a1&cat=12&ref=hp&sessionid=44a1f&sort=price
Readable:      https://example.com/shoes/trail-runner
03How it works

Check it in 2 minutes

  1. 1

    Sort by length

    Run the command and look at the top ten. Anything near 2,048 characters breaks the sitemap rule.

  2. 2

    Read the long ones

    Check whether length comes from parameters, IDs or a descriptive slug. That tells you which fix applies.

  3. 3

    Count parameters

    Search your crawl for URLs with several &. Those are the ones likely to produce near-duplicates.

Find your longest URLs in a sitemap
curl -s https://example.com/sitemap.xml \
  | grep -o '<loc>[^<]*</loc>' \
  | sed -e 's/<[^>]*>//g' \
  | awk '{ print length($0), $0 }' \
  | sort -rn | head -10
04Your call

Shorten or leave it

If this fits

Shorten it if

  • It is built from several parameters
  • It uses opaque IDs where words would fit
  • It sits near the sitemap limit
  • Parameter variants show up as duplicates
Or

Leave it if

  • It is readable and stable
  • Length comes only from a descriptive slug
  • Changing it would need redirects with no clear benefit
Questions

Asked a lot.

2 questions people ask next, answered from the sources on this page.

01Is there a maximum URL length for Google?

Google's URL structure guidance states no maximum. The sitemap protocol requires each URL to be under 2,048 characters, which is the most concrete documented limit relevant to SEO.

02Do shorter URLs rank better?

The sources checked here do not describe URL length as a ranking factor. They advise simple, readable URLs because complexity can hamper crawling.

Sources · 4

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • google.com
  • sitemaps.org
  • rfc-editor.org
  1. 01URL structure best practices for Google Searchdevelopers.google.com · checked 2026-11-01
  2. 02Sitemaps XML formatsitemaps.org · checked 2026-11-01
  3. 03RFC 9110: HTTP Semanticsrfc-editor.org · checked 2026-11-01
  4. 04Build and submit a sitemapdevelopers.google.com · checked 2026-11-01
Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly