Skip to content
AutomationHub
back to tool directory

Netmask Calculator

// paste an ip and a mask — or just the /prefix. the switch stays out of it

automationhub — ~/tools/netmask

Netmask & Subnet Calculator

Paste an IPv4 address and a subnet mask — or just the /prefix, the mask fills itself in. Network, broadcast, usable hosts and the inverse mask update live. Drop a second ip in to check if it fits the same subnet.

output — live result
192.168.10.20/24

host #20 of 254 in this subnet

network
192.168.10.0
broadcast
192.168.10.255
first usable
192.168.10.1
last usable
192.168.10.254
usable hosts
254
inverse mask
0.0.0.255

32-bit view — network | host

peer check — other device

// add an ip above to check if it fits this subnet

// subnetting: where "it's only 254 hosts" became a lifestyle

// common prefixes — the ones you'll actually use

prefix mask usable hosts typical
/24255.255.255.0254office line
/25255.255.255.128126half of a /24
/26255.255.255.19262small line
/27255.255.255.22430even smaller
/28255.255.255.24014camera closet
/29255.255.255.2486panel
/30255.255.255.2522point-to-point