Validate domain

Check a domain name’s ASCII labels and DNS length limits.

freeworks offlinenothing uploaded
ToolDomain Validator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

The lowercased value is split at dots, checked against 253-character whole-name and 63-character label limits, and each label must start and end with a letter or digit while allowing internal hyphens. A two-label minimum is required by this check.

  • The 63/253 limits follow DNS constraints.
  • Lowercasing makes the result stable for case-insensitive names.

Worked example

Valid Domain
Validate a standard domain name
Input
											example.com
										
Output
												Valid domain: example.com
											

When to use this

DNS editors, TLS requests, and web-crawler input checks validate domains.

Edge cases

  • Underscores are rejected even though some service-discovery names use them.
  • A trailing fully qualified-name dot is rejected by this presentation rule.
  • Raw Unicode IDNs need punycode normalization before ASCII validation.

References