- Executors
-
Learn
Python Learning Hub Runnable examples, NumPy, pandas, and more C & C++ Learning Hub Pointers, memory, STL, and modern C++ C# Learning HubC# basics, OOP, LINQ, async, and .NET exercises Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++
- Challenges
Utilities
IPv4 Subnet Calculator
Enter an IP address with a prefix or mask to get the network, broadcast, host range and more.
- Runs in your browser
- Instant results
- Free, no sign-up
Loading the tool…
How to use the Subnet Calculator
- Enter an address like 192.168.1.10/24, or an address and subnet mask.
- Read the network details and the binary view.
- Pick a longer prefix to split the network into smaller subnets.
Frequently asked questions
How many hosts does a /24 have?
256 addresses, of which 254 are usable. The network and broadcast addresses cannot be assigned to hosts.
What is a wildcard mask?
The inverse of the subnet mask, used in Cisco ACLs and OSPF. For 255.255.255.0 it is 0.0.0.255.
What about /31 and /32?
A /31 has two usable addresses for point-to-point links, and a /32 is a single host.
Practice Python with coding challenges
Solve hands-on problems right in this editor: run the sample tests, submit, and get an AI code review.