Integer to IPv4 Converter
Convert integer values to addresses.
Integer to IPv4 Converter: inputs and results
Enter an IP address, CIDR prefix, or range. Then check its first and last address below.
Calculated Boundaries & ParametersReady
Key Capabilities
- •100% Client-Side: Zero telemetry or server latency.
- •RFC Compliant: Exact 32-bit and 128-bit integer precision.
- •Quick Copy: Instant access to CIDR, mask, and range bounds.
- •Cross-Platform: Works on desktop, tablet, and mobile browsers.
Related Conversion & EncodingAll Tools
CIDR to IP Range Converter
Convert prefixes into start–end ranges.
IP Range to CIDR Converter
Find exact covering CIDR blocks.
IPv4 Binary Converter
Convert addresses to binary.
IPv4 Decimal Integer Converter
Convert IPv4 addresses to integer values.
IPv4 Hexadecimal Converter
Convert addresses to hexadecimal.
How Integer to IPv4 Converter Works?
This tool works by dividing the integer by 16,777,216, 65,536, and 256 in turn, keeping each quotient as an octet and passing the remainder on.
Enter an integer
Type a value from 0 to 4,294,967,295, such as 3,405,803,786.
Extract octet 1
3,405,803,786 ÷ 16,777,216 = 203, remainder 28,938.
Extract octets 2 to 4
28,938 ÷ 65,536 = 0, remainder 28,938; 28,938 ÷ 256 = 113, remainder 10.
Join the octets
The result is
203.0.113.10. Negative signed values are converted by adding 4,294,967,296 first.
Integer to IPv4 Converter Formula
The formula is o₁ = floor(N ÷ 16,777,216), o₂ = floor(N ÷ 65,536) mod 256, o₃ = floor(N ÷ 256) mod 256, o₄ = N mod 256.
Octet 1
floor(N ÷ 2^24)Highest 8 bits.
Octet 2
floor(N ÷ 2^16) mod 256Next 8 bits.
Octet 3
floor(N ÷ 2^8) mod 256Next 8 bits.
Octet 4
N mod 256Lowest 8 bits.
Worked example: 3,405,803,786
o1 = floor(3,405,803,786 ÷ 16,777,216) = 203 o2 = floor(3,405,803,786 ÷ 65,536) mod 256 = 0 o3 = floor(3,405,803,786 ÷ 256) mod 256 = 113 o4 = 3,405,803,786 mod 256 = 10 IPv4 = 203.0.113.10
Integer to IPv4 Converter Conversion Table
The table maps 12 integer values, including 2 signed negative values, to IPv4 addresses.
| Integer | Unsigned Value | IPv4 Address |
|---|---|---|
| 0 | 0 | 0.0.0.0 |
| 1 | 1 | 0.0.0.1 |
| 256 | 256 | 0.0.1.0 |
| 65,536 | 65,536 | 0.1.0.0 |
| 16,777,216 | 16,777,216 | 1.0.0.0 |
| 167,772,161 | 167,772,161 | 10.0.0.1 |
| 2,130,706,433 | 2,130,706,433 | 127.0.0.1 |
| 2,886,729,729 | 2,886,729,729 | 172.16.0.1 |
| 3,232,235,777 | 3,232,235,777 | 192.168.1.1 |
| 3,405,803,786 | 3,405,803,786 | 203.0.113.10 |
| -1 | 4,294,967,295 | 255.255.255.255 |
| -1,062,731,519 | 3,232,235,777 | 192.168.1.1 |
What is Integer to IPv4 Converter?
The Integer to IPv4 Converter is a tool that converts a 32-bit integer back into a dotted decimal IPv4 address. 167,772,161 becomes 10.0.0.1.
Databases, logs, and APIs often store addresses as integers. Reading those values requires the reverse conversion. MySQL offers INET_NTOA(), and the converter does the same in the browser.
The converter accepts signed values from −2,147,483,648 to −1 and maps them to the upper half of the address space. The value −1 becomes 255.255.255.255.
What are the uses of Integer to IPv4 Converter?
There are 4 main uses of the Integer to IPv4 Converter, including reading database exports, decoding logs, and checking code.
Reading database exports
Integer address columns become readable addresses in reports.
Decoding application logs
Some applications log client addresses as integers.
Checking conversion code
Developers compare their own integer-to-address output with the converter.
Investigating obfuscated URLs
Phishing links such as
http://3232235777/hide an address as an integer.