IP Subnet Calculator (IPv4 & IPv6)
Calculate IPv4 and IPv6 subnets: network, broadcast, host range, masks, CIDR splits, and binary breakdown. Free, fast, and works entirely in your browser with no sign-up required.
Updated
IP Subnet Calculator
Calculate IPv4 & IPv6 subnets, network / broadcast addresses, host ranges, masks, and CIDR splits.
IPv4 Input
Network Details
192.168.1.0192.168.1.255192.168.1.1192.168.1.254255.255.255.00.0.0.255256254Binary Representation
11000000.10101000.00000001.00001010Subnet Mask:11111111.11111111.11111111.00000000Network:11000000.10101000.00000001.00000000Subnetting
| # | Network | First Usable | Last Usable | Broadcast | Hosts |
|---|---|---|---|---|---|
| 1 | 192.168.1.0/26 | 192.168.1.1 | 192.168.1.62 | 192.168.1.63 | 62 |
| 2 | 192.168.1.64/26 | 192.168.1.65 | 192.168.1.126 | 192.168.1.127 | 62 |
| 3 | 192.168.1.128/26 | 192.168.1.129 | 192.168.1.190 | 192.168.1.191 | 62 |
| 4 | 192.168.1.192/26 | 192.168.1.193 | 192.168.1.254 | 192.168.1.255 | 62 |
Showing first 4 subnets.
Frequently Asked Questions
What does it compute?
IPv4 and IPv6 network details: network address, broadcast, usable host range, subnet mask, wildcard mask, CIDR notation, and binary representation.
Does it support IPv6?
Yes. Enter any IPv6 address (with or without :: compression) and a prefix length 0-128 — the tool shows expanded address, network, first/last address, and total count computed with BigInt for 128-bit precision.
Can I split a network?
Yes. After calculating an IPv4 network, specify a longer target prefix (e.g. /24 into /26) and the tool lists the first 10 resulting subnets.
Is the IP Subnet Calculator (IPv4 & IPv6) free to use?
Yes, the IP Subnet Calculator (IPv4 & IPv6) is 100% free with no registration, no hidden fees, and no usage limits. All processing happens locally in your browser, ensuring complete privacy.
Is my data safe with this tool?
Absolutely. The IP Subnet Calculator (IPv4 & IPv6) processes everything client-side in your browser. No data is uploaded to or stored on any server. Your content remains private on your device at all times.
Does the IP Subnet Calculator (IPv4 & IPv6) work on mobile devices?
Yes, the IP Subnet Calculator (IPv4 & IPv6) is fully responsive and works on smartphones and tablets. You can use it on any device with a modern web browser -- no app download required.
Do I need to create an account to use this tool?
No account or registration is needed. Simply open the IP Subnet Calculator (IPv4 & IPv6) in your browser and start using it immediately. There are no sign-up walls or usage restrictions.
How do I use the IP Subnet Calculator (IPv4 & IPv6)?
Simply enter your input in the provided field, adjust any settings to your preference, and the tool will process it instantly. You can then copy the result to your clipboard or download it.
Which browsers are supported?
The IP Subnet Calculator (IPv4 & IPv6) works in all modern browsers including Chrome, Firefox, Safari, Edge, and Opera. For the best experience, use the latest version of your preferred browser.
How many usable hosts are in a /24, /25, or /26 subnet?
A subnet's total addresses equal 2 raised to the number of host bits, which is 32 minus the prefix length. A normal subnet then reserves two of those for the network and broadcast addresses, leaving the usable host count. A /24 has 8 host bits, so 256 total addresses and 254 usable; a /25 has 128 total and 126 usable; a /26 has 64 total and 62 usable. Each step of one in the prefix roughly halves the block. The pattern continues: /27 gives 30 usable, /28 gives 14, and /29 gives 6. The point-to-point /31 and host /32 prefixes are special cases handled separately. Rather than memorize the table, enter any address and prefix in the calculator above to see the exact total and usable host counts instantly.
What is the difference between a subnet mask and a wildcard mask?
A subnet mask and a wildcard mask are bit-for-bit inverses of each other. The subnet mask marks network bits with 1s and host bits with 0s, so a /24 mask is 255.255.255.0. The wildcard mask flips every bit, making the same /24 read 0.0.0.255, where 1s now mark the bits that are allowed to vary. Subnet masks describe how a network is divided, while wildcard masks are used in access control lists and routing statements on Cisco IOS, where you specify which address bits to match and which to ignore. They always sum to 255 in each octet. The calculator above shows both masks in dotted-decimal for any prefix you enter, so you can copy the wildcard straight into a firewall or ACL rule without converting by hand.
Why does a /31 subnet have 2 usable hosts but a /29 reserves two addresses?
Standard subnets reserve the first address as the network identifier and the last as the broadcast address, so a /29 with 8 total addresses leaves only 6 usable for hosts. A /31, however, has just 2 total addresses, and reserving both would leave none usable. RFC 3021 solved this for point-to-point links: on a /31 both addresses are assignable to the two router interfaces, giving 2 usable hosts and conserving scarce IPv4 space. A /32 is a single-host route used for loopbacks and individual host entries, so it counts as 1 usable address with no network or broadcast reservation. The calculator above applies these RFC 3021 edge cases automatically, reporting 2 usable for a /31 and 1 for a /32 instead of the misleading zero a naive formula would produce.
How do I tell if an IP address is private or public?
Private addresses come from the ranges RFC 1918 reserves for internal networks: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. Any address inside those blocks is private and is not routable on the public internet, so it must be translated through NAT to reach external sites. Everything outside those ranges that is also outside the special-use blocks is public. The calculator also flags other special types: 127.0.0.0/8 is loopback, 169.254.0.0/16 is link-local (APIPA, assigned when DHCP fails), 224.0.0.0 through 239.255.255.255 is multicast, and the highest ranges are reserved or experimental. It even reports the legacy class A through E. Enter any IPv4 address above and the tool labels it as Public, Private, Loopback, Link-local, Multicast, or Reserved at a glance.
What does the slash number in CIDR notation like /24 actually mean?
The slash number in CIDR notation is the prefix length: the count of leading bits, out of 32 for IPv4, that belong to the network portion of the address. A /24 means the first 24 bits identify the network and the remaining 8 bits identify hosts, which is why a /24 holds 256 addresses. CIDR replaced the old class system, letting you size a network to any prefix from /0 to /32 instead of being locked to fixed class A, B, or C boundaries. A larger slash number means a smaller network with fewer hosts; a smaller number means a bigger block. The binary view in the calculator above lines up the address and mask bit by bit, making it easy to see exactly which bits the prefix claims for the network and which are left for hosts.
Embed This Tool
Add a free, live version of this widget to your own website or blog post — it runs entirely in your visitors' browsers, with a credit link back to The Toolbox.
<iframe src="https://getthetoolbox.com/embed/subnet-calculator" title="IP Subnet Calculator (IPv4 & IPv6) — The Toolbox" width="100%" height="380" style="max-width:480px;border:1px solid #e2e8f0;border-radius:12px" loading="lazy"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://getthetoolbox.com/utility-tools/subnet-calculator?utm_source=embed&utm_medium=widget" target="_blank" rel="noopener">Free IP Subnet Calculator (IPv4 & IPv6)</a> by The Toolbox</p>Related Tools
Free Secure Password Generator
Generate secure, random passwords with customizable options. Free, fast, and works entirely in your browser with no sign-up required.
Free UUID/GUID Generator
Generate universally unique identifiers (UUIDs/GUIDs). Free, fast, and works entirely in your browser with no sign-up required.
Free QR Code Generator Online
Create QR codes for URLs, text, WiFi, and contacts. Customize colors, size, and error correction. Free, private — runs in your browser, no sign-up.
Free JSON Formatter & Validator
Format, validate, and beautify JSON data with syntax highlighting and error detection. Free, fast, and works entirely in your browser with no sign-up required.
About the IP Subnet Calculator
The IP Subnet Calculator turns an IP address and a prefix into the full picture of a network. Enter an IPv4 address in CIDR form like 192.168.1.10/24 — or an address plus a dotted subnet mask such as 255.255.255.0 — and it instantly returns the network address, broadcast address, the first and last usable host, the subnet and wildcard masks, and the total and usable host counts. A second tab handles IPv6, so the same tool covers both address families that network engineers, sysadmins, and students work with every day.
Everything is computed in your browser. Nothing you type is sent to a server, which matters when the addresses describe a production network or an internal lab you would rather not paste into an unknown website. There is no sign-up, no query limit, and no software to install — open the page and start calculating.
What the calculator works out for IPv4
For any IPv4 input the tool derives the complete subnet breakdown:
- Network and broadcast addresses — the first and last addresses of the block, found by applying the mask and its inverse.
- Usable host range — the first and last assignable addresses. A normal subnet reserves the network and broadcast addresses, so a /24 holds 256 total addresses but 254 usable hosts. The calculator handles the edge cases correctly: a /31 point-to-point link has 2 usable addresses and a /32 host route has 1.
- Subnet mask and wildcard mask — both in dotted-decimal, with the wildcard (the bit-flipped mask) ready to paste into router and firewall ACLs.
- Class and type — the legacy class (A through E) plus whether the address is Public, Private (the RFC 1918 ranges 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), Loopback, Link-local (APIPA), Multicast, or Reserved.
Reading the binary view
Below the summary, the calculator shows the IP address, the subnet mask, and the network address in binary, split into the four octets. Lining these up makes the mask's job obvious: every bit set to 1 in the mask is a network bit, and the contiguous 0 bits are the host portion. It is the clearest way to see why a /26 splits a /24 into four equal blocks of 64 addresses, and a quick study aid for anyone learning CIDR for a CCNA or Network+ exam.
Splitting a network into subnets
After an IPv4 result appears, enter a longer target prefix to carve the parent block into equal pieces — for example a /24 into /26. The tool lists the resulting subnets with each one's network, first and last usable host, broadcast, and host count, showing the first 10 so you can plan an addressing scheme without doing the arithmetic by hand. You can export any result, including the subnet list, as a CSV file for documentation or a change ticket.
IPv6 support
Switch to the IPv6 tab to analyze 128-bit addresses. Enter an address with or without :: compression, optionally with a /prefix, and set a prefix length from 0 to 128. The calculator expands the shorthand to its full eight-group form and reports the network, the first and last address in the block, and the total number of addresses. Because IPv6 blocks are astronomically large — a single /64 contains 18,446,744,073,709,551,616 addresses — the counts are computed with BigInt arithmetic so the figures stay exact at 128-bit precision instead of rounding off.
Whether you are sizing a VLAN, writing a firewall rule, troubleshooting a routing issue, or studying for a certification, the IP Subnet Calculator gives you accurate IPv4 and IPv6 results in one place, instantly and privately. Enter an address above to begin.