IPTOOL TR My IP

IP & Network

IPv4 and IPv6 subnet calculator

IPv4/IPv6 CIDR, network, broadcast, wildcard and usable host range.

IPv4 subnet calculator

Network class
Subnet
IP address

You can paste CIDR: 192.168.1.10/24. Private (RFC 1918) addresses are accepted. The math runs on this server.

IPv6 subnet calculator

Prefix length
IP address

/64 for a LAN, /48 for a site, /127 for point-to-point. Example: 2001:db8::1/64

IPv4 prefix table

Subnet mask, wildcard and usable hosts for each CIDR. Class A/B/C rows are the classful defaults; today you subnet further with VLSM.

CIDR Subnet mask Wildcard Total addresses Usable hosts
Class A (default /8)
/1 128.0.0.0 127.255.255.255 2,147,483,648 2,147,483,646
/2 192.0.0.0 63.255.255.255 1,073,741,824 1,073,741,822
/3 224.0.0.0 31.255.255.255 536,870,912 536,870,910
/4 240.0.0.0 15.255.255.255 268,435,456 268,435,454
/5 248.0.0.0 7.255.255.255 134,217,728 134,217,726
/6 252.0.0.0 3.255.255.255 67,108,864 67,108,862
/7 254.0.0.0 1.255.255.255 33,554,432 33,554,430
/8 255.0.0.0 0.255.255.255 16,777,216 16,777,214
Class B (default /16)
/9 255.128.0.0 0.127.255.255 8,388,608 8,388,606
/10 255.192.0.0 0.63.255.255 4,194,304 4,194,302
/11 255.224.0.0 0.31.255.255 2,097,152 2,097,150
/12 255.240.0.0 0.15.255.255 1,048,576 1,048,574
/13 255.248.0.0 0.7.255.255 524,288 524,286
/14 255.252.0.0 0.3.255.255 262,144 262,142
/15 255.254.0.0 0.1.255.255 131,072 131,070
/16 255.255.0.0 0.0.255.255 65,536 65,534
Class C (default /24)
/17 255.255.128.0 0.0.127.255 32,768 32,766
/18 255.255.192.0 0.0.63.255 16,384 16,382
/19 255.255.224.0 0.0.31.255 8,192 8,190
/20 255.255.240.0 0.0.15.255 4,096 4,094
/21 255.255.248.0 0.0.7.255 2,048 2,046
/22 255.255.252.0 0.0.3.255 1,024 1,022
/23 255.255.254.0 0.0.1.255 512 510
/24 255.255.255.0 0.0.0.255 256 254
VLSM — /25–/32 (subnets and hosts)
/25 255.255.255.128 0.0.0.127 128 126
/26 255.255.255.192 0.0.0.63 64 62
/27 255.255.255.224 0.0.0.31 32 30
/28 255.255.255.240 0.0.0.15 16 14
/29 255.255.255.248 0.0.0.7 8 6
/30 255.255.255.252 0.0.0.3 4 2
/31 255.255.255.254 0.0.0.1 2 2
/32 255.255.255.255 0.0.0.0 1 1

What is CIDR?

CIDR (Classless Inter-Domain Routing) says how many bits of an IP are the network versus the host. 192.168.1.0/24 means the first 24 bits are the network: 256 addresses, classically 254 usable hosts after dropping network and broadcast.

This page computes IPv4 and IPv6 network address, broadcast (IPv4 only), wildcard mask, usable range, binary mask, integer/hex IDs and the PTR zone (in-addr.arpa / ip6.arpa). You need those values for VLAN plans, DHCP scopes and ACL lines.

Network, broadcast and wildcard

The network address has host bits set to zero; it names the subnet. Broadcast has host bits set to one; on IPv4 it means “everyone on this network”. Usable hosts sit between the two.

A wildcard mask is the bitwise inverse of the subnet mask (255.255.255.0 → 0.0.0.255). Cisco ACLs and OSPF network statements use wildcard, not netmask. The binary mask shows which bits are locked.

Classful addressing and VLSM

The old classful model used A /8, B /16, C /24. The first octet still names the class (1–127 A, 128–191 B, 192–223 C; multicast D, 240+ E). CIDR breaks those defaults: you can cut a “class C” into a /27 VLAN with 30 hosts (VLSM).

The A/B/C filter on the form only shortens the subnet list to prefixes at least as long as that class default. The calculation is still CIDR; class in the result is read from the first octet.

/31, /32 and special IPv4 ranges

/32 is a single host (loopback address, BGP peer). /31 (RFC 3021) gives two addresses on a point-to-point link with no network/broadcast split. /30 is the older p2p habit (two usable plus network and broadcast).

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are RFC 1918 private and must not be announced on the internet. 100.64.0.0/10 is CGNAT (RFC 6598), 169.254.0.0/16 link-local, 127.0.0.0/8 loopback, 192.0.2.0/24 and sibling TEST-NET blocks are documentation. IPv4-mapped (::ffff:a.b.c.d) and 6to4 (2002:xxxx:xxxx::/48) are transition forms; do not use 6to4 in new designs.

IPv6 prefixes

IPv6 has no broadcast; multicast and anycast exist instead. LANs almost always use /64 for SLAAC. Operators typically give a site a /48 (or /56); each VLAN then takes a /64. Point-to-point uses /127 (RFC 6164); /128 is one address.

fc00::/7 is unique local (ULA, private IPv6), fe80::/10 link-local, 2001:db8::/32 documentation, ff00::/8 multicast, 2000::/3 global unicast. Address count is 2^(128−prefix); even a /64 holds more than 18 quintillion hosts — the “minus 2” usable rule is IPv4-only.

Frequently asked questions

How many usable hosts in /24?

Classically 254 (256 minus network and broadcast). /31 and /32 follow other rules.

What is /31 for?

Point-to-point links with 2 addresses (RFC 3021). Classic network/broadcast split does not apply.

What is a wildcard mask?

The bitwise inverse of the subnet mask. Used in Cisco ACLs and OSPF network statements.

Does IPv6 have broadcast?

No. Multicast and anycast exist; prefix length is enough. /64 is expected on a LAN for SLAAC.

What is CIDR notation?

address/prefix length. 192.0.2.0/24 means the first 24 bits are the network.

Relation to VLANs?

Each VLAN usually gets one prefix. The calc feeds DHCP range and gateway planning.

Can I calculate private IPs?

Yes. This is not a scan; RFC 1918, loopback and link-local are accepted.

What is in-addr.arpa?

The IPv4 PTR zone (octets reversed). For IPv6 the tool builds the ip6.arpa nibble tree.

What does the Class A filter do?

It limits the subnet list to /8 and longer. Class of the IP is still read from the first octet.