Paste an IPv4, IPv6, integer, hexadecimal or binary value.

Prefixes 0x and 0b are supported for hexadecimal and binary input.
Examples:

Result

Enter a value to see the result.

What this tool checks

The converter accepts IPv4, IPv6, decimal integers, hexadecimal and binary values and derives compressed, expanded and reverse-DNS forms without a network request.

How to read the result

IPv6 compressed and expanded values describe the same address. Integer, hexadecimal and binary output are exact numeric representations; an IPv4-mapped IPv6 field is shown only when present.

Common problems

Leading zeros, values wider than 32 or 128 bits and copied whitespace are frequent input errors. A converted address says nothing about whether it is routed or currently assigned.

Command-line example

python3 -c "import ipaddress; print(ipaddress.ip_address('2001:db8::1').exploded)"