{"id":"https://www.namesilo.com/questions/buying-domains/how-long-can-a-domain-name-be","url":"https://www.namesilo.com/questions/buying-domains/how-long-can-a-domain-name-be","title":"How long can a domain name be?","description":"A DNS label is limited to 63 octets. A complete wire-format domain name is limited to 255 octets. Unicode display characters and encoded IDN labels…","language":"en","category":"buying-domains","datePublished":"2026-11-17","dateModified":"2026-11-19","answer":"A DNS label is limited to 63 octets. A complete wire-format domain name is limited to 255 octets. Unicode display characters and encoded IDN labels need separate treatment. RFC 1035 §2.3.4 sets the DNS limits, and RFC 5891 §4.4 requires the encoded A-label to conform to DNS length limits.","body":"How long can a domain name be?\n\nA DNS label is limited to 63 octets. A complete wire-format domain name is limited to 255 octets. Unicode display characters and encoded IDN labels need separate treatment. RFC 1035 §2.3.4 sets the DNS limits, and RFC 5891 §4.4 requires the encoded A-label to conform to DNS length limits.\n\nCount the encoded label separately\n\nCheck the precise encoded name at the registrar rather than counting only the letters you see on screen. For the brand decision, also test whether the name is easy to enter and communicate before putting it into printed material.\n\nYour next steps\n\nCheck the label’s encoded octet length\n\nCheck the complete wire-format name separately\n\nValidate the exact spelling for the extension\n\nTest the address on the devices customers will use\n\nCount the encoded label separately\n\nCheck the precise encoded name at the registrar rather than counting only the letters you see on screen. For the brand decision, also test whether the name is easy to enter and communicate before putting it into printed material.\n\nVerified detail: DNS labels are limited to 63 octets and complete wire-format names to 255 octets.\n\nYour next step: Test the address on the devices customers will use.","steps":["Check the label’s encoded octet length","Check the complete wire-format name separately","Validate the exact spelling for the extension","Test the address on the devices customers will use"],"faqs":[],"sources":[{"name":"IETF RFC 1035 §2.3.4","url":"https://www.rfc-editor.org/rfc/rfc1035#section-2.3.4"},{"name":"IETF RFC 5891 §4.4","url":"https://www.rfc-editor.org/rfc/rfc5891#section-4.4"}],"json":"https://www.namesilo.com/questions/data/how-long-can-a-domain-name-be.json","markdown":"https://www.namesilo.com/questions/data/how-long-can-a-domain-name-be.md"}