NewPlus, API and MCP are live — run 175 tools from your own stack.
100www

Tool 06 · D06 · Domain · Updated Nov 2026

eTLD+1 Extractor

Extract the registrable domain from any URL, handling multi-part suffixes such as co.uk and github.io.

Browser Free No sign-up
How it works
100www.dev/tools/etld-plus-one

Runs in your browser where possible. Third-party lookups only send the value you entered.

Enter a value to analyze locally.

What it does

eTLD+1 is the part of a hostname that a single party can register: the public suffix plus one label. It is the correct scope for cookies, site boundaries and most security decisions, and it is not the same as “the last two labels” once multi-part suffixes are involved.

How it works

The public suffix is the part under which names are registered. For example.com it is com; for example.co.uk it is co.uk; for shop.example.co.uk it is still co.uk. The eTLD+1 is that suffix plus the next label to the left: example.co.uk.

The list of public suffixes is maintained by the Public Suffix List project. It has two sections. The ICANN section contains registry-controlled suffixes such as com, co.uk and app. The private section contains hosting and platform suffixes such as github.io, vercel.app and s3.amazonaws.com.

Both sections matter in practice. For cookies and same-site checks, a browser treats each private suffix as a boundary, so a.github.io and b.github.io are separate sites even though both are under github.io. Using only “last two labels” would make them look like one site and leak data across tenants.

The algorithm is longest-match, with wildcard and exception rules. A rule such as *.ck means every third-level name under ck is a public suffix, while !www.ck is an exception. Implementing this by hand is a reliable source of bugs; use the list.

The PSL changes over time as platforms add suffixes. Pin a copy, update it deliberately, and re-test cookie and origin logic after updates.

When to use it

  • Set a cookie on the registrable domain without accidentally widening it to a platform tenant.
  • Group analytics or certificate inventory by the party that actually owns the name.
  • Compare two URLs to decide whether they are the same site for security purposes.
  • Extract the brand domain from a list of long hostnames and subdomains.

Glossary

eTLD
Effective TLD: the public suffix under which a name is registered, such as co.uk.
Public Suffix List
The community-maintained list of registry and platform suffixes.
Registrable domain
The public suffix plus one label, the unit a single party can register.
Wildcard rule
A PSL rule such as *.ck that makes every child name a public suffix.
Cookie scope
The domain and path a cookie is sent to; setting it too high leaks across sites.

Frequently asked questions

Why is github.io not treated as a normal domain?+

It is in the private section of the Public Suffix List. Each user subdomain is a separate site, so cookies set on github.io would otherwise be shared between unrelated tenants.

Is eTLD+1 the same as the last two labels?+

Only for simple suffixes. For co.uk, com.au or github.io, the last two labels are not registrable. The Public Suffix List is what makes the difference.

When should I use eTLD+1?+

Cookie scope, same-site decisions, certificate inventories and any grouping by owning party. Use the full hostname when the decision is per-service, such as CORS origins.

How often does the list change?+

Frequently, especially the private section. Update on a schedule and keep tests that cover your critical suffixes.

Does this work for internationalised names?+

Yes, if you compare A-labels consistently. Normalise to Punycode before matching so Unicode variants do not bypass a suffix rule.

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/etld-plus-one?u=https%3A%2F%2Fshop.example.co.uk%2Fpath

100www

100www engineering

Editorial

Reviewed by Steve · · Report an error

Tested from the 100www probe network; results vary by location and network.