IP Address Converter
IPv4 as dotted, decimal, hex or binary; IPv6 expanded or shortened.
Runs in your browser. Nothing you type is uploaded.
Convert an IP address
An IPv4 address is a 32-bit number. Enter it in any common form and see all the others: dotted decimal (192.168.0.1), the whole number (3232235521), hexadecimal (0xC0A80001) or four groups of binary. For IPv6, enter any valid form and get the shortest form, the fully expanded form and the 128-bit number.
FAQ
How do I turn an IP address into a number?
Each of the four parts is a byte. The number is first × 256³ + second × 256² + third × 256 + fourth. The tool does this for you.
How is an IPv6 address shortened?
Leading zeros in each group are dropped and the longest run of all-zero groups becomes "::", following RFC 5952.
Why are addresses like 010.1.1.1 rejected?
A leading zero means octal to some software and decimal to other software, so the address is ambiguous.
More IP tools
- What is my IP address: see the IP address you are connecting from.
- IP address validator: Check an IPv4 or IPv6 address is valid, and see whether it is private, loopback, reserved or public.
- Subnet calculator: Network, broadcast, netmask, wildcard and host range for any IPv4 or IPv6 CIDR block.
- CIDR to IP range: Turn a CIDR block into its first and last address, or a start-end range into CIDR blocks.
- Reverse DNS helper: Build the in-addr.arpa or ip6.arpa name for an address, with ready-to-run dig and host commands.
- Private IP ranges: A reference table of private, loopback, link-local and other reserved IP address blocks.