IP Address Converter

IP Address Converter is evaluated from First Octet, Second Octet and Third Octet. The calculation reports Dotted Decimal, Binary and 32-bit Integer.

Results

Thanks — we’ve logged this for review.

About the IP Address Converter

IP Address Converter is treated here as a quantitative relation between First Octet, Second Octet, Third Octet and Fourth Octet and Dotted Decimal, Binary, 32-bit Integer and Hexadecimal.

The calculator uses a multi formula configuration. Each reported value is read as a direct evaluation of the stored rules with the declared field formats and units.

Formula basis:
32-bit Integer = Octet1 x 16777216 + Octet2 x 65536 + Octet3 x 256 + Octet4
Binary: convert each octet to 8-bit binary

Interpret the outputs in the order shown by the result fields. Optional inputs affect only the outputs that depend on those variables.

Formula & How It Works

The calculation applies the following relations exactly as recorded in the metadata:

32-bit Integer = Octet1 x 16777216 + Octet2 x 65536 + Octet3 x 256 + Octet4
Binary: convert each octet to 8-bit binary

Each output field is produced by substituting the supplied inputs into the relevant relation and then applying the declared rounding or text format.

Worked Examples

Example 1: Home router default gateway: 192.168.1.1

Inputs

octet1: 192 octet2: 168 octet3: 1 octet4: 1
Dotted Decimal: 192.168.1.1. Binary: 11000000.10101000.00000001.00000001. 32-bit Integer: 3,232,235,777. Hexadecimal: 0xC0A80101. IP Address Class: Class C (192-223)

With First Octet = 192, Second Octet = 168, Third Octet = 1 and Fourth Octet = 1 as the stated inputs, the result is Dotted Decimal = 192.168.1.1, Binary = 11000000.10101000.00000001.00000001 and 32-bit Integer = 3,232,235,777. Each value corresponds to the declared output fields.

Example 2: Google DNS server: 8.8.8.8

Inputs

octet1: 8 octet2: 8 octet3: 8 octet4: 8
Dotted Decimal: 8.8.8.8. Binary: 00001000.00001000.00001000.00001000. 32-bit Integer: 134,744,072. Hexadecimal: 0x08080808. IP Address Class: Class A (1-126)

With First Octet = 8, Second Octet = 8, Third Octet = 8 and Fourth Octet = 8 as the stated inputs, the result is Dotted Decimal = 8.8.8.8, Binary = 00001000.00001000.00001000.00001000 and 32-bit Integer = 134,744,072. Each value corresponds to the declared output fields.

Example 3: Loopback address: 127.0.0.1

Inputs

octet1: 127 octet2: 0 octet3: 0 octet4: 1
Dotted Decimal: 127.0.0.1. Binary: 01111111.00000000.00000000.00000001. 32-bit Integer: 2,130,706,433. Hexadecimal: 0x7F000001. IP Address Class: Class A (1-126)

With First Octet = 127, Second Octet = 0, Third Octet = 0 and Fourth Octet = 1 as the stated inputs, the result is Dotted Decimal = 127.0.0.1, Binary = 01111111.00000000.00000000.00000001 and 32-bit Integer = 2,130,706,433. Each value corresponds to the declared output fields.

Example 4: Cloudflare's IP: 1.1.1.1

Inputs

octet1: 1 octet2: 1 octet3: 1 octet4: 1
Dotted Decimal: 1.1.1.1. Binary: 00000001.00000001.00000001.00000001. 32-bit Integer: 16,843,009. Hexadecimal: 0x01010101. IP Address Class: Class A (1-126)

With First Octet = 1, Second Octet = 1, Third Octet = 1 and Fourth Octet = 1 as the stated inputs, the result is Dotted Decimal = 1.1.1.1, Binary = 00000001.00000001.00000001.00000001 and 32-bit Integer = 16,843,009. Each value corresponds to the declared output fields.

Common Use Cases

  • Convert IP address to binary for subnetting
  • Find the integer representation of an IP address
  • Understand IP address structure