Skip to the content
Start free

What is a top-level domain (TLD)?

A top-level domain (TLD) is the last part of a domain name, after the final dot, such as .com, .org or .uk. It sits directly under the root of the Domain Name System. For most sites the choice of TLD makes little difference to rankings. The big exception is a country-code TLD such as .uk or .de, which tells Google the site is meant for one country.

What is a top-level domain? #

DNS is a tree. RFC 1034, the standard that defines it, says the name space is a tree structure and that all domain names end at the root. The TLD is the first branch below that root. In shop.example.co.uk, the TLD is .uk, the next label is co, then example, then shop. Each label can be up to 63 octets long. See DNS, domain name and URL.

What kinds of TLD are there? #

IANA keeps the official list of every TLD in its Root Zone Database, which sorts them by type:

Type Example What it is for
Generic (gTLD) .com, .org, .net, .shop Open or semi-open names, not tied to a country
Country code (ccTLD) .uk, .de, .fr One country or territory. IANA lists Nominet UK as the manager of .uk
Special use .arpa Internet infrastructure
Reserved for testing .test, .example, .invalid, .localhost Never for live sites. Set aside by RFC 2606 in 1999

RFC 1591, written in March 1994, named the first generic TLDs (COM, EDU, NET, ORG, INT, GOV, MIL) and said country codes come from the ISO 3166 list. It also said new TLDs were “extremely unlikely”. Many have been added since, and IANA’s database lists them all. A large batch came from ICANN’s New gTLD Program. Its programme page says the application window opened on 12 January 2012, ICANN received 1,930 applications, and the first new gTLDs were delegated in October 2013.

Is .co.uk a top-level domain? #

No. The TLD is .uk. The “co” part is a second level under it. But people register names under it, such as example.co.uk, so it behaves like a TLD. The Public Suffix List exists for exactly this: it lists endings such as com and co.uk where people can register names. Browsers use it to stop one site setting cookies across every .co.uk site. See first-party cookies.

Why .uk and not .gb? IANA notes that GB is the ISO 3166-1 code for the United Kingdom, but it lists .gb as reserved: it “may not be used”. So UK names sit under .uk.

Who runs TLDs? #

Three roles do the work. ICANN draws up contracts with each registry, runs accreditation for registrars and, in its own words, can add new TLDs. A registry runs one TLD, such as .uk. A registrar sells names in it to you, the registrant. Your name then points to your servers through DNS records, and your SSL certificate covers it.

Less than many people think. Google’s SEO starter guide says the TLD only matters if you target users in one country, and that keywords in a domain name have hardly any effect. In 2015 Google said it treats new gTLDs like .com and .org. A keyword in the TLD gives no advantage, and city names such as .london are treated as generic.

Country codes are different. Google’s guide to sites for many countries says a ccTLD gives a strong signal that the site is meant for one country. See international SEO and hreflang.

Which country codes does Google treat as generic? #

Some ccTLDs are popular for their look, not their country. Google says it treats some of these vanity ccTLDs as generic. Its current list is .ad, .ai, .as, .bz, .cc, .cd, .co, .dj, .fm, .io, .la, .me, .ms, .nu, .sc, .sr, .su, .tv, .tk and .ws, and Google says the list may change. Regional names such as .eu and .asia are also treated as generic. So a .io or .ai site does not target a country. If you need country targeting on a generic ending, use hreflang and local content, and see local SEO.

ccTLD, subdomain or subfolder? #

If you serve several countries, Google compares the options:

Set-up Example Strength Cost
Country code TLD example.de Clear country signal; server location does not matter One domain per country, more set-up, local rules on who can register
Subdomain de.example.com Easy to set up and separate Users may not know if “de” means language or country
Subfolder example.com/de/ Easy, low maintenance, one host Country is less clear from the address

Google does not say one ranks better. Pick the one you can run well for years.

Why does the TLD matter for AI answers? #

No AI company we know of says it prefers one TLD. What matters is the host. Google’s robots.txt rules apply only to the host, protocol and port where the file sits, so example.com and example.co.uk each need their own robots.txt. OpenAI says sites that block OAI-SearchBot will not be shown in ChatGPT search answers. If one of your two domains blocks it by accident, that domain drops out. The llms.txt proposal also places the file per website. See OAI-SearchBot, llms.txt and AI crawler.

What happens when you change TLD? #

Google treats a move to a new TLD like any other site move. Its site move guide asks for permanent redirects from every old URL to its new one, a Change of Address in Google Search Console, and redirects kept for at least a year. It says most pages of a medium-sized site can take a few weeks to move. See move a website without losing traffic, 301 vs 302 redirect and redirect chain.

What are the common mistakes? #

  • Two TLDs, both live. example.com and example.co.uk both answer with the same pages. That is duplicate content. Pick one and 301 the other, with a canonical tag on the live pages.
  • Choosing a TLD for a keyword. Google says it gives no advantage.
  • Thinking .io or .ai targets a country. Google treats both as generic.
  • Letting a domain lapse. Someone else can buy it. Google’s spam policies name expired domain abuse: a lapsed name bought mainly to manipulate rankings. See expired domain abuse.
  • Forgetting email on the second domain. A domain that sends no mail still needs SPF and DMARC records, or it can be spoofed. See SPF, DKIM and DMARC explained and email deliverability.
  • Using a test name on a live site. .test and .localhost never work in public.

A worked example #

A UK shop owns three names. Here is a sound set-up:

Name What it does Why
example.co.uk The live site, with its own robots.txt, sitemap and llms.txt Clear UK signal for a UK shop
example.com One 301 to the same path on example.co.uk Catches people who type .com
example.uk One 301 to example.co.uk; SPF and DMARC set to send no mail Stops lookalike use

Every page has one address. Every other name sends people and bots there in one hop.

How to check it #

  1. Split the address. The URL Parser shows the TLD, domain and path. The Domain Name Validator checks the name is well formed, and the Punycode Converter shows the real form of non-English names.
  2. Check every TLD you own redirects once. Run each name in the Redirect Checker. One 301 is right. Then read the status in the HTTP Header Checker. See HTTP status code.
  3. Check robots.txt on each live host. Use the Robots.txt Checker per host, then the AI Bot Checker to see which AI crawlers each one lets in.
  4. Check the files AI reads. Run the llms.txt Checker and the XML Sitemap Checker on the live host. The sitemap should list only that host’s URLs. See XML sitemap.
  5. Check canonicals and markup. The Meta Tag Checker shows the canonical. The Schema Markup Checker shows the url in your Organisation markup, which should use the live TLD.
  6. Check country targeting and certificates. The Hreflang Checker tests the language and country tags on a page. The SSL Certificate Checker confirms each name you own has a valid certificate. Hreflang audit checks the whole site (in URSY Pro, opening in stages).
  7. Look for lookalikes. The Lookalike Domain Checker lists names close to yours. Use the DMARC Record Generator and the SPF Record Explainer for names that send no mail.
  8. Compare your two TLDs. Compare Two Websites shows whether example.com and example.co.uk give the same answers.
  9. Check who really crawls. Verify an AI Bot tests an address against the published lists.
  10. Plan a TLD move. The Migration redirect mapper builds the old-to-new 301 map, and the Redirect monitor watches it (in URSY Pro, opening in stages).

What URSY.com counts #

We count every request your site answers, from the edge log and the origin, and sort it into five visitor types. Each request’s country comes from the CDN’s location of the address, which we rate medium-high confidence. So you can see whether a .co.uk site really draws UK visitors and UK-facing bots. The rules are on our methodology page.

Questions #

Does .com rank better than .co.uk? #

Google gives no general boost to .com. A .co.uk sends a UK signal, which helps a UK business and limits a global one.

Is .ai a country domain? #

IANA lists .ai as a country-code TLD managed by the Government of Anguilla, but Google treats .ai as generic. It does not target a country in Google Search.

Do new TLDs like .shop hurt rankings? #

Google says it treats new gTLDs like .com. Choose an ending your customers will recognise and remember.

Is .uk different from .co.uk? #

Both sit under the .uk country code, but they are separate registrations. If you own both, pick one for the site and 301 the other.

Should I buy my name in every TLD? #

Buy the ones people are likely to type or abuse, and redirect them. You do not need every ending.

Sources #

Updated 24 November 2026 by URSY.com.

Cite this page: What is a top-level domain (TLD)?. URSY. Updated 26 November 2026. https://ursy.com/wiki/top-level-domain/ · Section links

Tools for this

All 871 wiki entries, A to Z →