Subnet Calculator
Project Overview:
Subnetting is the math I reach for constantly — carving up networks in the home
lab, planning VLANs on OPNsense, and drilling for the CCNA. I built this
calculator so the tool I practice with is the one on my own site: enter any IPv4
address and a prefix length (CIDR notation like 192.168.1.10/24 works too) and
it returns the network and broadcast addresses, the first and last usable hosts,
the subnet and wildcard masks, the address class and type, and the binary form
of the address and mask.
Key Components:
Live calculation in React — network, broadcast, host range, masks, and binary, recomputed on every keystroke with no backend and no data leaving the browser
/31 and /32 handled correctly — point-to-point links per RFC 3021 and single-host addresses, not just the textbook total-minus-two
CIDR quick reference — common prefix sizes with their masks and usable host counts; tapping a row loads it into the calculator