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
About the IP Address Converter
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
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
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
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
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