IP Converter
Convert IP addresses between different formats including dotted decimal, binary, hexadecimal, and integer representations. Useful for network programming, debugging, and understanding IP address structure.
Decimal Number
Enter an IP address...How It Works
Each IPv4 address consists of 4 octets (0-255). The conversion formula is:
(octet1 * 256^3) + (octet2 * 256^2) + (octet3 * 256^1) + (octet4 * 256^0)Example: 192.168.1.1 = (192 * 16777216) + (168 * 65536) + (1 * 256) + 1 = 3232235777
Quick Examples
FAQ
What formats can I convert between?
You can convert between dotted decimal (192.168.1.1), binary (11000000.10101000.00000001.00000001), hexadecimal (C0A80101), and integer (3232235777) formats.
Why would I need to convert IP addresses?
IP conversion is useful for network programming, bitwise operations, understanding subnet masks, storing IPs in databases as integers, and debugging network configurations.
How is an IP address stored as an integer?
An IPv4 address can be stored as a 32-bit unsigned integer by treating the four octets as bytes of that number. For example, 192.168.1.1 becomes 3232235777.