IP to Decimal / Hex / Binary
Convert an IPv4 address to its integer, hex and binary forms, and back.
System verdict
RESULT192.168.0.1 = 3232235521
The integer is the address read as one 32-bit number. It is how addresses are stored and compared internally, and what appears in some log formats and database columns.
- Dotted decimal
- 192.168.0.1
- Integer
- 3232235521
- Hexadecimal
- 0xC0A80001
- Binary
- 11000000.10101000.00000000.00000001
What this cannot tell you
- Arithmetic on the value you enter. It does not check whether the address is valid, routable or in use.
- IPv4 only. IPv6 uses 128-bit addresses and is handled by the IPv6 tools.
How this calculation works
An IPv4 address is four bytes, and those four bytes can be read as a single 32-bit number. This tool packs the four octets into that number and shows it in decimal, hexadecimal and binary — or unpacks a number you supply back into an address.
What the results mean
- Integer
- The whole address as one 32-bit number. This is how addresses are stored and compared internally, and how they appear in some logs and databases.
- Hexadecimal
- The same value in base 16. Common in packet captures and low-level networking output.
- Binary
- The 32 bits themselves, grouped into the four octets. Useful for seeing exactly where a subnet boundary falls.
Frequently asked questions
Why would I convert an IP to a number?
Databases store and index addresses far more efficiently as integers than as strings, and range checks ("is this address between X and Y") become simple numeric comparisons. Many logging and geolocation systems work in the integer form for that reason.
Does 3232235521 really equal 192.168.0.1?
Yes. 192×16777216 + 168×65536 + 0×256 + 1 = 3232235521. Enter either form above and you get the other.