Network · Made a little simpler

DNS Name Length Checker

Count a hostname's ASCII labels after IDNA encoding. Check the 63-octet label limit, the 253-character presentation length and the 255-octet uncompressed DNS wire limit.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

DNS Name Length Checker: how to use it

  1. Enter a hostname or choose an example. The report updates locally while you type.
  2. Check the ASCII result, terminal dot and per-label warnings. Look at the uncompressed wire length for the complete name.
  3. Copy or download the JSON report to keep the exact counts with your notes.

Limits and notes

Accepts a single hostname up to 2,048 input characters. Tests browser IDNA conversion and ordinary hostname syntax. Lengths describe an uncompressed DNS name. Escaped zone-file names, DNS service labels, compression pointers and live DNS records are outside this check.

How your privacy works →

DNS Name Length Checker: common questions

Does a terminal dot add an extra wire octet?

The terminal dot makes the root explicit in text. The root takes one zero byte on the wire with either presentation.

Which length counts for an internationalized hostname?

Each encoded ASCII label is tested against the 63-octet limit. The complete wire length also includes each label's length field and the root.

Why is a service label with an underscore flagged?

This tool checks ordinary hostnames. Protocol-defined DNS owner names such as SRV service labels can legitimately use underscores.

Guides