# Subnet & CIDR Calculator

> Calculate network boundaries, IP address ranges, netmasks, and usable hosts for IPv4.

- Open in browser: https://pockettoolbox.org/en/subnet-calculator
- Runs entirely in your browser; files and input are never uploaded.

## How it works

Calculate IP subnets and visualize CIDR network masks.

Enter an IP address and a CIDR prefix (e.g. /24). The tool calculates network address, usable host addresses, broadcast address, and wildcard mask. A 32-bit grid visualizes the division into network and host bits.

Employs IPv4 bitwise arithmetic to calculate network address, broadcast address, wildcard mask, and host capacity based on CIDR prefix length.

## FAQ

### How many hosts does a /24 network have?

A /24 network has 256 addresses, 254 of which are usable for hosts, because the network and broadcast addresses are excluded.

### Does it support IPv6?

The calculator is built for IPv4 and shows netmask, address range, broadcast and the number of usable hosts.

---
PocketToolbox (https://pockettoolbox.org/en)
