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.
Frequently Asked Questions
Why are IP addresses stored as integers?
IP addresses are stored as integers to save storage space and optimize query performance in database indexing. An integer takes only 4 bytes of memory, compared to up to 15 bytes for an IP string.
What is the maximum integer value for IPv4?
The maximum value is 4294967295, which represents 255.255.255.255. This corresponds to the highest possible value for a 32-bit unsigned integer.
Can this tool convert negative integers?
No. Traditional IPv4 addresses map to unsigned 32-bit integers, which are always positive (0 to 4294967295).
Related Tools
Binary to IP Converter
Convert 32-bit binary values into standard dot-separated IPv4 addresses. Supports visual octet breakdown, decimal, and hexadecimal output formats.
Hex to IP Converter
Convert hexadecimal addresses (32-bit hex values) into standard dot-separated IPv4 addresses. Supports decimal integer and binary representation formatting.
IP to Binary Converter
Convert dotted decimal IPv4 addresses into binary strings (dotted, spaced, or continuous 32-bit). Includes octet breakdown grid, decimal, and hex outputs.
IP Address to Phone Converter
Convert IP addresses into structured 10-digit telephone number formatting using mathematical integer mapping. Ideal for puzzles, encoding, and obfuscation.
Binary to Decimal Converter
Convert binary numbers (base 2) to decimal (base 10). Also shows hexadecimal and octal equivalents. Supports large binary numbers.
IP to Decimal Converter
Convert a dotted-decimal IPv4 address to its 32-bit decimal integer value. Also shows hex and binary representations.

