Domains6 min read
How to check a domain's expiry date (WHOIS, RDAP and the command line)
By the RenewalRemind team
The quickest way to check when a domain expires is ICANN Lookup (lookup.icann.org): enter the domain and read the "Expiration date" (or "Registry Expiry Date"). Developers can query RDAP directly with curl or run whois on the command line. The date the registry shows is the one that counts.
Key takeaways
- ICANN Lookup shows the registry's expiry date for most domains, free and without signing in.
- Since January 2025, RDAP has replaced WHOIS as the official lookup for generic domains.
- The registry's expiry date can differ from your registrar's dashboard by a day or after a recent renewal — the registry wins.
- Checking by hand doesn't scale: record every date once and get reminded automatically.
Every registered domain has a public expiry date stored by its registry. You don't need to own the domain or sign in anywhere to see it. Here are four ways to find it, from the quickest to the most scriptable.
Method 1: ICANN Lookup (easiest)
- Go to lookup.icann.org.
- Type the domain (for example
example.com) and search. - Under Domain Information, read Expiration Date (or Registry Expiry Date).
ICANN Lookup queries the official registration data service for the domain, so you see the registry's date. It works for all generic domains (.com, .net, .org, .io and hundreds more) and for many country-code domains.
Method 2: your registrar's dashboard
If you own the domain, the registrar (GoDaddy, Namecheap, Hostinger, Cloudflare, BigRock and so on) shows the expiry date and the auto-renew setting in its domain list. This is also where you renew. Don't know which registrar holds a domain? Any of the lookups on this page tells you.
Method 3: RDAP from the command line
RDAP (Registration Data Access Protocol) is the modern replacement for WHOIS. It returns structured JSON, which makes it easy to script. The public rdap.org service redirects your query to the right registry:
curl -sL https://rdap.org/domain/example.com \
| jq -r '.events[] | select(.eventAction == "expiration") | .eventDate'It prints the expiry date and time in UTC, for example 2027-08-13T04:00:00Z.
Method 4: the whois command
On macOS and most Linux systems, whois is built in (on Ubuntu or Debian: sudo apt install whois):
whois example.com | grep -iE "expir|paid-till"The field name differs by registry — Registry Expiry Date, Registrar Registration Expiration Date, Expiration Time or paid-till — which is why the command matches several patterns.
Why the dates sometimes don't match
- Registry vs registrar date. The registry's date is authoritative. Registrars sometimes show a billing date a day earlier, or show
Registrar Registration Expiration Dateseparately. - Recent renewals. After you renew, the new date can take a short while to appear everywhere.
- Auto-renew grace. For a short time after expiry, some registries already show the date one year later while the registrar waits for payment. If the registrar says the domain is expired, believe the registrar. See what happens when a domain expires.
- Time zones. Registry dates are in UTC. Near midnight, the date in your time zone can differ by a day.
Checking many domains
Looking up one domain takes a minute. Looking up 50 every month takes an afternoon — and it's exactly the kind of job that gets skipped. Two options:
- Script it with the RDAP command above in a loop and write the results into a spreadsheet. Lookups are rate limited, so add a pause between domains. You still have to remember to run it and read the result.
- Look each date up once and get reminded. A domain's expiry date only changes when it is renewed, so you don't need to check it every month — you need a reminder before the date. Our renewal tracker template shows the columns to keep.
Frequently asked questions
Is WHOIS still available?
Since 28 January 2025, registries and registrars for generic domains no longer have to run WHOIS; RDAP is the official replacement. Many still answer WHOIS queries, and most country-code domains still use WHOIS.
Why does WHOIS show a different expiry date from my registrar?
Registrars sometimes show their own billing date, which can be a day earlier than the registry's date. Right after a renewal, the registry date can also take a short while to update. The registry expiry date is the authoritative one.
Can I see who owns a domain?
Usually not. Since GDPR, most registrars redact the owner's name and contact details. The expiry date, registrar and name servers are still public.