BGP ASN Converter (ASDOT ⇆ ASPLAIN)

How the conversion works (with example)

Example input: 1.10

Step 1 — Split the two parts
High = 1
Low = 10

Step 2 — Apply the formula
ASPLAIN = (High × 65536) + Low
ASPLAIN = (1 × 65536) + 10
ASPLAIN = 65546


Reverse conversion example: 65546

Step 1 — Find the High value
High = floor(65546 / 65536) = 1

floor() means always round down to the nearest integer

example 10/3 = 3
example 7/4 = 1
example 5/2 = 2

Step 2 — Find the Low value
Low = 65546 mod 65536 = 10

mod means the remainder after division

example 10 mod 3 = 1 (3 goes into 10 three times, remainder 1)
example 7 mod 4 = 3 (4 goes into 7 once, remainder 3)
example 5 mod 2 = 1 (2 goes into 5 twice, remainder 1)

Result
ASDOT = 1.10

ASDOT:

ASPLAIN:

History