The TLD List & Counter

As of today there are please enable javascript active top-level domains (TLDs.) See the full list of active TLDs. There are 309 country-code TLD's, 1109 generic TLDs, 3 generic-restricted TLDs, 14 sponsored TLDs and 1 infrastructure TLD.

This site lists the current number of TLDs listed in the Internet Assigned Numbers Authority (IANA) Root Zone Database as active. The IANA database lists metadata about all TLDs if you want details about a specific TLD. The TLDs are counted once per day, so the accuracy should be fairly good. The number might be out of sync around the time when IANA posts the daily update, but it will only last a few minutes.

API

This service also provides a simple open API service. Both IPv4 and IPv6 requests are supported. There is no API key requirement or a hard rate limit, but please only make a limited amount of requests per minute.

Number of TLDs

This endpoint returns the current number of active TLDs.

URL Response type Example response
api/tldcount.json JSON {"tlds":1465}
api/tldcount.txt Text 1465

An endpoint providing the number of active TLDs in each of the five categories decided by ICANN is available here: api/tldtypes.json

List of TLDs

The API also provides an endpoint for obtaining a list of all active TLDs. A version including domain type and manager besides the TLD is also available.

URL Response type Comment
api/tldlist.json JSON Only TLDs
api/tldlist.txt Text Only TLDs
api/tldlistmeta.json JSON TLDs, type and manager

Other resources

If you want information about the suffixes users can register domains under, the Public Suffix List provides a community-maintained database of all domains under which users can directly register names (like .com, .co.uk, or .github.io).

ICANNWiki is a community-driven site that documents the ICANN ecosystem, providing a detailed knowledge base on internet governance and background information for every top-level domain.

The IANA Root Zone file is the authoritative, plain-text database of all top-level domains (TLDs) on the internet. It provides the official SOA, NS, and DNSSEC glue records required for every delegated TLD in the global root.