Toolvito

Calculates on this device using reference data from Toolvito.

Public Suffix Parser

Type a host name or a web address. The parser tells you its public suffix (such as co.uk or github.io), its registrable domain (example.co.uk) and its subdomain, with the rule of the Public Suffix List that decided it.

Enter your values

The subdomain, registrable domain and public suffix of one host name, and the rule that decided it.

Your values

A host such as www.example.co.uk, a web address or an email address.

More options

Untick it to use only the suffixes of the domain registries (the ICANN part of the list).

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose the button below them.

The calculator works in your browser. It loads checked reference data (for example time zones or official rates) from the Toolvito server; nothing you type is sent.

How to use it

  1. Type a host name (www.example.co.uk), a web address or an email address, and press Split.
  2. To check many at once, choose Check a list of host names and type one on each line, or open a text file.
  3. To see whether something is a public suffix, and which rules lie below it, choose Look up a suffix.

What the parts mean

  • Public suffix: the part under which people register names. It can be one label (com) or several (co.uk, kobe.jp), and also a private one such as github.io, where a company gives out names.
  • Registrable domain (eTLD+1): the public suffix with one more label in front: example.co.uk. Browsers use it to decide which sites may share cookies.
  • Subdomain: everything in front of the registrable domain (www, shop).

How the rules work

The list has normal rules (co.uk), wildcard rules that match any one label (*.ck) and exception rules that break a wildcard (!www.ck). The rule that matches the most labels of the host wins, and an exception rule wins over its wildcard. When no rule matches, the last label is the public suffix.

Names in other scripts are compared in Unicode; xn-- labels are read and shown in both forms.

Worked example

shop.example.co.uk: the rule co.uk matches, so the public suffix is co.uk, the registrable domain is example.co.uk and the subdomain is shop. For a.b.city.kobe.jp the exception !city.kobe.jp makes city.kobe.jp the registrable domain.

Limits you should know

  • The list is a snapshot at a pinned commit; new suffixes are added every week. The page names the commit it uses.
  • Whether a domain is registered, who owns it and when it expires are not checked here: use WHOIS & Domain Lookup.
  • IP addresses have no public suffix.

Related tools