Convert an IPv4 address between dotted-decimal, binary and hexadecimal notation.
Google AdSense Banner
This area will contain advertisements after approval.
Google AdSense Banner
This area will contain advertisements after approval.
An IPv4 address is really just a 32-bit number, dotted-decimal notation (like 192.168.1.1) is simply the most human-readable way to display it. This converter parses your input in whichever format you select, reconstructs the underlying 32-bit value, then formats that same value as decimal, binary and hexadecimal.
Binary representation makes it easy to see exactly which bits are part of the network portion versus the host portion when working with subnetting, since subnet masks operate directly on these bits. Hexadecimal is commonly seen in low-level networking tools, packet captures and some router or firewall configuration formats.
Entering 192.168.1.1 in decimal format converts to binary 11000000.10101000.00000001.00000001, hexadecimal (dotted) C0.A8.01.01 or (compact) 0xC0A80101, and the 32-bit integer 3232235777, all four representing the exact same underlying address. Entering that same binary string back in with Input Format set to Binary reproduces the identical decimal, hex and integer values, since it's just a different display of the same 32-bit number.
Leaving the Input Format dropdown set to the wrong format for what you actually typed, entering a decimal address while Binary is selected causes a validation error rather than a conversion, since the parser expects exactly 32 binary digits.
Entering fewer than 32 binary digits or 8 hex digits, a shortened or truncated address (missing leading zeros in an octet, for example) won't parse, each octet needs its full digit count even if the value is small.
Assuming this tool validates whether an address is actually routable or in a reserved range, it converts between number formats only, it doesn't check whether the address falls in a private, reserved, or otherwise special-use range.
Yes, select the format you're starting from (decimal, binary or hex) in the Input Format field, and the calculator will show the equivalent value in all three formats.
Binary input should be 32 digits of 0s and 1s, optionally grouped with periods into four 8-bit octets. Hex input should be 8 hex digits, optionally grouped with periods into four 2-digit octets, or prefixed with '0x'.
Subnet Calculator - CIDR, Subnet Mask & IP Range Calculator
Calculate network address, broadcast address, usable host range and more from an IP and subnet mask.
CIDR Range Calculator - Calculate IP Range from CIDR Notation
Convert a CIDR block into its first and last IP address.
Hex to RGB / RGB to Hex Converter
Convert between hex color codes and RGB values, both directions.
Google AdSense Banner
This area will contain advertisements after approval.