IPv4 Decimal Integer Converter
Convert IPv4 addresses to integer values.
IPv4 Decimal Integer 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
How IPv4 Decimal Integer Converter Works?
This tool works by multiplying each octet by its place value (16,777,216, 65,536, 256, and 1) and adding the 4 products.
Enter an IPv4 address
Type an address such as
192.168.1.1.Read the 4 octets
The octets are 192, 168, 1, and 1.
Multiply by place values
192 × 16,777,216 + 168 × 65,536 + 1 × 256 + 1 × 1.
Add the products
The result is 3,232,235,777, a value from 0 to 4,294,967,295.
IPv4 Decimal Integer Converter Formula
The formula is Integer = o₁ × 256³ + o₂ × 256² + o₃ × 256 + o₄.
Place values
256³ = 16,777,216; 256² = 65,536; 256; 1Each octet is 1 base-256 digit.
Integer value
N = o1·16,777,216 + o2·65,536 + o3·256 + o4Unsigned 32-bit integer.
Range
0 ≤ N ≤ 4,294,967,2952^32 − 1 at most.
Signed 32-bit form
N − 4,294,967,296 when N ≥ 2,147,483,648Used by some languages and databases.
Worked example: 192.168.1.1
192 × 16,777,216 = 3,221,225,472 168 × 65,536 = 11,010,048 1 × 256 = 256 1 × 1 = 1 Integer = 3,232,235,777
IPv4 Decimal Integer Converter Conversion Table
The table maps 12 IPv4 addresses to their unsigned and signed 32-bit integer values.
| IPv4 Address | Unsigned Integer | Signed 32-bit |
|---|---|---|
| 0.0.0.0 | 0 | 0 |
| 0.0.0.255 | 255 | 255 |
| 0.0.1.0 | 256 | 256 |
| 1.0.0.0 | 16,777,216 | 16,777,216 |
| 10.0.0.1 | 167,772,161 | 167,772,161 |
| 127.0.0.1 | 2,130,706,433 | 2,130,706,433 |
| 127.255.255.255 | 2,147,483,647 | 2,147,483,647 |
| 128.0.0.0 | 2,147,483,648 | -2,147,483,648 |
| 172.16.0.1 | 2,886,729,729 | -1,408,237,567 |
| 192.168.1.1 | 3,232,235,777 | -1,062,731,519 |
| 203.0.113.42 | 3,405,803,818 | -889,163,478 |
| 255.255.255.255 | 4,294,967,295 | -1 |
What is IPv4 Decimal Integer Converter?
The IPv4 Decimal Integer Converter is a tool that converts an IPv4 address into the single unsigned 32-bit integer it represents. 192.168.1.1 equals 3,232,235,777.
An IPv4 address is a 32-bit number written in 4 base-256 digits. Databases, programming languages, and analytics tools store and compare addresses far more efficiently as integers. MySQL provides INET_ATON() for the same conversion.
Java, older PHP versions, and some databases store 32-bit values as signed integers. The converter shows the signed value, where addresses from 128.0.0.0 upward become negative.
What are the uses of IPv4 Decimal Integer Converter?
There are 4 main uses of the IPv4 Decimal Integer Converter, including database storage, range lookups, and debugging.
Storing addresses in databases
An unsigned INT column (4 bytes) stores an address in less space than a 15-character string.
Running fast range lookups
Geolocation and threat feeds match addresses with
WHERE n BETWEEN start AND end.Debugging signed integer bugs
Negative values in logs often mean an address above 127.255.255.255 was stored as signed.
Computing address arithmetic
Offsets and distances between addresses become simple integer math.