JSON Formatter
Beautify, minify and validate JSON with precise error locations.
Work out a subnet: network, broadcast, host range and usable count.
The CIDR Range Calculator derives every value a subnet has — network, broadcast, host range, wildcard and counts — using unsigned arithmetic, which is what a lot of subnet calculators get wrong at the top of the range.
Enter a CIDR block, or an address and a mask, and every derived value is calculated: the network and broadcast addresses, the first and last usable host, the wildcard mask, the total and usable counts, and what kind of address range it is.
The arithmetic is done on unsigned values, which matters more than it sounds — JavaScript's bitwise operators work on signed 32-bit integers, so a /1 mask comes out negative and a lot of subnet calculators quietly get the top of the range wrong. The /31 and /32 special cases are handled properly too: a /31 is a point-to-point link with two usable addresses and no broadcast, and a /32 is a single host. There is also a divider for splitting a block into equal subnets.
A /1 mask comes out negative under JavaScript’s bitwise operators, which is why many calculators break at the top of the range. This one does not use them.
A /31 is a point-to-point link with two usable addresses and no broadcast; a /32 is a single host. Both are handled rather than producing a negative count.
Private, loopback, link-local, carrier-grade NAT, documentation or public — with which RFC reserves it.
The inverse of the subnet mask, which is what a Cisco access list expects and what people most often compute backwards.
Split a block into equal subnets of a longer prefix, with the range of each listed.
Such as 192.168.1.0/24, or an address with a dotted mask.
Network, broadcast, first and last host, and the usable count.
Whether the range is private, loopback, documentation or public.
Split the block into equal subnets of a longer prefix.
The first is the network address that identifies the subnet itself, and the last is the broadcast address. Neither can be assigned to a host, which is why a /24 has 256 addresses and 254 usable ones.
RFC 3021 makes it a special case: on a point-to-point link both addresses are usable, because there is nothing to broadcast to. A /32 is a single host, used for loopbacks and route targets.
The inverse of the subnet mask — the host bits set instead of the network bits. Cisco access lists use it, which is why 0.0.0.255 appears where 255.255.255.0 would be expected.
1,024 addresses and 1,022 usable. Each bit taken from the prefix doubles the size, so a /23 is 512 and a /21 is 2,048.
What people who use the CIDR Range Calculator think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the CIDR Range Calculator. It takes half a minute and no account.
Write the first reviewBeautify, minify and validate JSON with precise error locations.
Generate cryptographically random strings over any alphabet you choose.
Validate a JSON document against a draft-07 schema and see every failure by path.
Work out the gap between two dates, in every unit including working days.
Serialise a JSON object into a percent-encoded URL query string.
Estimate how long a password would survive, and see exactly what weakens it.
Collapse nested JSON into one flat level of dot-notation or bracket keys.
Build a frosted glass panel with backdrop blur, over a real background.