Formats explained
- Decimal — the whole IPv4 address as one number, as stored in databases (for example 3232235777 = 192.168.1.1).
- Hexadecimal and binary — the same 32 bits written in base 16 or base 2. Binary shows clearly where a subnet mask cuts the address.
- IPv4-mapped IPv6 — how an IPv4 address appears inside IPv6 software (::ffff:192.168.1.1).
- Expanded and compressed IPv6 — IPv6 addresses can drop leading zeros and replace one run of zero groups with "::". Both forms are the same address.
- Reverse DNS name — the name used to look up the PTR record (in-addr.arpa for IPv4, ip6.arpa for IPv6).
Frequently asked questions
How do I convert an IP address to a number?
Multiply the first part by 16,777,216, the second by 65,536, the third by 256, and add the fourth. 192.168.1.1 gives 3,232,235,777.
Why does 0177.0.0.1 open 127.0.0.1?
Some programs read numbers with a leading zero as octal (base 8). 0177 in octal is 127. That is why leading zeros in IP addresses can be dangerous.