# IP Subnet Calculator - CIDR, Netmask & Usable Hosts Online

> Free online IPv4 subnet calculator: enter 192.168.1.10/24 for the network, broadcast, host range and count, wildcard mask, binary view and a prefix table.

- URL: https://qilingtools.com/en/cidr
- Category: Developer Tools (https://qilingtools.com/en/dev)
- Tags: [Developer](https://qilingtools.com/en/tags/dev), [Network & HTTP](https://qilingtools.com/en/tags/network), [DevOps](https://qilingtools.com/en/tags/devops)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Planning internal networks, firewall rules, cloud security groups or router ACLs means working out exactly which addresses a CIDR block covers. Enter IP/prefix (like 10.0.8.20/22) or "IP netmask" and the tool instantly shows the network and broadcast addresses, the first and last usable hosts, usable and total address counts, the subnet and wildcard masks, the address class (A–E) and whether the address is private, public, loopback, link-local or carrier-grade NAT. A binary view colors network and host bits, and a /0–/32 reference table lets you look up masks and switch prefixes with one click.

## How to use

1. Enter an IP and prefix (e.g. 192.168.1.10/24) or "IP netmask"
2. Read the network, broadcast, usable range and host counts
3. Switch prefix length via the dropdown or table to compare subnet sizes

## Features

- Accepts CIDR prefixes or dotted netmasks
- Network, broadcast, first/last host and host counts
- Subnet mask and wildcard (inverse) mask
- Binary view with network/host bits highlighted
- Class A–E and private/public/loopback/CGNAT detection
- Correct /31 point-to-point and /32 single-host handling
- Clickable /0–/32 prefix reference table
- Calculated locally, no upload

## FAQ

### Why subtract 2 from the host count?

The first address of a subnet is the network address and the last is the broadcast address, and neither can be assigned to a host, so usable hosts are 2^(32-prefix) - 2. Exceptions are /31 (point-to-point links, both usable per RFC 3021) and /32 (a single host).

### What is a wildcard mask?

It is the bitwise inverse of the subnet mask (255.255.255.0 becomes 0.0.0.255), used in Cisco ACLs and OSPF where 0 bits must match and 1 bits are ignored.

### Which addresses are private?

RFC 1918 private ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. 100.64.0.0/10 is carrier-grade NAT shared space, 127.0.0.0/8 is loopback and 169.254.0.0/16 is link-local.

### Is my data uploaded?

No. Everything runs locally in your browser with no network upload and is discarded when you close the page, so it is safe for internal or sensitive data.

## Related tools

- [JSON Formatter](https://qilingtools.com/en/json): Free online JSON formatter: beautify or minify, validate with the exact line and column of any error, browse a collapsible tree, sort keys and escape strings.
- [Base64 Encode/Decode](https://qilingtools.com/en/base64): Free online Base64 encoder and decoder: UTF-8 safe, optional URL-safe variant, convert text to Base64 and back in real time. Processed locally, never uploaded.
- [URL Encode/Decode](https://qilingtools.com/en/url-encode): Free online URL encoder and decoder with encodeURIComponent and encodeURI modes. Escapes Chinese, spaces and special characters. Real-time and local, no upload.
- [JWT Decoder](https://qilingtools.com/en/jwt): Free online JWT decoder: decode the header and payload of a JSON Web Token, show expiry and issued-at times, all locally without uploading the token.
- [Timestamp Converter](https://qilingtools.com/en/timestamp): Free online Unix timestamp converter: convert timestamps and dates, auto-detect seconds or milliseconds, and show local, UTC, ISO 8601 and relative time.
- [Hash / Checksum](https://qilingtools.com/en/hash): Free online hash calculator: SHA-1, SHA-256, SHA-384 and SHA-512 of text or any file through the browser crypto API. Files never leave your device.
- [UUID Generator](https://qilingtools.com/en/uuid): Free online UUID generator: create RFC 4122 UUID v4 in bulk with a cryptographic RNG. Options for uppercase, no hyphens and braces, with one-click copy.
- [Base Converter](https://qilingtools.com/en/base-convert): Free online number base converter: convert between binary, octal, decimal, hexadecimal and any base 2–36. Uses BigInt for huge integers, computed locally.
