WebToolsPlanet
Converter Tools

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

Client-Side Processing
Input Data Stays on Device
Instant Local Execution

Find this tool useful? Support the project to keep it free!

Buy me a coffee

What 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

1

Enter a valid 32-bit decimal integer (a number between 0 and 4294967295) in the input field.

2

The dotted decimal IP, hex string, and binary equivalents will be updated instantly.

3

Click the copy icon next to any output to copy the result.

4

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.

Decimal Integer
2130706433
IPv4 Address
127.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).