IP Address Converter

Convert IP addresses between decimal, binary, hex, and integer.

/
Detected: IPv4

Frequently Asked Questions

How do I convert an IP address to binary?

Convert each of the four octets (0–255) separately to 8-bit binary. Example: 192.168.1.1 → 11000000.10101000.00000001.00000001. To convert a single octet: 192 = 128+64 = 11000000. This binary representation is used in subnet mask calculations.

What is an IPv4 address as a 32-bit integer?

An IPv4 address is 32 binary bits, which can be expressed as a single integer. Formula: (octet1 × 16,777,216) + (octet2 × 65,536) + (octet3 × 256) + octet4. Example: 192.168.1.1 = (192×16M) + (168×65K) + (1×256) + 1 = 3,232,235,777. Used in databases and network programming for compact IP storage.

When is IP address in hexadecimal used?

Hex IP notation (e.g. C0A80101 for 192.168.1.1) appears in network programming, packet analysis tools like Wireshark, memory debugging, and some router configuration interfaces. It's more compact than dotted decimal for machine processing.