CIDR

Calculate subnet details from CIDR (Classless Inter-Domain Routing) notation using bitwise arithmetic.

Input

Enter an IPv4 address in CIDR notation:

192.168.1.0/24
10.0.0.0/8
172.16.0.0/12

You can also enter a bare IP address without a prefix (defaults to /32).

Output Fields

FieldDescription
Network AddressFirst address of the subnet (host bits all zero)
Broadcast AddressLast address of the subnet (host bits all one)
Subnet MaskDotted-decimal representation of the prefix mask
Wildcard MaskInverse of the subnet mask (used in ACLs)
First HostFirst usable host address (network + 1)
Last HostLast usable host address (broadcast − 1)
Total Hosts2^(32 − prefix)
Usable HostsTotal hosts − 2 (excludes network and broadcast)
CIDR NotationCanonical CIDR of the network
IPv4 ClassClassful classification and private range info

For /31 and /32 subnets, all addresses are considered usable (point-to-point links).

IPv4 Classes

ClassRangeDefault Use
A0.0.0.0 – 127.255.255.255Large networks
B128.0.0.0 – 191.255.255.255Medium networks
C192.0.0.0 – 223.255.255.255Small networks
D224.0.0.0 – 239.255.255.255Multicast
E240.0.0.0 – 255.255.255.255Reserved

Private Ranges (RFC 1918)

RangeCIDR
10.0.0.0 – 10.255.255.25510.0.0.0/8
172.16.0.0 – 172.31.255.255172.16.0.0/12
192.168.0.0 – 192.168.255.255192.168.0.0/16

The current CIDR expression is encoded in the URL as ?cidr=<value>. Copy the URL to share or bookmark a specific subnet calculation.

Reset

Clears the input and removes the URL parameter.

See also

  • DNS Record Types — A, AAAA, CNAME, MX, TXT, NS, and more with descriptions and example syntax
  • Port Numbers — well-known TCP and UDP port numbers grouped by service category