IP Address Converter

IPv4 to decimal, hex and binary, IPv6 expand and compress, address type.

About this tool

Paste an IPv4 address in any common form, such as dotted decimal, one decimal number, hex or binary, or an IPv6 address. You get every other form with a copy button, the reverse-DNS name and the type of address, such as private, loopback, link-local, carrier-grade NAT, multicast, documentation or public. IPv6 addresses are expanded to all eight groups and compressed to the canonical short form.

IP address formats explained

An IPv4 address is a single 32-bit number, usually written as four decimal bytes separated by dots. The same address can be written as one integer, which is how many databases and logs store it, or in hexadecimal and binary, which show up in packet captures, firewall rules and obfuscated links. For example, 192.168.1.10 is 3232235786 in decimal and 0xC0A8010A in hex. Its reverse-DNS name, used for PTR records, is 10.1.168.192.in-addr.arpa. That address sits in a private range reserved by RFC 1918, along with 10.0.0.0/8 and 172.16.0.0/12, so it is never routed on the public internet. 100.64.0.0/10 is carrier-grade NAT, used by internet providers. IPv6 addresses are 128 bits written as eight groups of four hex digits. RFC 5952 defines the canonical short form: lowercase, no leading zeros, and the longest run of zero groups replaced by ::. So 2001:0db8:0000:0000:0000:ff00:0042:8329 compresses to 2001:db8::ff00:42:8329. Honest note: leading zeros in dotted IPv4, as in 010.0.0.1, are read as decimal here, though some older software treats them as octal. The subnet calculator works out networks and ranges, the number base converter handles other conversions and the user agent parser decodes browser strings. Subnet masks explained: what /24 means and how to size a network explains CIDR.

Frequently asked questions

How do I convert an IP address to decimal?

Multiply each byte by 256 to the power of its position: a ร— 16,777,216 + b ร— 65,536 + c ร— 256 + d. 192.168.1.10 is 3,232,235,786.

What is an IPv4-mapped IPv6 address?

An IPv6 form of an IPv4 address, ::ffff:a.b.c.d, used by dual-stack systems to handle IPv4 connections through IPv6 sockets.

Which IP addresses are private?

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for IPv4 (RFC 1918), and fc00::/7 for IPv6 unique local addresses.

Is my data saved?

No. Everything runs in your browser and nothing is stored or sent.