IPv4 Subnet Calculator
Essential for configuring firewalls, routers and VLANs correctly.
How IPv4 Subnet Calculator works
Work out the network, broadcast, mask and usable hosts for a CIDR block. Essential for configuring firewalls, routers and VLANs correctly. Everything happens inside this page: the tool reads your input, runs the calculation or conversion locally, and hands the result back to you. Nothing is transmitted, because there is no backend to transmit it to.
That design choice is deliberate. Most free tool sites upload your files to a server, process them there, and quietly keep a copy. Toolcin cannot do that — the site is a set of static files. If your connection dropped the moment the page finished loading, every tool would still work.
What CIDR notation means
192.168.1.10/24 means the first 24 bits are the network and the last 8 identify the host. The address therefore sits in the 192.168.1.0 network, whose usable range is 192.168.1.1 to 192.168.1.254 with a broadcast at .255.
The prefix length is the whole calculation: /24 gives 256 addresses, /25 gives 128, /26 gives 64 and so on, halving each time.
Usable hosts, not total addresses
Every subnet reserves two addresses: the network address and the broadcast. A /24 has 256 addresses and 254 usable hosts. A /30 has 4 addresses and 2 usable — which is exactly what a point-to-point link needs.
A /31 is a special case defined for point-to-point links with 2 usable addresses and no broadcast, and /32 is a single host route.
| Prefix | Addresses | Usable hosts |
|---|---|---|
| /24 | 256 | 254 |
| /25 | 128 | 126 |
| /26 | 64 | 62 |
| /30 | 4 | 2 |
| /31 | 2 | 2 (point-to-point) |
Private ranges
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are reserved for private networks and never routed on the public internet. A host on 192.168.x.x that cannot reach anything is usually a gateway or DNS problem, not a routing one.
Good to know
- Works offline once loaded, including on flights and in locked-down networks.
- No file size limit beyond your device's own memory.
- Free to use, with no account and no usage counter.
- Results are produced locally, so they are not logged or shared with anyone.
Questions
Does this send anything to a server?
No — it runs entirely in your browser, so whatever you type stays on your device.
Can I use the output commercially?
Yes, output you generate is yours to use without attribution.
Why 254 and not 256 usable?
Because the first and last addresses are reserved for the network and broadcast.
Does it support IPv6?
Not in this version.
Network and connection tools
Keep going
More web tools
Chmod Calculator
Build octal and symbolic Unix permissions from checkboxes. Read, write and execute map to 4, 2 and 1 — the reason 755 is so common.
Open toolSpeed Test
Measure your real download and upload speed and latency in the browser, with the numbers in Mbps and MB/s. No app, no account.
Open toolWhat Is My IP
See the public IP address the internet sees, plus your timezone, language, screen size and other details your browser exposes.
Open toolhtaccess Redirect Generator
Turn a list of old and new URLs into Apache RewriteRule lines with 301 or 302 status.
Open toolURL Parser
Break any URL into protocol, host, path, query parameters and hash, using the browser parser.
Open toolhtaccess to Nginx
Translate Apache RewriteRule lines into Nginx rewrite directives. Handles common 301 and 302 patterns; anything unusual is commented out.
Open tool