IP Address Converter
Convert an IPv4 address between dotted-decimal, 32-bit integer, binary and hexadecimal.
An IPv4 address is really one 32-bit number; the dotted form just splits it into four 8-bit octets. Type in any field — the integer, binary and hex views recompute live. For example 192.168.1.1 = 3,232,235,777 = 11000000.10101000.00000001.00000001 = 0xC0A80101. Everything converts in your browser.
Questions
What is the integer form of an IP address?
An IPv4 address is a 32-bit number written as four 8-bit octets. 192.168.1.1 is (192×2²⁴)+(168×2¹⁶)+(1×2⁸)+1 = 3,232,235,777 as a single integer.
How do I convert an IP to hex or binary?
Convert each octet to base 16 or base 2 and join them. 192.168.1.1 is 0xC0A80101 in hex and 11000000.10101000.00000001.00000001 in binary. This tool does it both ways instantly.