CIDR / subnet calculator

Work out the details of a network, split it up, or check what's inside it. Works for IPv4 and IPv6. Hover or tap the ? if you're unsure.

Network

CIDR writes a network as an address plus a prefix length:192.168.1.0/24 means "the first 24 bits are fixed, the rest vary". A smaller number is a bigger network.

You can also type a netmask (192.168.1.0 255.255.255.0) or a single address. IPv6 works too, like 2001:db8::/32.

Split into subnets

Cut the network above into equal smaller ones. For example a /24 split into/26 gives four networks of 64 addresses each.

Is an address inside?

Checks whether an address belongs to the network at the top. Handy for firewall and allow-list rules.

Range to CIDR

Turns a start and end address into the shortest list of CIDR blocks that covers exactly that range. Firewalls and allow-lists usually want CIDR, not ranges.