Byte Converter
Bytes to KB, MB, GB and the KiB/MiB/GiB family.
Network, broadcast, host range and mask from any CIDR.
The /24 or /26 part. 0 to 32.
| Measure | Value |
|---|
Subnet Calculator takes an IPv4 address and a CIDR prefix and works out everything that follows from them: the network address, the broadcast address, the usable host range, the subnet mask and its wildcard. You can type the prefix in its own box or append it to the address as 192.168.1.130/26, which is how it usually appears in configuration.
The prefix is the number of leading bits that identify the network, so a /26 fixes 26 bits and leaves 6 for hosts. That gives 64 addresses, of which 62 are usable: the first is the network address and the last is the broadcast, and neither can be assigned to a machine. Every figure here comes from that single piece of arithmetic, which is why getting the prefix right matters more than anything else in a subnet plan.
Two prefixes break the usual rule and are handled specially. A /31 has no room for a network and broadcast pair, so RFC 3021 defines both of its addresses as usable for point-to-point links. A /32 is one address, a single host route. A formula that simply subtracts two reports zero and minus one for these, which is wrong and causes real confusion when reading a routing table.
The page shows its working, not just its answer. Where there is a formula it is printed with your own numbers substituted in, so you can check the result rather than take it on trust -- which is the difference between a calculator you can use for something that matters and one you cannot.
Everything runs inside your browser. What you type is never uploaded, never logged and never stored, and the calculator keeps working if your connection drops after the page has loaded.
Looking for something this does not cover? FreeToolsZone.org is more free browser-based tools, organised by job, and it is worth a look if subnet calculator is only part of what you are working on.
The subnet calculator is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:
It is the prefix length: the number of bits that identify the network. A /24 fixes the first three octets and leaves 254 usable hosts.
The first address in a subnet identifies the network itself and the last is the broadcast address, so neither can be assigned to a host.
The bitwise inverse of the subnet mask. Cisco access lists and some routing protocols take the wildcard rather than the mask.
Not yet -- this calculator is IPv4 only. IPv6 prefixes work on the same principle but use 128 bits and hexadecimal notation.
If the subnet calculator is not quite what you need, these other free tools solve closely related problems, and there are 11 more in tech calculators.
Bytes to KB, MB, GB and the KiB/MiB/GiB family.
Binary arithmetic with decimal, hex and octal output.
Bitwise operations with the bit patterns displayed.
Convert a number between binary, octal, decimal, hex and custom bases.
Transfer time from a file size and a line speed.
Checked and rebuilt on 2026-10-14. The method this calculator uses is described in the section above, and corrections go through the contact page.