Skip to content

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

/0/8/16/24/32

Binary visualization

11000000101010000000000100000000
Network (24 bits)Host (8 bits)

Subnet details

192.168.1.0/24: 254 usable hosts

Network address192.168.1.0
Broadcast address192.168.1.255
First usable host192.168.1.1
Last usable host192.168.1.254
Usable hosts254
Subnet mask255.255.255.0
Subnet mask (binary)11111111.11111111.11111111.00000000
Wildcard mask0.0.0.255
IP classC
Address typePrivate

Subnet splitter

#NetworkCIDRUsable rangeHosts
1192.168.1.0/26192.168.1.1 - 192.168.1.6262
2192.168.1.64/26192.168.1.65 - 192.168.1.12662
3192.168.1.128/26192.168.1.129 - 192.168.1.19062
4192.168.1.192/26192.168.1.193 - 192.168.1.25462

Updated . Provided as is. Check the output before you rely on it in production.

How to use IP & Subnet Calculator

  1. 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. 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. 3

    Split the subnet

    Use the subnet splitter to divide the network into equal subnets, each with its own range and usable hosts.

  4. 4

    Check the binary view

    The binary visualization shows which bits belong to the network and which to hosts.

  5. 5

    Copy or download

    Copy the subnet details or download them for documentation.

Questions and answers

What is CIDR notation?
CIDR notation such as 192.168.1.0/24 writes an IPv4 address with its prefix length, the number of leading network bits. Enter an address and a prefix from /0 to /32 here to get the network and broadcast addresses, usable host range, subnet and wildcard masks, and equal-size splits.
How many hosts in a /24 subnet?
254 usable hosts. A /24 has 256 total addresses (2^8), minus the network address and broadcast address. The tool shows exact host counts for any prefix length.
Can I split a subnet into smaller subnets?
Yes, enter a network and specify how many subnets you need. The tool calculates equal sub-ranges, each with their own network address, broadcast address, and usable host range.
How do I know if an IP is private or public?
The tool auto-detects private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and clearly indicates whether each address is private or public with a visual badge.
Is this tool free and private?
Yes. Free to use. All subnet calculations happen in your browser. No data is sent to any server.

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

GET /api/subnet-calculator/ GET subnet-calculator
POST /api/subnet-calculator/ POST subnet-calculator