Black Friday: 60% off yearly plans with code BF2026, until November 30. See the deal

Learn

Domain name rules and internationalized domain names (IDN)

A domain label can be at most 63 characters, normally uses letters, digits and hyphens and cannot start or end with a hyphen, while an internationalized domain name (IDN) stores non-ASCII characters as an ASCII form that begins with xn--. Total name length is limited too, to 255 octets in DNS wire format.

The short answer
  • Labels up to 63 octets; names up to 255 octets in wire format, including length bytes.
  • Letters, digits and hyphens are the preferred syntax; case is not significant.
  • IDNs convert to A-labels with the xn-- prefix before DNS sees them.

What are the domain name format rules?

DNS and IDNA limits
RuleLimitSource
Label length63 octets or lessRFC 1035
Full name length255 octets or less in wire formatRFC 1035
Preferred charactersLetters, digits, hyphen; start with a letter, end with letter or digitRFC 1035
CaseNot significantRFC 1035
Hyphens in IDN labelsNot at the start or end, and not as 3rd and 4th characters togetherRFC 5891
IDN ASCII formxn-- prefix plus PunycodeRFC 5891

RFC 1035 calls its syntax preferred rather than mandatory, and some TLDs add their own rules. See RFC 1035 and RFC 5891.

How does an IDN look in DNS?

U-label (what users see) and A-label (what DNS stores)
U-label: bücher.example
A-label: xn--bcher-kva.example

# Registries validate the A-label, convert it back to a U-label
# and require the round trip to match exactly.

What to check before using an IDN

  • Your registrar and the TLD both allow the characters you want
  • Email clients and apps in your audience display the Unicode form, not only xn--
  • Look-alike characters could confuse users or enable spoofing, so register obvious variants
  • Set up redirects and email for both the ASCII and Unicode forms if needed
  • Keep a plain ASCII fallback for printed or verbal use

What goes wrong with unusual names?

Unsupported scripts

A TLD may allow only certain scripts or characters. Registries publish their own tables, so check them before building a brand.

Look-alike risk

Different scripts can contain letters that look alike. Consider registering the obvious variants and watching them.

Round-trip failures

IDNA registration requires the A-label to convert to a U-label and back to the same string. Invalid forms are rejected.

Long non-ASCII labels

The 63-character limit applies to the encoded A-label, which can be much longer than the visible name.

Mail and app support

Some older systems display only the xn-- form or reject Unicode addresses. Test before relying on it.

Spoken and printed use

Keep the ASCII fallback for situations where users cannot type the characters.

How does an IDN get processed?

  1. Step 1
    User types the Unicode name

    The browser or app normalizes the label according to IDNA rules.

  2. Step 2
    Conversion to an A-label

    Punycode encodes the non-ASCII characters and adds the xn-- prefix.

  3. Step 3
    DNS query

    Only the ASCII A-label is sent to DNS, subject to the 63-octet label limit.

  4. Step 4
    Display

    Software may show the Unicode form or the xn-- form depending on its own policy.

What do you test after registering an IDN?

  • Website loads with both the Unicode and xn-- forms
  • Certificate covers the xn-- name that browsers send
  • Email works to and from addresses on the domain
  • Links in social posts and apps do not break
  • Whois or RDAP shows the registration under the xn-- A-label
  • Printed material and business cards also show a plain ASCII way to reach you

Common questions

How long can a domain name be?

Each label is limited to 63 octets and the full name to 255 octets in DNS wire format, including the length bytes. Many registrars apply tighter limits, so check the registrar.

Can a domain name have a hyphen?

Yes, inside the label. It should not start or end with one, and in internationalized labels two hyphens in the third and fourth positions are not allowed.

What is an IDN domain?

An internationalized domain name uses characters beyond basic ASCII, such as accented or non-Latin letters. DNS stores it as an ASCII A-label starting with xn-- created by Punycode.

Are domain names case sensitive?

No. RFC 1035 says case is not significant, so Example.com and example.com name the same domain.

Watch your domains automatically

Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.