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.
- 192.168.1.0/25192.168.1.1 – 192.168.1.126
- 192.168.1.128/25192.168.1.129 – 192.168.1.254
- 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 toolHow 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.
Related Linux syntax guides
All Linux guidesLinux: Too many open files (EMFILE) and ulimit
EMFILE is a per-process descriptor limit, ENFILE is the kernel's. Read the limit from /proc, raise it in the right layer, and find the leak that made it matter.
Linuxsystemd status=203/EXEC and 217/USER: Exec and Permission Failures
203 is a failed execve, 217 is a user systemd could not resolve. Both happen before your program runs, and the check that finds each takes one command.
Linuxsystemd Timers vs Cron: Missing PATH, Overlapping Runs, Time Drift
Cron runs a bare shell with no profile and no locking, and systemd reads the system time zone. The environment, single-instance and schedule fixes for both.
LinuxBash Indexed Arrays, Associative Maps, and Parameter Expansion
Quoting decides whether an array stays a list, and the expansion operators replace most external text tools. Includes set -u, mapfile, namerefs, and the bash 3.2 differences that break scripts on macOS.