Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Decimal (Integer) Value
3,232,235,777
for IP 192.168.1.1
Octet 1 × 256³ 192 × 16,777,216
Octet 2 × 256² 168 × 65,536
Octet 3 × 256 1 × 256
Octet 4 × 1 1 × 1

What Is an IP to Decimal Converter?

An IPv4 address such as 192.168.1.1 is written as four numbers (octets) separated by dots, but underneath it is simply a single 32-bit number. This converter takes the four octets and combines them into one decimal integer between 0 and 4,294,967,295. This compact form is useful for databases, geolocation lookups, networking calculations, and sorting addresses numerically.

How to Use It

Enter each of the four octets — every value must be between 0 and 255. Press calculate and the tool returns the single decimal integer that represents the whole address, along with a breakdown of how each octet contributes.

The Formula Explained

Each octet occupies 8 bits, so the address is built by shifting each octet into its position:

$$\text{decimal} = a \times 256^3 + b \times 256^2 + c \times 256 + d$$

This is the same as a base-256 number where the leftmost octet is the most significant. \(256^3 = 16{,}777{,}216\), \(256^2 = 65{,}536\), and \(256^1 = 256\).

Worked Example

For 192.168.1.1: \(192 \times 16{,}777{,}216 = 3{,}221{,}225{,}472\); \(168 \times 65{,}536 = 11{,}010{,}048\); \(1 \times 256 = 256\); \(1 \times 1 = 1\). Adding them gives $$3{,}221{,}225{,}472 + 11{,}010{,}048 + 256 + 1 = \mathbf{3{,}232{,}235{,}777}$$

FAQ

What is the maximum value? The largest IPv4 address 255.255.255.255 equals 4,294,967,295 (\(2^{32} - 1\)).

Does this work for IPv6? No — IPv6 uses 128 bits and a different format. This tool covers IPv4 only.

Is the octet order important? Yes. The first octet is the most significant; swapping octets changes the result entirely.

Last updated: