IP Address to Decimal Calculator – IPv4 Converter

April 19, 2026

🔢 IP Address to Decimal Calculator

Convert IPv4 addresses to decimal, hexadecimal, and binary — and back again

⚡Quick Presets
📋IP to Decimal Conversion
Invalid IPv4 address. Use format A.B.C.D (each 0–255)
✅ IP Address Conversion Results
Decimal (Integer)
—
32-bit unsigned integer
Hexadecimal
—
8 hex digits (0x...)
Binary
—
32 bits (dotted)
Octal
—
base-8 representation
📊 Per-Octet Breakdown
Octet 1—
Octet 2—
Octet 3—
Octet 4—
Calculation—
Total Decimal—
Hex (0x format)—
Binary (32-bit)—
🔄 Decimal to IP (Reverse Lookup)
💡Tips
Formula: Decimal = Octet1 × 16,777,216 + Octet2 × 65,536 + Octet3 × 256 + Octet4. Each octet is multiplied by 256 raised to its power position from the right.
Subnet Masks: Converting subnet masks to decimal is useful for routers that store routes as integer ranges. For example, /24 mask 255.255.255.0 = 4,294,967,040 in decimal.
📋Common IP Address Conversions
IP AddressDecimalHexBinary (first octet)
0.0.0.000000000000000000
1.1.1.116,843,0090101010100000001
8.8.8.8134,744,0720808080800001000
10.0.0.1167,772,1610A00000100001010
127.0.0.12,130,706,4337F00000101111111
172.16.0.12,886,729,729AC10000110101100
192.168.0.13,232,235,521C0A8000111000000
192.168.1.13,232,235,777C0A8010111000000
255.255.255.04,294,967,040FFFFFF0011111111
255.255.255.2554,294,967,295FFFFFFFF11111111
🔧Octet Multipliers
×16,777,216
Octet 1 (256³)
×65,536
Octet 2 (256²)
×256
Octet 3 (256¹)
×1
Octet 4 (256°)

An IP address is made up of 32-bit binary. For human use, it is split into four 8-bit parts, that are shown as decimal numbers in “dotted quad” format. Usually IPv4 addresses appear in dot-decimal form with four numbers between 0 and 255, separated by dots, like 192.0.2.1.

Each of those parts matches a group of 8 bits called an octet.

How IPv4 dotted decimal addresses work and how to change them to one number

Why decimal and not hex? The range 0-255 is easier to understand than hex. Such a number is not too big, and hex form only complicates it for average folks.

Because each part has only 8 bits, it matches two hex digits. Probably it was chosen for memorizing. Before DNS, folks had to recall IP addresses, and hex is recalled much more hardly than four short decimal numbers.

You can count 8 bits from 0 to 255 in binary. The decimal octet form helps to read the bit value of every byte. In an octet the bit weights are 128, 64, 32, 16, 8, 4, 2, and 1 from left to right.

You count the decimal value by adding weights of bits equal to 1. For instance, 11000000 in binary gives 192. Full octet 11111111 maches 255, because 1+2+4+8+16+32+64+128=255.

There are free tools that convert an IPv4 address from dot-decimal into one decimal number and back. For IPv4 you calculate it by means of 192×256³ + 168×256² + 1×256 + 1 four 192.168.1.1. Each octet is multiplied by 256 raised to its position from the right, starting from 0.

For instance, 8.8.8.8 using that formula becomes 134744072. You can ping it directly as 134744072 from a command prompt. Another example: 192.168.1.1 becomes 3232235777.

Address 218.53.147.240 gives 3660944368 by means of 218×256³ + 53×256² + 147×256 + 240.

Manually converting takes a long time and risks mistakes. It is easier to use an online IP to Decimal converter. Enter an address, click the button, and get it as one number.

In an IP header, addresses are raw 32-bit binary. Dotted decimal helps only folks. IPv4 can appear in hex like 0xff000102, but dotteddecimal stays standard.

IP Address to Decimal Calculator – IPv4 Converter

Related posts

Leave a Comment