tldlist.us/TLD character limits

.len

TLD character limits — how long a domain name can be

Length and character rules, with the technical basis · Updated

In one sentence

The DNS standard limits each label (the part between dots, like 'example') to 63 characters, and the whole domain name to 255 octets — about 253 usable characters. The piece you register before the TLD is therefore capped at 63 characters. Allowed characters are letters, digits and hyphens (not at a label's start or end); other scripts use Punycode-encoded IDNs. Minimums and premium thresholds vary by registry, but the maximum is the same everywhere — it is set by the protocol, not the TLD.

The two limits that matter

Domain length is governed by the DNS protocol, defined in the foundational DNS RFCs (RFC 1034 and RFC 1035). Two numbers do almost all the work. First, each label — every dot-separated segment — may be at most 63 octets. Second, the full domain name may be at most 255 octets, which works out to roughly 253 usable characters once the length bytes and trailing dot are accounted for. Because the second-level label (the name you register, before the TLD) is itself a single label, it is capped at 63 characters — and that is the limit nearly everyone actually encounters. These are protocol limits, so they apply identically across generic and country-code extensions alike.

Domain length and character rules

The protocol-level limits that apply to every TLD, plus what varies by registry.

RuleLimit / valueSet byNotes
Per-label maximum63 octetsDNS protocol (RFC 1035)Applies to the name you register; universal across all TLDs.
Full-name maximum255 octets (~253 chars)DNS protocolTotal across all labels including dots.
Minimum length1 character (protocol)Registry policyShort names often reserved/premium; varies by TLD.
Allowed charactersA–Z, 0–9, hyphenDNS protocol (LDH rule)Case-insensitive; hyphen not at start or end.
Non-ASCII (IDN)via Punycode (xn--)IDNA standardEncoded form still must fit 63-char label limit.
Premium short names1–3 chars oftenRegistry policyMay be reserved, auctioned or surcharged per TLD.

Protocol limits are defined in the DNS standards (RFC 1034/1035) and IDNA; registry-specific minimums and premium thresholds are set per TLD. See the IANA root zone database and individual registry policies.

What this means when you register

For almost every project the practical rule is simple: keep the registrable part to 63 characters or fewer — and in reality far fewer, because short, memorable names perform better. The full 253-character ceiling only becomes relevant with deep subdomain chains, which most sites never approach. If you want a non-Latin name (Arabic, Chinese, Cyrillic and so on), the internationalised domain name is converted to a Punycode xn-- form behind the scenes, and that encoded form is what must fit the 63-character limit — so a long non-ASCII name can hit the cap sooner than its visible length suggests. Registry minimums and premium tiers for very short names vary by extension, so if you are after a one- or two-character name, check that specific TLD's policy.

In short. 63 characters per label, ~253 for the whole name; letters, digits and hyphens only (hyphen not at the ends); other scripts via Punycode. The maximum is set by the DNS protocol and is identical across TLDs; only minimums and premium thresholds vary by registry.

Frequently asked questions

What is the maximum length of a domain name?
A single label (between dots, like 'example') can be at most 63 characters, and the whole name at most 255 octets — about 253 usable characters. The part you register before the TLD is capped at 63 characters, which is the limit most people hit.
Is there a minimum domain name length?
The protocol allows a single character, and most TLDs accept one to three, but registry policy varies — some reserve or auction short names as premium. The shortest registrable name depends on the specific TLD. See shortest TLDs.
What characters are allowed in a domain name?
Letters A–Z, digits 0–9 and the hyphen (not at a label's start or end), case-insensitive. Internationalised names use Punycode for non-ASCII characters, but the encoded form must still fit the 63-character label limit. Spaces and most symbols are not allowed.
Do different TLDs have different length limits?
The 63-character label limit is universal (set by the DNS protocol), but registries can impose stricter minimums or reserve short names as premium. The technical maximum is the same everywhere; the registrable minimum varies by TLD.