CIDR Subnet Calculator

Calculate IPv4 subnet ranges, netmasks, wildcard masks, usable hosts, and binary network boundaries locally in your browser.

Browser-BasedResponsive UIPrivacy-First
Privacy: All subnet math runs locally in your browser. No IP address, routing plan, or subnet list is uploaded.

Quick samples

Start with a realistic network shape, then tweak the address or prefix.

Click any card to load it

IP and Prefix Setup

Paste a full IPv4 CIDR value such as 10.0.4.18/20 or 192.168.1.18/24.

/24

Slide between /0 and /32 to move the network and host boundary live.

INFOLoaded a private /24 example. Use the bit grid to flip host bits visually.
Standard IPv4 mode:The usable count follows traditional IPv4 subnet math, with /31 and /32 handled separately.

Subnet Split Planner

Useful for VLAN, VPC, and environment segmentation planning.

Split the current parent network into equal child blocks.

Network summary

192.168.1.0/24

Private Class C network with 254 standard usable addresses.

PrivateClass CStandard IPv4

Calculated Network Details

Entered IP
192.168.1.18

Exact host address you entered.

CIDR Block
192.168.1.0/24

Normalized network block for the address and prefix.

Netmask
255.255.255.0

Dotted decimal subnet mask.

Wildcard Mask
0.0.0.255

Inverse of the subnet mask, often used in ACLs.

Network Address
192.168.1.0

The first address that identifies the subnet itself.

Broadcast Address
192.168.1.255

The highest address in the block.

First Usable Host
192.168.1.1

First host address in standard subnet math.

Last Usable Host
192.168.1.254

Last host address before broadcast.

Total Addresses
256

Every address inside the IPv4 block.

Standard Usable
254

Usable host count with traditional IPv4 rules.

AWS Usable Estimate
251

Planning estimate after five reserved addresses.

Address Scope
Private

Quick hint for RFC 1918 and special ranges.

Class Hint
Class C

Legacy IPv4 class style reference.

Network Bits
24

Leading bits reserved for the network.

Host Bits
8

Bits left over for host addressing.

Interactive Bit Grid

The first 24 bits are network bits. Click any bit to toggle the IPv4 address.

Network bitHost bitBit set to 1
IP11000000.10101000.00000001.00010010
Mask11111111.11111111.11111111.00000000

How it works

How this CIDR subnet calculator works

Enter any IPv4 address with a CIDR prefix like 192.168.1.18/24 and instantly see the enclosing network block, netmask, wildcard mask, broadcast address, first and last usable hosts, total addresses, and usable host count. Click the 32-bit grid to flip binary bits and watch the network boundary move in real time.

Switch between standard IPv4 math and AWS mode to compare usable address counts — AWS reserves five addresses per subnet while standard subnetting reserves two. Use the subnet split planner to break a parent block into equal child networks for VPC, VLAN, or office segmentation. All calculations run locally in your browser with zero data uploads.