esc

Subnet / CIDR Calculator

Enter an IPv4 address and a CIDR to get the network and broadcast address, netmask, wildcard, usable host range and host count, instantly. Everything runs in your browser, click any value to copy it.

Subnet math without the guesswork

Type an address like 192.168.1.10/24, or put the address in one field and the CIDR in the other. The calculator instantly works out the network address, broadcast address, netmask, wildcard mask, the usable host range and the number of usable hosts, plus the total addresses, the IP class, and whether the block is private, public or reserved.

Handy for pentests and network admin

Whether you are scoping an nmap sweep, splitting an office LAN, or writing a firewall rule, the wildcard mask and host range are right there to copy. Click any value to copy it to your clipboard. Edge cases are handled too, a /31 is treated as a two address point-to-point link and a /32 as a single host.

Free and fully client-side

No signup, no limits, and nothing sent anywhere, the math runs in your browser.

Frequently asked questions

What do I enter?
An IPv4 address with a CIDR, for example 192.168.1.10/24, or an address plus a CIDR in the separate field. The results update as you type.

What does it calculate?
The network and broadcast address, the netmask and wildcard mask, the usable host range and host count, the total addresses, the IP class and whether the address is private or public.

What is the difference between the netmask and the wildcard mask?
The netmask marks the network bits as ones, for example 255.255.255.0 for a /24. The wildcard mask is its inverse, 0.0.0.255, which is what Cisco ACLs and some firewall rules expect. The tool shows both so you can copy whichever the task needs.

How many usable hosts are in a subnet?
A /24 has 256 total addresses and 254 usable, since the network and broadcast addresses are reserved. The tool shows both counts for any CIDR.

Does it handle /31 and /32?
Yes. A /32 is treated as a single host, and a /31 as a two address point to point link per RFC 3021.

Missing an encoding or a feature?

Tell me what to add next, or report a bug. It goes straight to 0xDext3r.