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

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.

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

  1. Enter an IPv4 address

    Type an address such as 192.168.1.1.

  2. Read the 4 octets

    The octets are 192, 168, 1, and 1.

  3. Multiply by place values

    192 × 16,777,216 + 168 × 65,536 + 1 × 256 + 1 × 1.

  4. 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; 1

Each octet is 1 base-256 digit.

Integer value

N = o1·16,777,216 + o2·65,536 + o3·256 + o4

Unsigned 32-bit integer.

Range

0 ≤ N ≤ 4,294,967,295

2^32 − 1 at most.

Signed 32-bit form

N − 4,294,967,296 when N ≥ 2,147,483,648

Used 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 AddressUnsigned IntegerSigned 32-bit
0.0.0.000
0.0.0.255255255
0.0.1.0256256
1.0.0.016,777,21616,777,216
10.0.0.1167,772,161167,772,161
127.0.0.12,130,706,4332,130,706,433
127.255.255.2552,147,483,6472,147,483,647
128.0.0.02,147,483,648-2,147,483,648
172.16.0.12,886,729,729-1,408,237,567
192.168.1.13,232,235,777-1,062,731,519
203.0.113.423,405,803,818-889,163,478
255.255.255.2554,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.