breadlab-01 · free tool IPv4 & IPv6 · runs in your browser
Networking tool

Subnet calculator

Type an IPv4 or IPv6 address and a prefix — get the network and broadcast addresses, the usable host range, the mask, and a bit-by-bit breakdown of where the network ends and the hosts begin. It detects v4 vs v6 automatically. Nothing is sent anywhere; the math runs in your browser.

Network private
Network
Broadcast
First host
Last host
Details
Usable hosts
Total addresses
Netmask
Wildcard
Class
Binary — where the network ends and hosts begin
network bits () host bits ()
click any address to copy it

How to read this

The prefix (the /24) says how many of the 32 bits are fixed as the network. The rest are free for hosts — so a /24 leaves 8 host bits, which is 256 addresses, minus the network and broadcast addresses, leaving 254 usable.

The network address (all host bits 0) names the subnet; the broadcast (all host bits 1) reaches everyone on it. Neither is assignable to a device — that's why usable hosts is always two fewer than total. (A /31 and /32 are special cases for point-to-point links and single hosts.)

IPv6 is different: there's no broadcast address and no netmask notation — a subnet is just a prefix over a 128-bit address, and every address in it is usable. The standard subnet size is a /64 (that's 2⁶⁴ addresses — more than the entire IPv4 internet, per subnet), homes often get a /56 or /48, so this also shows how many /64s a larger block contains.

New to this? Our networking basics writeup walks through subnets from scratch, grounded in a real homelab network.

Built in BreadLab

A free tool from a real homelab in Spartanburg, SC — we also write plain-language networking docs and host game servers.