Your files stay on your device

IP as integer, hex, and binary

Convert IPv4 and IPv6 addresses to decimal, hex, and binary and back, with exact BigInt arithmetic and full 128-bit decimals never rounded.

Address
IPv6 forms
Decimal integer
42540766411282592856903984955389755119
Hexadecimal
20010db80000000000000000deadbeef
Binary, grouped
0010000000000001:0000110110111000:0000000000000000:0000000000000000:0000000000000000:0000000000000000:1101111010101101:1011111011101111
address: 2001:db8::dead:beef
Exactness rules
  • Every value is a BigInt end to end. A v6 integer like 42,540,766,411,282,592,856,903,984,951,653,826,561 keeps all 39 digits. The float rounding that gives every IP library "202824096037518…" artifacts cannot happen here.
  • Decimal → address refuses values past the family maximum instead of wrapping.
  • Binary is grouped per octet (v4) or per 16-bit group (v6) for reading; the flat string is the same bits.
  • Round trips are a tested property: address → decimal → address is identity, both families.
Done

Finished here in the tab. Nothing was uploaded.

exact in both directions: no float ever touches the value