ToolBark
Developer

Subnet and CIDR Calculator

Instantly decode any IPv4 subnet — mask, hosts, broadcast, and more.

Enter an IPv4 address with a CIDR prefix length (0–32), e.g. , , .

Network

192.168.1.0/24

Class CPrivate/24254 usable hosts

Address Details

Network Address
192.168.1.0
Subnet Mask
255.255.255.0
Wildcard Mask
0.0.0.255
Broadcast Address
192.168.1.255
First Usable Host
192.168.1.1
Last Usable Host
192.168.1.254
Total Hosts
256
Usable Hosts
254
IP Class
C
Address Type
Private (RFC 1918)

Subnet Mask — Binary

11111111.11111111.11111111.00000000

The first 24 bits are the network portion; the remaining 8 bits are the host portion.

Quick Reference — Common Prefix Lengths

PrefixSubnet MaskHostsUse case
/8255.0.0.016,777,214Class A
/16255.255.0.065,534Class B / VPC
/24255.255.255.0254Small LAN
/25255.255.255.128126Half subnet
/26255.255.255.19262Quarter subnet
/27255.255.255.22430Small segment
/28255.255.255.24014Micro segment
/30255.255.255.2522Point-to-point
/32255.255.255.2551Host route
About

The Subnet and CIDR Calculator breaks down any IPv4 CIDR block in seconds. Enter a network like 192.168.1.0/24 and instantly get the subnet mask, wildcard mask, network address, broadcast address, first and last usable host, total host count, and IP class. Essential for network engineers, sysadmins, cloud architects, and anyone studying for CompTIA Network+ or CCNA.

FAQ
What does CIDR notation mean?+

CIDR (Classless Inter-Domain Routing) notation expresses an IPv4 address and its network prefix length together, e.g. 192.168.1.0/24. The number after the slash tells you how many leading bits define the network portion, with the remaining bits available for host addresses.

How many usable hosts does a /24 subnet have?+

A /24 subnet has 256 total addresses (2^8). Two are reserved — the network address (first) and the broadcast address (last) — leaving 254 usable host addresses.

What is the difference between a subnet mask and a wildcard mask?+

A subnet mask uses 1s to mark the network bits and 0s for host bits (e.g. 255.255.255.0 for /24). A wildcard mask is its bitwise inverse — 0s on network bits and 1s on host bits (e.g. 0.0.0.255). Wildcard masks are commonly used in ACLs and OSPF configurations.

What are the RFC 1918 private IP ranges?+

RFC 1918 defines three private IPv4 ranges: 10.0.0.0/8 (Class A), 172.16.0.0/12 (Class B), and 192.168.0.0/16 (Class C). These addresses are not routable on the public internet and are used for internal networks and VPNs.

Related tools