Integer to IPv4
Convert a number from a database, log or geolocation file back into a readable IPv4 address.
Jump to toolWhat Is Integer to IPv4 Conversion?
Integer to IPv4 conversion turns a 32-bit number back into a readable address. Databases, logs and geolocation files often store addresses as integers, and you need the dotted form to read them: 3232235777, for example, is 192.168.1.1.
Enter a whole number from 0 to 4294967295 and the tool splits it into the four octets of the dotted IPv4 address.
How to Convert an Integer to an IP
- Enter a whole number between 0 and 4294967295.
- Select Calculate.
- Read the dotted IPv4 address it stands for.
The Method
Divide the number by 16,777,216 for the first octet, then work through the remainder with 65,536 and 256; what is left is the last octet.
For 3,232,235,777: 3,232,235,777 ÷ 16,777,216 = 192, remainder 11,010,305; ÷ 65,536 = 168, remainder 257; ÷ 256 = 1, remainder 1. The address is 192.168.1.1.
Examples
| Integer | IPv4 address |
|---|---|
| 167772161 | 10.0.0.1 |
| 134744072 | 8.8.8.8 |
| 3232235777 | 192.168.1.1 |
| 4294967295 | 255.255.255.255 |
Where You'll Meet IPs as Numbers
- IP geolocation and ASN data files, which store ranges as start and end integers.
- Database tables that use an unsigned integer column for addresses.
- Logs and analytics exports from some network devices.
Integer to IPv4 FAQ
Convert an address to a number
Turn a dotted IPv4 address into its integer.
Related Tools
Tools that often come next after this one