Decimal to IP Converter
Enter a decimal integer representing a 32-bit IP address and instantly decode it back into a standard dotted IPv4 address.
Last updated: May 30, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is Decimal to IP Converter?
In databases, log files, and high-performance routing tables, IP addresses are often stored as 32-bit decimal integers rather than strings (like "192.168.1.1"). Storing an IP as a 4-byte integer is far more space-efficient and allows index queries to run much faster.
To convert a decimal integer back to a dotted IPv4 address, the number is divided into four 8-bit bytes (octets): 1. The first octet is obtained by shifting or dividing the integer by 16,777,216 (2²⁴) and taking the modulo 256. 2. The second is obtained by dividing by 65,536 (2¹⁶) modulo 256. 3. The third is obtained by dividing by 256 (2⁸) modulo 256. 4. The fourth is the integer modulo 256.
For example, the integer 3232235777 converts to: - 3232235777 / 16777216 = 192 - (3232235777 / 65536) % 256 = 168 - (3232235777 / 256) % 256 = 1 - 3232235777 % 256 = 1 Resulting in the IP address: 192.168.1.1.
How to Use Decimal to IP Converter
Enter a valid 32-bit decimal integer (a number between 0 and 4294967295) in the input field.
The dotted decimal IP, hex string, and binary equivalents will be updated instantly.
Click the copy icon next to any output to copy the result.
Click "Load Sample" to see an example conversion.
Common Use Cases
- Decoding IP addresses stored in databases (e.g. GeoLite IP databases) to readable IP format.
- Analyzing web server access log files that store user IPs as raw integers.
- Troubleshooting network routing systems and IP mapping scripts.
- Learning mathematical structures behind Internet Protocol formats.
Example Input and Output
The decimal integer 2130706433 is converted to IPv4 loopback 127.0.0.1.
2130706433127.0.0.1 (Hex: 0x7F000001)Privacy and Speed
All conversions happen in your browser via local client-side Javascript. No network requests are sent to convert your data.

