Skip to main content

IPv4 / IPv6 Subnet Calculator

Calculate IPv4 or IPv6 CIDR network bounds and exact address counts locally, with no live lookup. IPv6 has no broadcast or conventional usable-host count; input is limited to 64 characters.

Enter one IPv4 address in dotted-decimal or one IPv6 address in hexadecimal groups with optional ::, followed by /0–/32 or /0–/128. Subnet masks, brackets, embedded IPv4, and IPv6 zone IDs are not accepted. Limit: 64 UTF-16 code units. Calculations stay in this page; no lookups, uploads, or saved input.

Subnet details

Network address
192.168.1.0/24
First address
192.168.1.0
Last address
192.168.1.255
Broadcast address
192.168.1.255
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Usable host range
192.168.1.1 – 192.168.1.254
Usable host count
254
Total addresses
256

For IPv4 /1–/30, the conventional usable-host count excludes the network and broadcast addresses.

Was this tool helpful?