IP Lookup Tools IP Converter

IP address converter: integer, hexadecimal, binary and IPv6

Enter an IPv4 or IPv6 address (or its integer or hexadecimal value) to see every representation: integer, hexadecimal, binary, reverse DNS name (in-addr.arpa and ip6.arpa), compressed and expanded IPv6, IPv4-mapped, 6to4 and NAT64 forms.

Runs in your browser The addresses you enter are not sent to a server.

Example: 192.0.2.33, 2001:db8::1, 3221225985 or 0xC0000221. Tick the box to read an integer as an IPv6 address.

Result: 192.0.2.33

IPv4

Example conversion: 192.0.2.33. Enter your own address in the box above; the result here updates.

Dotted decimal
192.0.2.33
Integer
3221226017
Hexadecimal
0xc0000221
Binary
11000000.00000000.00000010.00100001
Reverse DNS name
33.2.0.192.in-addr.arpa
IPv4-mapped IPv6
::ffff:192.0.2.33
IPv4-mapped IPv6 (hexadecimal)
::ffff:c000:221
6to4 prefix
2002:c000:221::/48
NAT64 address
64:ff9b::192.0.2.33

What is converted?

  • IPv4: integer, hexadecimal, binary and the reverse DNS name (in-addr.arpa)
  • IPv6: compressed (RFC 5952) and expanded notation, hexadecimal, the reverse DNS name (ip6.arpa) and the /64 prefix
  • The IPv6 equivalents of an IPv4 address: IPv4-mapped (::ffff:), 6to4 (2002::/16) and NAT64 (64:ff9b::/96)
  • An IPv4 address embedded in an IPv6 address is extracted

How do I read the result?

  • In IPv6 compression the longest run of zeros becomes "::" (the first run on a tie); a single zero group is not compressed and letters are lowercase (RFC 5952).
  • The reverse DNS name is the name a PTR record is looked up under: 8.8.8.8.in-addr.arpa for 8.8.8.8; in IPv6 the 32 hexadecimal digits are written reversed with dots.
  • 6to4 (RFC 3056, 2002::/16) is rarely used today: RFC 7526 (2015) deprecated 6to4's anycast mode and the 192.88.99.0/24 prefix. The NAT64 prefix 64:ff9b::/96 is defined in RFC 6052.

Frequently asked questions

How do I get an IP address from an integer?

An IPv4 address is a 32-bit number: 3232235777 is 192.168.1.1. Type the number; it is split into four octets and written with dots.

Why is the IPv4-mapped address shown in two forms?

::ffff:192.0.2.33 and ::ffff:c000:221 are the same address; the first uses the dotted IPv4 notation and the second plain hexadecimal (RFC 5952).

Are the addresses I enter stored?

No. The conversion runs in your browser; the addresses are not sent to a server.