Skip to main content
IP Range CalculatorPRO
Conversion & EncodingInstant Client-Side Tool

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.

Quick presets:

Calculated Boundaries & ParametersReady

Network Address192.168.1.0
Broadcast Address192.168.1.255
First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Total Addresses256
Usable Host Range254

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.

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.

  1. Enter an integer

    Type a value from 0 to 4,294,967,295, such as 3,405,803,786.

  2. Extract octet 1

    3,405,803,786 ÷ 16,777,216 = 203, remainder 28,938.

  3. Extract octets 2 to 4

    28,938 ÷ 65,536 = 0, remainder 28,938; 28,938 ÷ 256 = 113, remainder 10.

  4. 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 256

Next 8 bits.

Octet 3

floor(N ÷ 2^8) mod 256

Next 8 bits.

Octet 4

N mod 256

Lowest 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.

IntegerUnsigned ValueIPv4 Address
000.0.0.0
110.0.0.1
2562560.0.1.0
65,53665,5360.1.0.0
16,777,21616,777,2161.0.0.0
167,772,161167,772,16110.0.0.1
2,130,706,4332,130,706,433127.0.0.1
2,886,729,7292,886,729,729172.16.0.1
3,232,235,7773,232,235,777192.168.1.1
3,405,803,7863,405,803,786203.0.113.10
-14,294,967,295255.255.255.255
-1,062,731,5193,232,235,777192.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.