# URL length

> Google

Canonical: https://scaplet.com/glossary/url-length

Glossary Glossary · On-page SEO

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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Furl-length%20(%22URL%20length%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Furl-length%20(%22URL%20length%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Furl-length%20(%22URL%20length%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Furl-length%20(%22URL%20length%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## 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

_01_At a glance

## Where the numbers come from

Searches for a maximum URL length usually want one number. The documents that cover this say different things, because they answer different questions.

Source

### Google, [URL structure](/glossary/url-structure) guidance

What it says

Gives no length limit and does not mention length as a ranking or crawling factor

What it means for you

No Google-published cutoff to design around

Source

### Sitemaps protocol

What it says

The `<loc>` value must be less than 2,048 characters

What it means for you

Keep [indexable](/glossary/indexability) URLs well under it, since the protocol sets that cap

Source

### RFC 9110 (HTTP semantics)

What it says

Recommends that senders and recipients support URIs of at least 8000 octets in protocol elements

What it means for you

A floor for software to support, not a target to aim for

**Characters are not octets**The sitemap rule counts characters, while the HTTP recommendation counts octets (bytes). Sitemap URLs must also be URL-escaped, so measure the escaped form.

_02_At 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
```

_03_How 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](/glossary/url-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
```

_04_Your 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

**Shortening an indexed URL is a migration**Changing a live URL means every old address needs a redirect, and [internal links](/glossary/internal-links) and canonicals must follow. Don't rewrite working URLs only to save a few characters.

Questions

## Asked a lot.

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

_01_ Is 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.

_02_ Do 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. 01 [URL structure best practices for Google Search](https://developers.google.com/search/docs/crawling-indexing/url-structure) developers.google.com · checked 2026-11-01
2. 02 [Sitemaps XML format](https://www.sitemaps.org/protocol.html) sitemaps.org · checked 2026-11-01
3. 03 [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html#section-4.1) rfc-editor.org · checked 2026-11-01
4. 04 [Build and submit a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap) developers.google.com · checked 2026-11-01

## Keep learning

[All glossary](/glossary)

[Learn URL structure Crawling and indexing](/glossary/url-structure) [Related XML sitemap Crawling and indexing](/glossary/xml-sitemap) [Read next URL slug On-page SEO](/glossary/url-slug) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[URL fragment](/glossary/url-fragment) [URL Inspection tool](/glossary/url-inspection-tool) [URL mapping](/glossary/url-mapping) [URL parameters](/glossary/url-parameters)

More in On-page SEO
[OG image (og:image)](/glossary/og-image) [On-page SEO](/glossary/on-page-seo) [Open Graph](/glossary/open-graph) [People Also Ask](/glossary/people-also-ask) [Rich results](/glossary/rich-results) [Search snippet](/glossary/snippet) [Semantic HTML](/glossary/semantic-html) [SERP](/glossary/serp) [SERP features](/glossary/serp-features) [Sitelinks](/glossary/sitelinks) [Thin content](/glossary/thin-content) [Title tag](/glossary/title-tag) [URL length](/glossary/url-length) [URL slug](/glossary/url-slug) [Video SEO](/glossary/video-seo) [Word count](/glossary/word-count) [Alt text](/glossary/alt-text) [Anchor text](/glossary/anchor-text) [Breadcrumbs](/glossary/breadcrumbs) [Content freshness](/glossary/content-freshness) [External links](/glossary/external-links) [Favicon](/glossary/favicon) [Featured snippet](/glossary/featured-snippet) [Flesch Reading Ease](/glossary/flesch-reading-ease)

Terms on this page
[URL structure](/glossary/url-structure) [Indexability](/glossary/indexability) [URL slug](/glossary/url-slug) [Internal links](/glossary/internal-links)

Free · 2 minutes

## Know the term. _Now check your site._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
