IP Address Converter

Type an IPv4 address, a whole number, a hex or binary value, or an IPv6 address in any form. You get the standard forms, the reverse lookup name and what kind of address it is.

IPv4 input can be dotted decimal, one whole number, 0x hex, 32 binary digits or four binary groups. IPv6 can be compressed or full, with an optional zone or prefix.

Worked examples

IPv4

192.168.0.1

dotted: 192.168.0.1 decimal: 3232235521 hex: 0xC0A80001 binary: 11000000.10101000.00000000.00000001 octal: 030052000001 mapped: ::ffff:c0a8:1 reverse: 1.0.168.192.in-addr.arpa cls: C kind: Local network address

Hex 0xC0A80001 is the same number as 3232235521.

IPv6 compression

2001:0db8:0000:0000:0000:ff00:0042:8329

2001:db8::ff00:42:8329

The run of three zero groups became a double colon.

About IP Address Converter

An IP address is a number, and different tools write it in different ways. IPv4 appears as four decimal groups in configuration, as one large integer in databases and firewall logs, as hex in packet dumps and as binary when you work out a subnet. IPv6 is written with runs of zeros squeezed out using a double colon, or in full with every group padded to four digits, and it is easy to disagree about whether two spellings are the same address.

Type an address in any of these forms and the page shows the others: dotted decimal, the decimal number, hex, binary, octal, the IPv4 mapped IPv6 form, the reverse lookup name and the kind of address, such as local network, loopback, link-local or documentation. For IPv6 you get the compressed form that follows the standard rules, the full form, the big decimal number and the form with a dotted IPv4 tail where that applies.

How to use IP Address Converter

  1. Type or paste an address, a whole number, 0x hex or binary.
  2. The standard forms appear below as you type.
  3. Copy the form you need.
  4. Read the type line to see whether the address is for a local network, public or special.

Common uses

  • Reading an address stored as an integer in a database
  • Comparing two IPv6 addresses written differently
  • Finding the reverse DNS name for a PTR record
  • Checking whether an address is for a local network or reserved

Frequently asked questions

How does IPv6 compression work?

Leading zeros in each group are dropped, and the longest run of two or more all-zero groups is replaced by a double colon. If two runs are equal, the first is replaced. Letters are lower case.

What is the decimal number form of an IPv4 address?

The four bytes read as one 32 bit number: first byte times 16,777,216, plus second times 65,536, plus third times 256, plus the fourth. So 192.168.0.1 is 3,232,235,521.

What is an IPv4 mapped IPv6 address?

A way to write an IPv4 address inside IPv6 as ::ffff: followed by the address. Dual stack software uses it when an IPv4 client connects to an IPv6 socket.

What does the reverse lookup name mean?

It is the name that DNS uses to find the host name for an address. For IPv4 the bytes are reversed and in-addr.arpa is added. For IPv6 every hex digit is reversed with dots and ip6.arpa is added.

Which ranges are for local networks?

In IPv4 these are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. IPv6 uses unique local addresses, fc00::/7, and link-local addresses, fe80::/10, for local use.