# Subnet Calculator

> IPv4 and IPv6 CIDR calculator: network, broadcast, host range, mask and subnet splits. Runs entirely in your browser, so nothing is uploaded.

Source: https://toffeekit.com/tools/subnet-calculator

**Category:** [Developer](https://toffeekit.com/category/developer) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/subnet-calculator

**Also useful for:** subnet calculator, cidr calculator, ip calculator, ipv6 subnet calculator, subnet mask, netmask, ip range, vlsm, wildcard mask

## What you can do

- **Home network /24** — Hosts, mask and range for a typical 192.168.1.0/24 LAN. ([open with this preset](https://toffeekit.com/tools/subnet-calculator?preset=home))
- **Plan a cloud VPC** — Split 10.0.0.0/16 into /24 subnets for each zone. ([open with this preset](https://toffeekit.com/tools/subnet-calculator?preset=vpc))
- **Point-to-point link** — A /30 with two usable addresses, or a /31 per RFC 3021. ([open with this preset](https://toffeekit.com/tools/subnet-calculator?preset=p2p))
- **IPv6 /48 to /64s** — See how many /64 LANs fit in a site prefix. ([open with this preset](https://toffeekit.com/tools/subnet-calculator?preset=ipv6))

## How it works

1. Type an address with a prefix, such as 192.168.1.10/24, 10.0.0.1 255.255.240.0 or 2001:db8::/48.
2. Drag Prefix length or click a Common prefix to resize the network.
3. Read the subnet details, usable hosts and Binary view, and copy any value.
4. Use Subnet size under Split into subnets to list the smaller networks, then Copy list.

## FAQ

### How many usable hosts are in a /24?

254. A /24 has 256 addresses, minus the network address and the broadcast address. In general, usable hosts are 2^(32 − prefix) − 2.

### Why does a /31 have two usable addresses?

RFC 3021 lets point-to-point links use /31 networks with no network or broadcast address, so both addresses are usable. A /32 is a single host.

### What is a wildcard mask?

It is the subnet mask with every bit flipped, such as 0.0.0.255 for 255.255.255.0. Cisco ACLs and OSPF use wildcard masks.

### Which IP ranges are private?

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are private (RFC 1918). 100.64.0.0/10 is used for carrier-grade NAT, and fc00::/7 is the IPv6 unique local range.

### Why doesn't IPv6 have a broadcast address?

IPv6 replaced broadcast with multicast, so every address in a prefix can be assigned. Most LANs use a /64, and a /48 holds 65,536 of them.

### Is Subnet Calculator free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

Subnet Calculator runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [JSON Formatter](https://toffeekit.com/tools/json-formatter) — Format, minify and validate JSON with clear errors.
- [Base64 Encode / Decode](https://toffeekit.com/tools/base64-encoder) — Encode text to Base64 or decode it back, UTF-8 safe.
- [URL Encode / Decode](https://toffeekit.com/tools/url-encoder) — Percent-encode query values or whole URLs.
- [HTML Entities](https://toffeekit.com/tools/html-entity-encoder) — Escape < > & and quotes, or decode entities.
- [JWT Decoder](https://toffeekit.com/tools/jwt-decoder) — Read a token's header, claims and expiry.
- [Hash Generator](https://toffeekit.com/tools/hash-generator) — MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at once.

