Supports IPv4/IPv6: subnet, conversion, analysis
An IP address (Internet Protocol Address) is a unique numerical identifier assigned to every device on a network, similar to a mailing address in the physical world. Without IP addresses, data packets would never find their correct destination. The two most widely used versions today are IPv4 (32-bit addresses, approximately 4.3 billion) and IPv6 (128-bit addresses, approximately 3.4×10³⁸).
With the explosive growth of internet-connected devices, IPv4 addresses were exhausted in 2011, and IPv6 adoption is steadily increasing. However, the vast majority of real-world networks still operate on IPv4. Understanding IPv4 subnetting and the mapping relationship between IPv4 and IPv6 is an essential skill for every network engineer and developer.
Subnetting is the technique of dividing a larger IP network into multiple smaller subnetworks. Using CIDR (Classless Inter-Domain Routing) notation, such as 192.168.1.0/24, the /24 indicates that the first 24 bits represent the network portion, leaving 8 bits for hosts.
Why subnetting matters:
| CIDR | Subnet Mask | Usable Hosts | Total Addresses |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 | 16,777,216 |
| /16 | 255.255.0.0 | 65,534 | 65,536 |
| /24 | 255.255.255.0 | 254 | 256 |
| /25 | 255.255.255.128 | 126 | 128 |
| /26 | 255.255.255.192 | 62 | 64 |
| /27 | 255.255.255.224 | 30 | 32 |
| /28 | 255.255.255.240 | 14 | 16 |
| /29 | 255.255.255.248 | 6 | 8 |
| /30 | 255.255.255.252 | 2 | 4 |
| /32 | 255.255.255.255 | 1 | 1 |
An IPv4 address is fundamentally a 32-bit unsigned integer, but it can be expressed in several formats:
192.168.1.1, each octet being 8 bits (0–255)192.168.1.1 = 32322357770xC0A80101Understanding conversions between these representations is valuable for network debugging, security analysis, and low-level development.
Since IPv4 and IPv6 will coexist for a long time, the IETF has defined several IPv4-to-IPv6 mapping schemes that allow nodes in IPv6 networks to communicate with IPv4 nodes:
::ffff:x.x.x.x, e.g. ::ffff:192.168.1.1. This is the most commonly used mapping, representing IPv4 connections within IPv6 software. In network programming, if a server binds to :: (the IPv6 wildcard address), incoming IPv4 client connections appear in this format::x.x.x.x. This was an early transition mechanism, now deprecated by RFC 4291 and no longer recommended2002: prefix, forming an IPv6 address like 2002:xxxx:xxxx::/48. This allows any site with a public IPv4 address to automatically obtain a /48 IPv6 prefix, enabling automatic tunnel communication between IPv6 islandsIPv6 has a much richer address type system than IPv4, with different types serving different purposes:
In daily work, network engineers and developers frequently need to quickly calculate subnet ranges, verify CIDR configurations, or convert IP addresses between different formats. Manual calculation is not only time-consuming but also error-prone — especially when dealing with 128-bit IPv6 addresses, where manual computation is nearly impossible. Our online IP Calculator provides the following capabilities:
No installation required — just open your browser. An essential tool for every network engineer and full-stack developer.