Short answer
An ASN (autonomous system number) is a unique number that identifies a network on the internet that controls its own routing, such as an ISP, a cloud provider or a large company. Networks use their ASNs in BGP, the protocol they use to tell each other which IP addresses they can reach.
What is an autonomous system?
The internet is not one network but tens of thousands of separately run networks that agree to exchange traffic. Each of these networks is an autonomous system (AS): a group of IP address ranges (prefixes) operated by one organisation with one routing policy. The definition comes from RFC 1930.
Typical autonomous systems are home and mobile ISPs, cloud and hosting providers, content delivery networks, universities, governments and large companies. Today more than 70,000 ASNs are visible in the global routing table.
The ASN is simply the number that names that network, written with an AS prefix: AS15169 is Google, AS13335 is Cloudflare.
How ASNs are used in BGP
Networks find routes to each other with the Border Gateway Protocol (BGP). Each autonomous system announces the prefixes it is responsible for to its neighbours, and those neighbours pass the announcement on, adding their own ASN each time. The result is an AS path: a list of networks a packet will cross to reach the destination.
For example, Google announces 8.8.8.0/24 (the range that holds its 8.8.8.8 DNS resolver) from AS15169. A router in Malaysia might see that prefix with a path such as 4788 6939 15169, meaning: through TM, then Hurricane Electric, then Google. Routers generally prefer shorter paths, adjusted by business policy (customers first, then peers, then paid transit).
Because BGP largely trusts what neighbours announce, mistakes or attacks can send traffic the wrong way (route leaks and hijacks). Systems such as RPKI let networks publish which ASN is allowed to originate each prefix, so others can reject bad announcements.
Who assigns ASNs?
The pool of numbers is managed by IANA, which hands out blocks of ASNs to the five Regional Internet Registries (RIRs):
- ARIN: United States, Canada and parts of the Caribbean
- RIPE NCC: Europe, the Middle East and parts of Central Asia
- APNIC: Asia-Pacific
- LACNIC: Latin America and the Caribbean
- AFRINIC: Africa
Organisations apply to their RIR, directly or through a local registry or sponsoring member. In general you need a reason to run your own routing, usually connecting to two or more upstream networks (multihoming) or having a routing policy that differs from your provider's. A home user or small website does not need one: they use their ISP's or host's ASN.
16-bit vs 32-bit ASNs
ASNs were originally 16-bit numbers, from 0 to 65,535. That pool started running out in the 2000s, so 32-bit ASNs were introduced (RFC 4893 in 2007, now RFC 6793), extending the range to 4,294,967,295. Newer networks usually receive numbers above 65,535, such as AS396982 (Google Cloud).
32-bit ASNs are normally written as one plain number (AS396982); an older "asdot" style splits them into two halves (6.3446), but you will rarely see it now. Some ranges are reserved:
| Range | Use |
|---|---|
| 64512–65534 and 4200000000–4294967294 | Private use, like private IP ranges (RFC 6996) |
| 64496–64511 and 65536–65551 | Documentation and examples (RFC 5398) |
| 23456 | AS_TRANS, a placeholder for 32-bit ASNs on old 16-bit-only routers |
| 0, 65535, 4294967295 | Reserved, never routed |
Well-known examples
| ASN | Network | What it carries |
|---|---|---|
| AS15169 | Search, YouTube, Gmail, public DNS 8.8.8.8 | |
| AS13335 | Cloudflare | CDN, proxy and the 1.1.1.1 resolver |
| AS16509 | Amazon | Amazon Web Services (AWS) |
| AS8075 | Microsoft | Azure, Microsoft 365, Bing |
| AS32934 | Meta | Facebook, Instagram, WhatsApp |
| AS3320 | Deutsche Telekom | A large consumer and business ISP |
Big companies often run several ASNs, for example one for their global backbone and others for a cloud platform or an acquired business.
How to look up an ASN
On this site, the ISP & ASN directory lists networks with their size and countries, and each one has its own page, such as /AS15169, showing its IP prefixes, top locations and the share of VPN, proxy or hosting traffic seen. Every IP lookup also shows the ASN that announces the address.
In the API, the ASN is in connection.asn and the announced prefix in connection.route:
curl -H "X-API-Key: YOUR_KEY" "https://ipinfo.dkly.net/api/?ip=8.8.8.8"
"connection": { "asn": 15169, "organization": "Google LLC", "route": "8.8.8.0/24", ... }
From a terminal, whois AS15169 returns the registry record (organisation, contacts, registration date). Knowing the ASN tells you who runs the network, which is often more useful than the city: an address in a hosting ASN is rarely a person at home (see how VPN and proxy detection works).
[ FAQ ]
Frequently asked questions
Is an ASN the same as an IP address?
No. An IP address identifies one device or interface, while an ASN identifies a whole network that can hold millions of IP addresses. Each publicly routed IP address belongs to a prefix that is announced by one (sometimes more) ASN.
Can one company have several ASNs?
Yes. Large companies often run separate ASNs for different networks or regions, or keep the ASN of a company they acquired. Google, for example, uses AS15169 for its main network and AS396982 for Google Cloud.
Does my home internet connection have its own ASN?
No. Home and mobile customers use the ASN of their ISP. Only networks that run their own BGP routing, usually with two or more upstream providers, need their own ASN.
How do I get an ASN?
Apply to the Regional Internet Registry for your area (ARIN, RIPE NCC, APNIC, LACNIC or AFRINIC), directly or through a sponsoring member. You normally need to show that you will connect to more than one network or have your own routing policy, and pay the registry's fees.
Last updated · All articles · API docs