A URL can technically run to thousands of characters, but keep every URL under 2,048 characters and it will work in sitemaps, browsers and servers. For SEO there is no magic number: Google asks for simple, readable URLs, and the URLs on Google’s first page are usually 40 to 100 characters long.
That one question hides two different ones. Will it break? is about hard limits set by sitemaps, servers and browsers. Will it help? is about people and Google reading your address. This guide answers both, with every limit checked on its official page (checked 22 Nov 2026), what we measured on 26,246 real local business URLs, a free checker, and the safe way to shorten a URL without losing rankings.
What is the maximum length of a URL?
The HTTP standard itself sets no fixed maximum. RFC 9110 only says senders and recipients should support “at a minimum, URIs with lengths of 8000 octets.” Each piece of software then sets its own ceiling, and the lowest one most websites will ever meet is the sitemap: sitemaps.org says each URL “must be less than 2,048 characters.”
| Where | Default limit | What happens above it |
|---|---|---|
| XML sitemap (each URL) | under 2,048 characters | The URL is not allowed in the sitemap file (sitemaps.org) |
| Microsoft IIS server | 4,096 bytes (maxUrl); query string 2,048 bytes | The server refuses the request (Microsoft) |
| HTTP standard (RFC 9110) | support at least 8,000 bytes | A recommended minimum, not a cap |
| Apache server | 8,190 bytes for the whole request line | The server refuses the request (Apache) |
| nginx server | one 8k buffer for the request line | “414 (Request-URI Too Large)” (nginx) |
| Cloudflare | 32 KB | Cloudflare returns a 414 (Cloudflare) |
| Google Chrome | 2 MB; the address bar shows up to 32 kB | Chrome won’t accept a longer URL (Chromium) |
Where does the famous 2,083 come from? Old Internet Explorer. Microsoft’s support article 208427, now retired, was titled “Maximum URL Length Is 2,083 Characters in Internet Explorer.” The browser is gone; the number stuck. Today, 2,048 is the safer figure to remember because sitemaps still enforce it.
One detail trips people up: some limits count characters and some count bytes. Plain English letters, numbers and hyphens are one byte each, so the two match. Spaces, accented letters and other alphabets are encoded before they travel, and each one grows. A space becomes %20 (3 characters) and é becomes %C3%A9 (6). The checker below shows both numbers.
Does URL length affect SEO?
Not directly, as far as anything Google has published. Google’s own URL structure guide gives no length at all. What it does ask for is clarity: “we recommend creating a simple URL structure,” and “When possible, use readable words rather than long ID numbers in your URLs.” It also recommends “hyphens (-) instead of underscores (_)” and warns that “Overly complex URLs, especially those containing multiple parameters, can cause problems for crawlers.”
The data on short URLs is a correlation, not a rule. In Backlinko’s analysis of 11.8 million Google results, “The average URL on Google’s first page is 66 characters long,” and “URLs at position #1 are on average 9.2 characters shorter than URLs that rank in position #10.” Short URLs often belong to pages that are older, stronger and closer to the homepage, so do not cut words hoping for a jump in rankings.
Where length really pays off is with people. Google shows a “visible URL” with your results, and Google describes it as having “two parts: domain and breadcrumb.” Your URL also gets pasted into texts, printed on vans and flyers, and read out over the phone. A short one survives all of that.

How long should a URL be for SEO?
As short as it can be while still saying what the page is. Since Google publishes no number, here is a practical rule of thumb (ours, not Google’s):
- Slug: 3 to 5 words.
/water-heater-warning-signs/says it all. - Main pages: under about 75 characters for the full URL, including https:// and your domain.
- Over 100 characters: only with a good reason, such as a filter page that needs its parameters.
| Page | Too long | Better |
|---|---|---|
| Service page | /services/our-services/drain-cleaning-services-austin-tx/ |
/drain-cleaning/ |
| City page | /water-heater-repair/water-heater-repair-round-rock-tx/ |
/round-rock/water-heater-repair/ |
| Blog post | /blog/2026/03/how-to-tell-if-your-water-heater-is-about-to-fail/ |
/water-heater-warning-signs/ |
Length is only one part of a good URL. Words, hyphens, folders and keywords are covered in our guide to writing SEO-friendly URLs.
How long are real local business URLs? Our study
We wanted real numbers, not folklore. On 22 Nov 2026 we took the Google Maps results for “plumber” in Austin, Texas, kept the 40 independent plumbing companies with their own websites, and read every URL in their XML sitemaps. 34 of the 40 had a readable sitemap, which gave us 26,246 URLs. We report each site’s own median so one huge site cannot skew the result.
- The typical URL was 58.5 characters (the median of each site’s median). That sits right next to Backlinko’s first-page average of 66.
- 15 of the 34 sites (44%) had at least one URL over 100 characters, and 28 of 34 (82%) had one over 75. The longest was 235 characters.
- Not one site came near the 2,048 limit. For a local business, hard limits are a non-issue. Readability is the issue.
- The long URLs were self-made. At 12 of the 15 sites, they were blog posts carrying the whole headline as the slug (a median of 13 words). Two sites stacked folders inside folders, and one repeated the same words in every city page.
The fix is simple, and it is free: when you publish a post, cut the slug down before you hit Publish. That one habit would have shortened almost every long URL we found.
Check your URL length (free tool)
Paste your URLs below, one per line, or paste the whole text of your sitemap. You get the character count, the encoded length, and a plain-words list of anything worth fixing, plus a shorter version where it helps. Nothing leaves your browser.
Not sure where your sitemap is? Try yoursite.com/sitemap.xml or yoursite.com/sitemap_index.xml, or run your domain through our free Sitemap Checker. It lists every URL and flags the ones that don’t load.
How do I reduce the length of a URL?
For a new page, just write a short slug before you publish. In WordPress it is the URL or slug field in the post settings; other site builders call it the page URL or slug in the page settings.
For a page that is already live, take more care. The URL is how Google, old links and bookmarks find the page. Change it the right way and they all follow; change it the wrong way and they hit a 404.
Step 1. Decide if it is worth changing
Shorten a live URL only if it is truly bad (a 13-word headline, a year, a typo) or the page is new and unlinked. A working URL that already earns clicks and links is usually worth keeping. Check its clicks in Search Console and its links in our Backlink Checker first.
Step 2. Write the new slug
Three to five plain words, lowercase, with hyphens. Drop years, dates, and filler like “how-to”, “and” or “what-to-do-next”. how-to-tell-if-your-water-heater-is-about-to-fail becomes water-heater-warning-signs.
Step 3. Change it and add a 301 redirect
Edit the slug, then send the old URL to the new one with a permanent redirect. Google’s advice is clear: “we recommend that you use a permanent server-side redirect whenever possible.” For posts, WordPress keeps a record of old slugs and redirects them for you (wp_old_slug_redirect), but for pages, or to be certain, add the 301 yourself in your SEO plugin’s redirect manager or on the server:
# Apache (.htaccess)
Redirect 301 /blog/2026/03/how-to-tell-if-your-water-heater-is-about-to-fail/ https://example.com/water-heater-warning-signs/
# nginx (inside the server block)
location = /blog/2026/03/how-to-tell-if-your-water-heater-is-about-to-fail/ { return 301 /water-heater-warning-signs/; }
Step 4. Update your own links
Point menus, buttons and links inside your other pages straight at the new URL, so visitors and Google do not pass through the redirect every time. Your sitemap should list only the new URL. Our guide to internal links shows how to find every page that links to it.
Step 5. Check it worked
Paste the old URL into our Redirect Checker. You want exactly one 301 hop to the new URL, not a chain (here is why redirect chains hurt). Then inspect the new URL in Search Console and request indexing, or check that Google has indexed it.
How to fix “414 URI Too Long”
A 414 error means the server refused a URL because it was too long. MDN defines it as a URI “longer than the server is willing to interpret” and names three usual causes: a form that should use POST sending its data in the URL with GET, a redirect loop that keeps adding to the URL, or an attack.
- Find what built the long URL. Copy it from the address bar. Long repeated chunks usually mean a redirect loop; run it through the Redirect Checker.
- Fix the cause. Shorten the link, stop the loop, or switch the form to POST so its data travels in the request body.
- Only if the long URL is genuine, raise the limit. On shared hosting, ask your host. On your own server:
# nginx: http or server block (default is 4 8k)
large_client_header_buffers 4 16k;
# Apache: main config or virtual host (default is 8190)
LimitRequestLine 16380
# IIS: web.config (defaults: maxUrl 4096, maxQueryString 2048)
<requestLimits maxUrl="8192" maxQueryString="4096" />
Restart or reload the server after a change. The IIS line goes inside <system.webServer><security><requestFiltering>.
URL length cheat sheet
Everything above on one page. Download it, print it, or embed it on your own site with a credit link.
Want every URL, redirect and sitemap on your site checked by a person? Our website audit covers URL structure, redirects, sitemaps, indexing and speed, and hands you a fix list in plain words. Or start free with the Website SEO Audit tool.
FAQs
What is the maximum URL length?
Keep URLs under 2,048 characters, the limit for each URL in an XML sitemap. That also clears common server defaults, from 4,096 bytes on IIS to about 8 KB on Apache and nginx. The HTTP standard recommends supporting at least 8,000 bytes, and Chrome accepts up to 2 MB. For SEO, aim far shorter than any of these.
Do shorter URLs rank better on Google?
Not because they are shorter. Google publishes no length rule and asks for simple, readable URLs instead. Backlinko found first-page URLs average 66 characters and that #1 results are slightly shorter than #10, but that is a correlation. Short URLs help people read, share and trust a link, which is reason enough.
How many words should a URL slug have?
Three to five words is plenty for most pages, for example /water-heater-warning-signs/. That is our working rule, not a Google rule. Use the words a customer would recognise, separate them with hyphens, and leave out years, dates and filler like “and”, “the” or “how-to”. A service page can often use one or two words.
Should I change long URLs on my website?
Only when it is worth it. New or unlinked pages can be shortened freely. For a page that already gets clicks or links, weigh the gain against the risk, and if you change it, add a 301 redirect from the old URL, update your internal links and sitemap, and check there is exactly one redirect hop.
Do spaces and special characters count toward URL length?
Yes, and they count extra. Browsers encode spaces, accented letters and other alphabets before sending them, so a space becomes %20 (three characters) and é becomes %C3%A9 (six). Server limits are measured in bytes after that encoding. Use plain lowercase letters, numbers and hyphens to keep URLs short and safe.
Sources
- sitemaps.org: Sitemaps XML format
- RFC 9110: HTTP Semantics (sections 4.1 and 15.5.15)
- Microsoft: IIS Request Limits
- Apache HTTP Server: LimitRequestLine
- nginx: large_client_header_buffers
- Cloudflare: Error 414
- Chromium: URL display guidelines
- Microsoft Learn (archived): reference to KB 208427
- Google Search Central: URL structure best practices
- Google Search Central: Redirects and Google Search
- Google Search Central: Visual elements gallery
- MDN: 414 URI Too Long
- WordPress: wp_old_slug_redirect()
- Backlinko: We analyzed 11.8 million Google search results
- SEOs Hut study: 26,246 sitemap URLs from 34 Austin plumbing websites, 22 Nov 2026


