IP & Subnet Calculator
Calculate IPv4 subnets, CIDR ranges, network addresses, and host counts with a visual binary breakdown
IP & Subnet Calculator
IP address and CIDR
Binary visualization
Subnet details
192.168.1.0/24: 254 usable hosts
Subnet splitter
| # | Network | CIDR | Usable range | Hosts |
|---|---|---|---|---|
| 1 | 192.168.1.0 | /26 | 192.168.1.1 - 192.168.1.62 | 62 |
| 2 | 192.168.1.64 | /26 | 192.168.1.65 - 192.168.1.126 | 62 |
| 3 | 192.168.1.128 | /26 | 192.168.1.129 - 192.168.1.190 | 62 |
| 4 | 192.168.1.192 | /26 | 192.168.1.193 - 192.168.1.254 | 62 |
Updated . Provided as is. Check the output before you rely on it in production.
How to use IP & Subnet Calculator
- 1
Enter an IPv4 address and prefix
Type an address such as 192.168.1.0 and a CIDR prefix from 0 to 32.
- 2
Read the subnet details
See the network address, broadcast address, usable host range, subnet mask, host count and whether the address is public or private.
- 3
Split the subnet
Use the subnet splitter to divide the network into equal subnets, each with its own range and usable hosts.
- 4
Check the binary view
The binary visualization shows which bits belong to the network and which to hosts.
- 5
Copy or download
Copy the subnet details or download them for documentation.
Questions and answers
What is CIDR notation?
How many hosts in a /24 subnet?
Can I split a subnet into smaller subnets?
How do I know if an IP is private or public?
Is this tool free and private?
Use it as an API
IP & Subnet Calculator is also callable as a free HTTP JSON API at
https://aidevhub.io/api/subnet-calculator/ — GET with query
parameters or POST with a JSON body, no authentication, CORS enabled, fair use
(abusive traffic is throttled at the edge; there is no per-request quota header). Responses return
{ ok, tool, result, meta }.
curl -s "https://aidevhub.io/api/subnet-calculator/?ip=192.168.1.0&cidr=24"
Machine-readable contract: /api/tool/subnet-calculator.json All API endpoints: /agents/ LLM site index: /llms.txt
For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
Best Path For Builders
Dedicated API endpoint
Deterministic outputs, machine-safe contracts, and production-ready examples.
Dedicated API
https://aidevhub.io/api/subnet-calculator/ OpenAPI: https://aidevhub.io/api/openapi.yaml