Skip to main content
NyankoTools

IP Address Converter (IPv4 & IPv6)

Type an IP address and this tool detects its notation and shows every other form at once. IPv4 can be entered as dotted decimal ("192.168.1.1"), a plain integer ("3232235777"), hex ("0xC0A80101") or 32-digit binary, and you get dotted, decimal, hex and binary back. IPv6 is shown compressed (::), expanded and fully zero-padded, along with the 128-bit integer. Everything runs in your browser, so nothing you type is sent to a server. For subnet math, use the CIDR / Subnet Calculator.

🔒 Runs in your browser · Your data is never sent to a server

Notes

  • IPv4 input is auto-detected as dotted decimal, a decimal integer (0 to 4294967295), 0x-prefixed hex, 32-digit binary (an optional 0b prefix is fine), or binary in four dotted 8-bit groups.
  • Add the 0x prefix for hex. Digits without a prefix are always read as a decimal integer.
  • Decimal parts with leading zeros (e.g. 192.168.001.001) are rejected because they can be mistaken for octal.
  • IPv6 accepts square brackets such as [2001:db8::1] and embedded IPv4 such as ::ffff:192.168.1.1. Zone IDs (%eth0) and prefix lengths (/64) are not supported.
  • Compressed IPv6 follows RFC 5952: the longest run of two or more zero groups becomes ::, and letters are lowercase.
  • The address type only checks well-known ranges. It does not tell you whether the address is actually allocated.

Glossary

Decimal integer form (e.g. 3232235777)

The 32 bits of an IPv4 address written as a single number. 192.168.1.1 is 192×2^24 + 168×2^16 + 1×2^8 + 1 = 3232235777. Some browsers will even open it in a URL.

IPv6 compression (::)

Leading zeros in each group are dropped and a run of all-zero groups is replaced with ::. The :: may appear only once in an address.

IPv4-mapped IPv6 address (::ffff:a.b.c.d)

A way to write an IPv4 address in IPv6 form. The upper 80 bits are zero, the next 16 bits are ffff, and the lower 32 bits hold the IPv4 address.

Unique local address (fc00::/7)

The IPv6 range for private networks. These addresses are not routed on the public internet.

FAQ

What is an IP address as a decimal integer?

The four IPv4 octets are treated as digits in base 256 and combined into one number. 192.168.1.1 becomes 3232235777 and 127.0.0.1 becomes 2130706433. The range 0.0.0.0 to 255.255.255.255 maps to 0 to 4294967295.

Can I enter hex or binary without a prefix?

Digits alone are read as a decimal integer. For hex, add 0x, as in 0xC0A80101. Binary can be 32 digits of 0 and 1, a 0b-prefixed value, or four dotted 8-bit groups.

How is the compressed IPv6 form chosen?

Leading zeros in each group are dropped and the longest run of two or more zero groups becomes ::. If two runs tie, the first one wins, and letters are lowercase (RFC 5952). A single zero group is never shortened.

Can it convert fe80::1%eth0 or 2001:db8::/64?

Zone IDs (%eth0) and prefix lengths (/64) are not supported, so enter just the address. For IPv4 subnet math, use the CIDR / Subnet Calculator.

Share this page

↑↓ Select Enter Open Esc Close