IP to Decimal
Convert an IP address to an integer.
An IPv4 address is four bytes, so it can be written as a single 32-bit number: 192.168.1.1 becomes 3232235777. Storing addresses as integers turns range comparisons into simple numeric tests. The conversion runs in your browser.
Your input
Private, browser-based processingResults
Ready when you are
Enter your details above and run the tool.
How IP to Decimal works
What it does
Convert an IP address to an integer.
What you get
The address represented as a decimal integer.
On your device
Your input is processed in this browser. Copy or download the result when you are ready.
What if a check cannot finish?
Confirm your input and try again. A timeout, blocked request, or unavailable provider is not proof that a domain is broken. Internet measurements and third-party services have limits.
IP to Decimal — frequently asked questions
How is the number calculated?
Each octet is weighted by position: (a × 16777216) + (b × 65536) + (c × 256) + d. So 192.168.1.1 gives 3232235777.
Why store IP addresses as integers?
Range queries become plain comparisons — BETWEEN two integers rather than string parsing — which indexes well and is much faster on large tables.
Does this work for IPv6?
Not as a 32-bit integer. IPv6 is 128 bits and needs a big-integer or binary column. Use the IPv6 tools for those addresses.