Pages

Topics

Tools

↑↓navigate↵openescclose
Encoding & Security

CIDR & Subnet Calculator

Work out the network, broadcast, usable host range and masks for an IPv4 CIDR block, read the address in binary, and split the block into two or four subnets.

Runs entirely in your browser — nothing you paste is uploaded.

Presets
Private/24254 usable hosts
Address
Network address
192.168.1.0
Broadcast address
192.168.1.255
First usable host
192.168.1.1
Last usable host
192.168.1.254
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Total addresses
256
Usable hosts
254
32-bit binary
11000000.10101000.00000001.00000000
25 / 26
/252 × 128
  • 192.168.1.0/25192.168.1.1 – 192.168.1.126
  • 192.168.1.128/25192.168.1.129 – 192.168.1.254
/264 × 64
  • 192.168.1.0/26192.168.1.1 – 192.168.1.62
  • 192.168.1.64/26192.168.1.65 – 192.168.1.126
  • 192.168.1.128/26192.168.1.129 – 192.168.1.190
  • 192.168.1.192/26192.168.1.193 – 192.168.1.254

The subnet mask marks the network bits, the wildcard mask inverts them, and the preview shows the block cut into two or four smaller networks.

IPv4 subnetting cheat sheet

quick reference
/24
256 addresses and 254 usable hosts on a 255.255.255.0 mask: the default for a home or office LAN.
/16
65,536 addresses under 255.255.0.0, the size of a classic VPC or corporate block.
/30
Four addresses and two usable hosts: the standard point-to-point link between two routers.
/32
One address and no host range, used to allow a single IP in a firewall or a security group.
network vs broadcast
The first address names the subnet and the last one reaches every host in it, so neither is assigned to a machine.
RFC 1918
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are private ranges that are never routed on the public internet.

Frequently asked questions

answered below the tool
How many usable hosts are in a /24?

254. A /24 holds 256 addresses, and the first is the network address while the last is the broadcast, so 256 minus 2 can be assigned.

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

A subnet mask sets the network bits to 1, as in 255.255.255.0, while a wildcard mask inverts them to 0.0.0.255 and is what ACLs and OSPF expect.

How do I know whether an address is private?

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are private, 100.64.0.0/10 is carrier-grade NAT and 127.0.0.0/8 is loopback. Everything else is public.

All Linux guides