Subnet calculator
Find the network, broadcast address, host range and mask for any IPv4 address and CIDR prefix.
A mask works too: 192.168.1.10 255.255.255.0
Network
Enter an address to see its network.
Missing a feature or found a bug in Subnet calculator? Tell me on X (@_andrewtran) or by email.
How to use Subnet calculator
- Type an address with its prefix, such as 192.168.1.10/24.
- Read the network, mask, broadcast and host range.
- Copy any value with its Copy button.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
Can I enter a mask and not a prefix?
Yes. Write the mask after the address, such as 10.0.0.1 255.255.240.0.
Why does a /31 have two usable hosts?
On a link between two routers both addresses are used, as RFC 3021 allows. A /32 is a single host.
Related tools
Chmod calculator
Work out Unix file permissions with checkboxes, and convert between octal 755 and rwxr-xr-x.SemVer calculator
Parse a semantic version, compare two versions, check a range and see the next releases.Contrast checker
Check the WCAG 2 contrast ratio of a text colour on a background, with AA and AAA results.px to rem converter
Convert pixels to rem and rem to pixels for any root font size, a whole list at a time.