Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Out of curiosity, does anyone know what's the maximum length (in characters) for a domain name?

Let's exclude the http://www.

I know the maximum length of an url is about 2000 chars. But here I'm more ineterested in just the domain part or the url.

On Wikipedia they say: "The full domain name may not exceed a total length of 253 characters in its external dotted-label specification." But what does that mean?

share|improve this question
Since stack and wikipedia keep referencing each other, I found some good summaries here: blog.sacaluta.com/2011/12/… and blogs.msdn.com/b/oldnewthing/archive/2012/04/12/10292868.aspx – goodeye Dec 10 '13 at 16:07
Demonstration: the following website has a 63 characters domain name: http://63-characters-is-the-longest-possible-domain-name-for-a-website.com – Pixels Hunter Nov 12 '15 at 5:15
up vote 22 down vote accepted
  1. 253 characters is the maximum length of full domain name, including dots: e.g. www.example.com = 15 characters.

  2. 63 characters in the maximum length of a "label" (part of domain name separated by dot). Labels for www.example.com are com, example and www.

This is an example of the domain with longest possible label (a fully working website BTW): http://www.abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com/. The domain name length = 71 characters.

This will be an example of longest domain name: abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcde.abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com

share|improve this answer
+1. It is also explained here: en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names – Ritesh Jul 17 '11 at 13:04
@LazyOne: thanks! – Marco Demaio Jul 17 '11 at 14:01
If you want an easy way to break many online systems out there, try signing up or using one of these with an email address @ one of the domains above. – Tim Fountain Jul 18 '11 at 17:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.