Subnet and CIDR Calculators

Choose a tool for address ranges, masks, host requirements, CIDR and IPv6 prefixes.

Which calculator should I use?

CalculatorBest for
IPv4 Subnet CalculatorNetwork, broadcast, mask, wildcard, host range and address count for any IPv4 address and CIDR prefix.
CIDR CalculatorTurn a CIDR prefix into its mask and block size — or find the smallest block for a number of addresses.
Subnet Mask ConverterConvert a CIDR prefix to a dotted-decimal mask and back, with the binary form and host bits.
IP Range CalculatorConvert an arbitrary IPv4 range into exact CIDR blocks, with counts and the covering block.
IPv4 Host CalculatorThe smallest IPv4 subnet that fits a given number of hosts, with the spare capacity left over.
Wildcard Mask CalculatorConvert between wildcard mask, subnet mask and CIDR prefix for ACL and OSPF statements.
IPv6 Subnet CalculatorNetwork prefix, compressed and expanded forms, address range and address count for any IPv6 prefix.
IPv6 Prefix CalculatorHow many child subnets an IPv6 prefix can be divided into, and how big each one is.

Common use cases

Frequently asked questions

Can I use more than one calculator?

Yes. Start with the calculator that matches the information you know, then use a related result as the input to another tool when needed.