CIDR Calculator - IPv4 Subnet & Network Range Mapper

Map IPv4 network subnets instantly. Calculate network addresses, broadcast IPs, subnet masks, and usable host counts from any CIDR prefix notation.

Examples:
Subnet Properties
Network IP192.168.1.0
Subnet Mask255.255.255.0
Broadcast IP192.168.1.255
IP Class RangeClass C (Public)
Usable Host Addresses254 IPs
192.168.1.1192.168.1.254
Total Addresses in Block:256 IPs
Bit-Level Subnet Mask
11000000.
10101000.
00000001.
00000000
Network Bits24 bits locked
Host Bits8 bits assignable
Client-side only - All calculations run locally in your browser using bitwise arithmetic. No IP addresses or network schemas are ever sent to any server.

CIDR Subnet Calculator: Master Subnetting & IP Address Spaces

In system administration, DevOps engineering, and network architecture, partitioning a massive IP range into smaller, efficient subnets is essential. Doing so prevents IP exhaustion, reduces broadcast network noise, and increases administrative security.

Computing subnet bounds manually involves complex binary arithmetic and decimal conversions. Our **CIDR Calculator** simplifies this workflow by mapping subnet properties, calculating usable hosts, and rendering bit-level visualizations in real-time.

Formula
Network Address = IP Address AND Subnet Mask Broadcast Address = Network Address OR NOT Subnet Mask

Subnet mapping utilizes bitwise operations inside the computer CPU:

Classless vs Classful Routing

Historically, IP addresses were bound to rigid Classful categories (Class A with a /8 mask, Class B with /16, and Class C with /24). However, this rigid system resulted in massive waste of unused IP spaces. Modern routing implements Classless Inter-Domain Routing (CIDR), allowing masks of any prefix length (such as /27 or /29) to precisely fit actual host counts.

Practical Examples

Standard Home LAN Setup (/24)

  • 1.CIDR notation: 192.168.1.0/24
  • 2.Subnet Mask: 255.255.255.0
  • 3.Total IPs: 256 IPs
  • 4.Usable Hosts: 254 IPs (192.168.1.1 - 192.168.1.254)
  • 5.Typical Use: Domestic routers and office LAN environments.

Corporate Office Sub-LAN (/27)

  • 1.CIDR notation: 10.10.5.0/27
  • 2.Subnet Mask: 255.255.255.224
  • 3.Total IPs: 32 IPs
  • 4.Usable Hosts: 30 IPs (10.10.5.1 - 10.10.5.30)
  • 5.Typical Use: Micro-subnetting for department isolation.

Frequently Asked Questions

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation is a compact representation of an IP address and its associated routing prefix (subnet mask). It consists of an IP address, a slash character ('/'), and a decimal number representing the number of shared network bits (e.g., 192.168.1.0/24).

Why do subnets deduct two host addresses?

In standard IP networking, two addresses within every subnet block are reserved for structural purposes: the first address (network address) represents the subnet itself, and the last address (broadcast address) is used to send data packets to all hosts on the subnet.

What is the subnet mask for a /24 prefix?

A /24 prefix indicates that the first 24 bits are network bits. In binary, this represents three full octets of 1s (11111111.11111111.11111111.00000000), which translates to a standard decimal subnet mask of 255.255.255.0.

What are the common private IP address ranges?

Private IPs are designated for internal networks (LANs) and are not routable on the public internet. The standard private blocks are: Class A (10.0.0.0/8), Class B (172.16.0.0/12), and Class C (192.168.0.0/16).

What does 0.0.0.0/0 represent in routing tables?

The CIDR block 0.0.0.0/0 represents the 'default route' or default gateway. It encompasses all possible IPv4 addresses and is used by routers to direct internet packets whose specific destination subnets are not present in their local routing tables.