IP to Decimal / Hex / Binary
Convert an IPv4 address to its integer, hex and binary forms, and back.
What you provide
Result
192.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.
Binary
192.168.0.1
- 32 bits = 3,232,235,521 as one number
- 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.
Take this with you
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.
Put this on your own site
Free to embed, no attribution required beyond the source link the frame carries itself. It runs entirely in your visitor's browser, sets no cookies and loads no third-party script.
<iframe src="https://runthetests.com/embed/ip-to-decimal/" width="100%" height="560" style="border:1px solid #e5e5e5;border-radius:8px" title="IP to Decimal / Hex / Binary" loading="lazy"></iframe>
Preview it at https://runthetests.com/embed/ip-to-decimal/. Embedded pages are marked noindex, so yours stays the canonical copy — not this one.