redzilla
All tools
IP Addressing

ASN Converter

Enter an ASN in any format and I show its asplain ↔ asdot equivalence, whether it is 16- or 32-bit and whether it is public, private or reserved (0, 23456 AS_TRANS, etc.).

Accepts asplain (integer 0–4294967295) or asdot (high.low). The AS prefix is optional.

Examples
redzilla.cl — asn
 
asplain 13335
asdot 13335
asdot+ 0.13335
asplain
Size
Type

asdot breakdown · high.low

PartDecimalFormula
How it is computed · asplain, asdot and ranges

1. An ASN is an unsigned 32-bit integer: from 0 to 4294967295 (2³² − 1).

2. asdot+ splits it in two: high = ⌊asn / 65536⌋ and low = asn mod 65536, written as high.low.

3. asdot is the short form: equal to asplain when the ASN is < 65536 (16-bit); otherwise it is high.low. E.g. 655461.10.

4. 16-bit: 0–65535. 32-bit: 65536 and up. Private: 64512–65534 (16-bit) and 4200000000–4294967294 (32-bit).

5. Reserved: 0, 23456 (AS_TRANS), 65535, 4294967295, documentation (64496–64511 and 65536–65551).

Runs locally in your browser · no sign-up · nothing leaves your browser

How it works

The converter takes an autonomous system number (ASN) in any notation —asplain (integer from 0 to 4294967295), asdot (for example 1.10) or with the AS prefix— and shows its three representations, whether it is 16-bit or 32-bit, and the high.low breakdown: high = ⌊asn ÷ 65536⌋ and low = asn mod 65536. The asdot notation is the short form (equal to asplain below 65536); asdot+ always carries the dot.

It also classifies the ASN according to the IANA registries: private if it falls in 64512-65534 (16-bit) or 4200000000-4294967294 (32-bit) per RFC 6996, reserved if it is 0 (RFC 7607), 23456 (AS_TRANS, RFC 6793), 65535, 4294967295 or within the documentation ranges 64496-64511 and 65536-65551 (RFC 5398), and public (assignable by an RIR) in every other case.

Example: what ASN is 1.10 in asplain?

  1. In asdot, 1.10 means high = 1 and low = 10.
  2. asplain: 1 × 65536 + 10 = 65546.
  3. Since 65546 ≥ 65536, it is a 32-bit ASN; and since it falls in 65536-65551, it is reserved for documentation (RFC 5398).

Frequently asked questions

Which private ASNs can I use in my network?
The private-use ranges defined in RFC 6996: 64512 through 65534 in 16-bit (1,023 numbers) and 4200000000 through 4294967294 in 32-bit (almost 95 million). They are used in internal BGP, customer MPLS or labs, and must not be announced to the Internet; providers normally filter them or strip them with remove-private-as.
What is AS 23456 (AS_TRANS)?
It is an ASN reserved by RFC 6793 that bridges routers supporting 32-bit ASNs and those that only understand 16 bits: when a 32-bit ASN cannot be represented, the router substitutes 23456 in the BGP attributes. If you see it in a traceroute or a BGP table, there is almost always a 32-bit ASN behind it.
What is the difference between asplain, asdot and asdot+?
They are three ways of writing the same 32-bit integer (RFC 5396): asplain is the plain decimal number (65546), asdot+ always splits it as high.low (1.10, and 0.13335 for 16-bit ones), and asdot is the mixed form: plain decimal below 65536 and high.low from there on. Classic Cisco IOS uses asdot in some versions; most current registries and tools use asplain.
Does the tool look up who owns the ASN?
No: it is a range converter and classifier that runs 100 % in your browser, without querying external databases. It tells you whether the number is public, private or reserved per the RFCs, but to find which organization holds a public ASN you must query the whois of the corresponding RIR.
Was this tool useful?
Disclaimer We take great care to keep every tool accurate and review it thoroughly; even so, we can't guarantee it is free of errors or take responsibility for how the results are used. We recommend double-checking anything critical.
Found an error? Let us know →