IPv4/IPv6 CIDR, mask and host range
- Free
- No sign-up
- No upload
- Works offline
Tool facts
- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Offline use
- Works without a connection once this page has loaded
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
- Limits
- Subnet splits list the first 1,024 subnets (the exact total is still shown).
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About Subnet Calculator
Subnet Calculator takes an address such as 192.168.10.37/26, 192.168.10.37 255.255.255.192 or 2001:db8::1/56 and shows the network it belongs to. For IPv4 you get the network address, subnet mask, wildcard mask, broadcast, usable host range and count, the address type (RFC 1918 private, 100.64.0.0/10 CGNAT, link-local, multicast, TEST-NET documentation and more), the IP in binary with network and host bits coloured, its hex and integer form, and the in-addr.arpa zone. A /31 is treated as a point-to-point link per RFC 3021, with both addresses usable.
IPv6 is calculated with exact big integers: compressed and expanded network, first and last address, the address count written out in full with its power of two, how many /64s fit, the type (global unicast, ULA, link-local, documentation, IPv4-mapped) and the ip6.arpa zone. Below the result you can split the network into longer prefixes (the first 1,024 subnets are listed, with the exact total), test a list of IPs for membership, and turn a start–end range into the shortest CIDR list. Everything is computed in your browser.
Subnet Calculator runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use Subnet Calculator
- Type an address with a prefix or mask in the IP address / prefix box, or pick an example in the side panel.
- Read the network, mask, broadcast, host range and address type in the Result table; use Copy on any row.
- Choose a new prefix under Split into subnets to list the smaller networks, then copy the list.
- Paste addresses, one per line, under Is this IP in the network? to see which belong to it.
- Enter a start and end IP under Range to CIDR to get the minimal set of CIDR blocks.
Frequently asked questions
Why does a /26 show 62 usable hosts and not 64?
A /26 has 64 addresses. The first is the network address and the last is the broadcast address, so 62 are left for hosts. The two exceptions are /31, where RFC 3021 lets both addresses be used on a point-to-point link and there is no broadcast, and /32, which is a single host.
Why is 192.168.010.5 rejected?
An octet with a leading zero is ambiguous: some software reads 010 as octal (8), others as decimal (10), so the same text can mean two different hosts. The calculator refuses such octets, as Python's ipaddress module does, and tells you which octet to fix. Write 192.168.10.5 or 192.168.8.5, whichever you mean.
Which reverse DNS zone is shown for prefixes like /26 or /56?
Reverse zones are cut at octet boundaries for IPv4 and at 4-bit nibble boundaries for IPv6, so the calculator rounds the prefix down: a /26 shows the zone of its containing /24 (10.168.192.in-addr.arpa for 192.168.10.0/26), a /22 the zone of its /16, and a /58 the ip6.arpa zone of its /56. A /32 or /128 shows the full PTR record name.
How does Range to CIDR pick the blocks?
Starting at the first address it takes the largest block that is aligned on that address and does not run past the end, then continues after it. That gives the shortest possible list and matches Python's ipaddress.summarize_address_range. For example 10.0.0.5 to 10.0.0.20 becomes 10.0.0.5/32, 10.0.0.6/31, 10.0.0.8/29, 10.0.0.16/30 and 10.0.0.20/32.
Which input formats are accepted?
An IPv4 address with /prefix, with a dotted subnet mask after a space or slash, or on its own (the prefix list in the side panel then applies, /24 by default), and IPv6 with or without a prefix (bare IPv6 uses /64). IPv6 may embed an IPv4 address at the end, as in ::ffff:192.0.2.1. Masks must be contiguous; a wildcard mask such as 0.0.0.63 is recognised and the matching subnet mask is suggested. Zone IDs like %eth0 are not supported.