What it does
A domain name validator applies the syntax rules that DNS and registrars enforce: label length, character set, hyphen placement, total length and the special rules for internationalised names. It catches the mistakes that otherwise surface hours later as a failed certificate or a broken DNS record.
How it works
A name is a sequence of labels separated by dots. Each label must be 1–63 octets; the full name in presentation form may not exceed 253 characters. Empty labels (double dots), a leading dot or a trailing dot with nothing after it are invalid as registration input.
Hostname labels follow the LDH rule: letters, digits and hyphens. A hyphen may not be the first or last character of a label. Underscores are allowed in some DNS record names, such as _dmarc or _acme-challenge, but not in hostnames that browsers and certificates accept.
ASCII letters are case-insensitive. Names are stored and compared in lowercase; mixed case is only a display convention. A validator should not reject a name for uppercase input, but it should normalise it.
Internationalised names are checked after conversion to their A-label form. The 63-octet limit applies to the xn-- form, so a short-looking Unicode label can still be too long. Mixed-script labels may be rejected by registries even when they are technically encodable.
A trailing dot means the name is fully qualified (FQDN). It is valid in DNS but usually unwanted in a registration or a URL, where it can create a duplicate host and a certificate mismatch.
When to use it
- Validate user input before creating a DNS record or a TLS certificate request.
- Check a hostname copied from a log for invisible characters or a stray trailing dot.
- Confirm an internationalised name fits the 63-octet limit after Punycode encoding.
- Reject underscores in a value that will be used as a browser hostname.
Glossary
- Label
- One dot-separated component of a domain name, such as www or example.
- LDH rule
- Letters, digits and hyphens only, with no hyphen at either end of a label.
- A-label
- The ASCII (Punycode) form of an internationalised label.
- FQDN
- Fully qualified domain name, conventionally written with a trailing dot.
- Octet
- An 8-bit byte; DNS length limits are counted in octets, not characters.
Frequently asked questions
Why is an underscore invalid in a hostname?+
Hostname syntax follows the LDH rule, and browsers and certificate authorities reject underscores in names. DNS itself permits them in record owners such as _dmarc, which is why the distinction matters.
What is the maximum domain length?+
253 characters in presentation form, and 63 octets per label. The wire format has a 255-octet limit that includes length bytes, so the practical presentation limit is 253.
Is a trailing dot a mistake?+
It marks an absolute name. It is valid DNS but usually wrong in user input, URLs and certificates. Strip it unless you specifically need an FQDN.
Why does uppercase not matter?+
DNS comparison is case-insensitive for ASCII letters. Uppercase is preserved only for display; records and certificates should use lowercase to avoid confusion.
Does a valid name mean the domain exists?+
No. This checks syntax only. Whether a name is registered or resolves requires a separate lookup.
API & MCP
No API endpoint
This tool runs entirely in your browser. It is not available over the REST API or MCP.
Shareable result
https://100www.dev/tools/domain-name-validator?d=example.com

100www engineering
EditorialReviewed by Steve · · Report an error
Tested from the 100www probe network; results vary by location and network.


