IP Address Converter
AvailableConvert IPv4 and IPv6 addresses into binary, hexadecimal, integer, expanded and compressed forms, reverse-DNS names and IPv4-mapped notation — validated, in your browser.
Convert an address
IPv4 (192.0.2.1), IPv6 (2001:db8::1), or a 32-bit IPv4 value as decimal, 0x-hex or binary.
Representations
Conversion only — no lookups. For the network, owner and abuse contact of a public address, use IP Lookup; for masks and ranges, the Subnet Mask Converter.
How it works
An IPv4 address is a 32-bit number, usually written as four decimal octets; an IPv6 address is a 128-bit number written as eight 16-bit hex groups. The converter parses the address into its exact numeric value and writes it in other notations. It performs no lookups: notation says nothing about who owns an address, where it is or whether it is reachable.
IPv4 vs IPv6 notation
- IPv4: 32 bits, written as four decimal octets (0–255). The same value can be written as one integer (0–4,294,967,295) or 8 hex digits.
- IPv6: 128 bits, written as eight groups of four hex digits. Leading zeros may be dropped and one run of zero groups shortened to “::” (RFC 5952 defines the canonical form).
- IPv4-mapped IPv6 (
::ffff:192.0.2.1) is how dual-stack software represents IPv4 peers on IPv6 sockets.
Frequently asked questions
Why are IPv4 addresses with leading zeros rejected?
Some software reads a leading zero as octal, so 010.0.0.1 can mean 8.0.0.1 in one tool and 10.0.0.1 in another. To avoid ambiguity they are not accepted.
What is the canonical IPv6 form?
RFC 5952: lowercase hex, no leading zeros in a group, and the longest run of two or more zero groups replaced by “::” (the first one if there is a tie).
Can I enter an IPv6 address as a number?
No. A bare integer is only accepted as a 32-bit IPv4 value, where the meaning is unambiguous. IPv6 must be written in colon notation; its integer form is shown as output.