A list of the top-level domains by the Internet Assigned Numbers Authority is maintained at the Root Zone Database.
IANA also oversees the approval process for new proposed top-level domains for ICANN.
As of June 2020, their root domain contains 1511 top-level domains, with a number of TLDs that have been retired and are no longer functional.
As of June 2020, the IANA root database includes 1,584 TLDs, including 55 that are not assigned , 8 that are retired and 11 test domains and are thus not represented in ICANN's listing and are not in root.zone file.
Read more