About the IP Address to Decimal Converter
An IPv4 address is really a 32-bit number written as four bytes. Storing or comparing addresses as a single integer is often more efficient in databases and range checks, so this tool converts the dotted form to that integer: 192.168.1.1 becomes 3232235777. Convert several at once, one per line, with each octet validated to be 0 to 255.
The integer form makes it easy to test whether an address falls in a range (compare integers) or to store it in a numeric column. To convert back, use Decimal to IP; to see an address in binary or hex, the IP to Binary and IP to Hex tools.
The one thing to watch is a leading zero in an octet. Several C-derived resolvers read 010 as octal 8, so 192.168.010.1 is not the address it appears to be, and that ambiguity has been used to slip past allowlists that only match dotted quads. This tool reads every octet as plain decimal and rejects anything above 255. The integer form is also what makes a range test cheap, since one BETWEEN clause on a numeric column covers a whole subnet where matching dotted strings would need parsing on every row. For the boundaries of a block rather than a single address, the CIDR Calculator gives the network, broadcast and host range.
How to use
- Paste IPv4 addresses, one per line.
- Copy the decimal integers.
- Swap to convert back.
Common questions
- How is the integer calculated?
- Each octet is a byte: integer = a×16777216 + b×65536 + c×256 + d.
- Does it support IPv6?
- No, only IPv4. IPv6 addresses are 128-bit; use the IPv6 tools for those.
- What if an octet is over 255?
- The address is reported as invalid.