CIDR / Subnet Calculator

IPv4 and IPv6 subnet math, address types and subnet splitting

Input

IPv4 or IPv6, with a /prefix, a subnet mask, or on its own.

Detected:
IPv4
Prefix length
Calculated 10.0.0.0/16.

Math only: addresses are not pinged, resolved or checked for assignment.

Options

Up to 20 bits longer (1,048,576 subnets).

Adds binary for the IPv4 address, masks, network and broadcast.

Results

FieldValueCopy
Address10.0.0.0
Network (CIDR)10.0.0.0/16
Prefix length/1616 host bits
Subnet mask255.255.0.0
Wildcard mask0.0.255.255
Network address10.0.0.0
Broadcast address10.0.255.255
First address10.0.0.0
Last address10.0.255.255
Usable host range10.0.0.1 – 10.0.255.254
Total addresses65,5362^16
Usable hosts65,534network and broadcast excluded
Address type
Private
Private10.0.0.0/8 · RFC 1918
Reverse DNS zone0.10.in-addr.arpa
Integer167772160
Hex0x0a000000

Subnets

16 subnets of /20

1
10.0.0.0/20
Usable range: 10.0.0.1 – 10.0.15.254 · Broadcast 10.0.15.255
2
10.0.16.0/20
Usable range: 10.0.16.1 – 10.0.31.254 · Broadcast 10.0.31.255
3
10.0.32.0/20
Usable range: 10.0.32.1 – 10.0.47.254 · Broadcast 10.0.47.255
4
10.0.48.0/20
Usable range: 10.0.48.1 – 10.0.63.254 · Broadcast 10.0.63.255
5
10.0.64.0/20
Usable range: 10.0.64.1 – 10.0.79.254 · Broadcast 10.0.79.255
6
10.0.80.0/20
Usable range: 10.0.80.1 – 10.0.95.254 · Broadcast 10.0.95.255
7
10.0.96.0/20
Usable range: 10.0.96.1 – 10.0.111.254 · Broadcast 10.0.111.255
8
10.0.112.0/20
Usable range: 10.0.112.1 – 10.0.127.254 · Broadcast 10.0.127.255
9
10.0.128.0/20
Usable range: 10.0.128.1 – 10.0.143.254 · Broadcast 10.0.143.255
10
10.0.144.0/20
Usable range: 10.0.144.1 – 10.0.159.254 · Broadcast 10.0.159.255
11
10.0.160.0/20
Usable range: 10.0.160.1 – 10.0.175.254 · Broadcast 10.0.175.255
12
10.0.176.0/20
Usable range: 10.0.176.1 – 10.0.191.254 · Broadcast 10.0.191.255
13
10.0.192.0/20
Usable range: 10.0.192.1 – 10.0.207.254 · Broadcast 10.0.207.255
14
10.0.208.0/20
Usable range: 10.0.208.1 – 10.0.223.254 · Broadcast 10.0.223.255

Calculated 10.0.0.0/16.

What it calculates

Enter an IPv4 or IPv6 address with a prefix length (10.0.0.5/20), a dotted subnet mask (10.0.0.5 255.255.240.0) or on its own. The calculator shows the network, subnet and wildcard masks, broadcast address, first and last address, usable host range, total and usable counts, the address type from the IANA special-purpose registries and the reverse DNS zone. All math uses exact big-integer arithmetic, so IPv6 /0 and IPv4 /0 are as precise as a /24.

How usable hosts are counted

IPv4 /0 to /30 excludes the network and broadcast addresses. A /31 has two usable addresses for point-to-point links (RFC 3021) and no broadcast; a /32 is a single host route. IPv6 has no broadcast, so every address in the prefix is counted, and /127 is noted as a point-to-point link (RFC 6164).

Splitting a prefix

Choose a longer prefix under Split into to list the subnets, for example 10.0.0.0/16 into sixteen /20 networks. Splits are limited to 20 extra bits (1,048,576 subnets); the list renders the first 4,096 rows and always shows the real total, and Copy subnets or Download CSV include up to 65,536 subnets.

Input rules and limits

IPv4 must be four decimal octets: leading zeros, short forms such as 10.1 and hex are rejected because systems read them differently. IPv6 follows RFC 4291 text forms including :: and an embedded IPv4 tail; results use the RFC 5952 canonical form. Zone ids (%eth0) are not accepted. This is math only: nothing is pinged, resolved or checked against a registry of assignments, and addresses you type are not saved.

CodingTool is officially live on

Launched on StartupBaseCodingTool.dev - Free, Fast & Easy Developer Tools in One Place | Product HuntCodingTool - Featured on Startup FameFazier badgeListed on Turbo0Featured on Twelve ToolsFeatured on Findly.toolsLaunchpadly Startup DirectoryCodingTool.dev — Featured on Smol Launch