Integer to IPv4 Converter — 32-Bit Numbers to Addresses
Convert a 32-bit integer (e.g. 3232235777) back into standard IPv4 notation.
| Input | IPv4 | Hex |
|---|---|---|
3232235777 | 192.168.1.1 | 0xC0A80101 |
167772414 | 10.0.0.254 | 0x0A0000FE |
134744072 | 8.8.8.8 | 0x08080808 |
0 | 0.0.0.0 | 0x00000000 |
4294967295 | 255.255.255.255 | 0xFFFFFFFF |
When to use the 32-Bit Unsigned Integer to IPv4 Address Converter
Reading database values
Address columns stored as numbers by apps, firewalls or geolocation databases can be read back as IPv4 addresses at once.
Same as INET_NTOA
The result matches MySQL's INET_NTOA and PHP's long2ip, handy for checking query results without a database console.
Range checked
Negative numbers, fractions and values above 4,294,967,295 are refused per line, because no IPv4 address matches them.
Shown with its hex
Every result comes with its hex form, useful when matching numbers to memory dumps or protocol documentation.
Frequently asked questions
What is the formula?
Divide by 16,777,216 for the first octet, the remainder by 65,536 for the second, then by 256 for the third; the last remainder is the fourth octet.
What does 0 mean?
0 is 0.0.0.0, the address that means this host, or all interfaces when used as a server bind address.
Can I enter hex numbers?
Use the Hex to IPv4 converter for hex values; this tool is for plain decimal numbers, because 0x10 and 10 mean very different values.
What about the reverse?
Use the IPv4 to Integer converter. Its result matches MySQL INET_ATON, so it can be used to build range queries such as BETWEEN on address columns stored as numbers.
Is my data sent to a server?
No. Everything is computed in your browser, so numbers pasted from a production database or firewall log stay on your device and are not stored by this site.
Similar tools
- IPv4 Address to 32-Bit Unsigned Integer ConverterConvert dotted IPv4 addresses into a single 32-bit unsigned decimal integer.
- 32-Bit Binary Octets to Dotted-Decimal IPv4 ConverterConvert 32-bit binary bitstreams or dotted binary octets back into IPv4.
- IPv4 Address to Hexadecimal (0x) ConverterConvert IPv4 octets into dotted hex and 32-bit hex (for DHCP Options & /proc).
- Hexadecimal (0x) to Dotted-Decimal IPv4 ConverterDecode hex bytes from packet dumps, /proc/net/tcp or DHCP logs back into IPv4.