Skip to content
Jellykit

IP Address Converter

Convert an IPv4 address between dotted decimal, integer, hexadecimal, binary and IPv4-mapped IPv6 forms.

  • Runs on your device
Loading tool

About IP Address Converter

Databases store IPv4 addresses as integers, packet dumps show them in hex, subnetting is easiest in binary, and dual-stack systems print them as IPv4-mapped IPv6 addresses. Type the address in any of those forms and this converter works out which one it is and shows all the others, each ready to copy.

It also gives the reverse DNS name used for PTR records and says whether the address is public, private, loopback, link-local or in another special range.

How it works

  1. An IPv4 address is one 32-bit number. Dotted decimal writes its four bytes as numbers from 0 to 255.
  2. The form is recognised from how the text looks: dots, a 0x or 0b prefix, plain digits, or colons for IPv6.
  3. IPv4-mapped IPv6 addresses (::ffff:0:0/96) carry the IPv4 address in their last 32 bits.

Questions

Why is 0xC0A80001 accepted but C0A80001 refused?

Without the 0x prefix, eight characters could be read several ways. Adding 0x makes it clear that the digits are hexadecimal.

What about leading zeros, as in 010.0.0.1?

They are refused, because some systems read them as octal and others as decimal. Write the number without the zero.

Can it convert any IPv6 address?

Only IPv4-mapped ones, which contain an IPv4 address. For other IPv6 addresses, use the IPv6 calculator.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.