General dev

CIDR / Subnet Calculator

Runs locally

Use CIDR / Subnet Calculator

What it does

Enter an IPv4 address with a prefix length to get its network and broadcast address, mask, first and last host and number of usable hosts. Useful when you turn a hosting range from RDAP or an abuse report into a firewall or blocklist rule.

It runs entirely in your browser: nothing you enter is uploaded.

Example

Address inside a /26

Input
198.51.100.77/26
Output (captured 2026-10-20)
NETWORK
198.51.100.64
BROADCAST
198.51.100.127
SUBNET MASK
255.255.255.192
FIRST HOST
198.51.100.65
LAST HOST
198.51.100.126
USABLE HOSTS
62

Network 198.51.100.64, broadcast 198.51.100.127, mask 255.255.255.192, hosts 198.51.100.65 to 198.51.100.126 (62 usable): the /26 that contains .77.

FAQ

What does it calculate?

For an IPv4 address and prefix it shows the network and broadcast addresses, the subnet mask, the first and last host and the number of usable hosts. Host bits in the input are ignored, so 198.51.100.77/26 gives the 198.51.100.64/26 network.

What are the limits?

IPv4 only, and the /prefix is required. For /31 and /32 the host fields are not meaningful (RFC 3021 point-to-point /31 links use both addresses) and /0 shows 0 usable hosts; input checks are basic, so a non-numeric octet is read as 0 rather than rejected.

Does it look up who owns the range?

No. It is arithmetic in your browser and nothing is sent. To find the network owner and abuse contact of an IP, use the Abuse Contact Lookup.