π» CIDR Subnet Calculator β IPv4 Network, Hosts and Mask
Enter an IPv4 address and a prefix length from 0 to 32. The calculator shows the network, broadcast, usable range, subnet mask, wildcard mask, and host count.
What this tool does
This free online tool runs entirely inside your web browser so your data never leaves your device. It was designed for people who need a fast, private way to perform a common calculation or text transformation without installing software or creating an account.
Simply enter the values or paste the text into the clearly labelled fields and press the action button. The result appears instantly below. You can copy it with one click and continue with your work. Because everything happens locally, the tool works even when you are offline after the page has loaded.
The formulas and logic follow widely accepted standards. Where rounding is applied it is done for readability while the internal calculation keeps full precision. You can experiment with different inputs to see how the output changes, which makes the tool useful both for everyday tasks and for learning.
No personal information is requested and no history is stored on any server. When you close the tab the data disappears. This approach keeps the site lightweight, fast and respectful of your privacy.
When to use it
- Perform the calculation or conversion quickly while working on another task.
- Double-check figures that came from a spreadsheet or another website.
- Learn the relationship between the inputs and the output by trying different values.
- Use the tool on a phone or tablet when you do not have a desktop application available.
How it works
- Enter any IPv4 address and the CIDR prefix length from 0 to 32.
- Press Calculate subnet to mask the address and derive the network and broadcast.
- Read the usable host range, subnet mask, wildcard mask, and total host count.
Worked example
Consider a realistic everyday situation. You have a set of numbers or a paragraph of text that needs processing. You type or paste the input exactly as you have it. After clicking the primary button the tool applies its transformation or formula and shows the complete result together with any intermediate values that help you understand the answer. You can then adjust one input and watch the output update, confirming that the logic matches what you expect. The whole process takes only a few seconds and requires no extra software.
- 192.168.1.25/24 is network 192.168.1.0, broadcast 192.168.1.255, mask 255.255.255.0.
- 10.0.0.15/30 is network 10.0.0.12, broadcast 10.0.0.15, usable hosts 10.0.0.13 and 10.0.0.14.
- A /32 is a single host address with no separate network and broadcast split.
Accuracy and limitations
- The tool implements the most common version of the formula; specialised edge cases may need a different approach.
- Extremely large or tiny numbers can lose precision in the displayed result.
- The page does not remember previous calculations after you refresh or close the tab.
- Only the units or options shown in the interface are supported.
Privacy and data handling
Every number and every character you type stays inside your browser. Nothing is uploaded, logged or stored on ToolNova servers.
Frequently asked questions
Which IP version does this support?
IPv4 only. Each octet must be an integer from 0 to 255, and the prefix must be an integer from 0 to 32.
Why can the usable host count be zero?
For /31 and /32 there is no traditional network-plus-broadcast pair with spare hosts. /31 is often used as a point-to-point link, and /32 is a single address.
Is the address looked up online?
No. The mask math runs in your browser. The tool does not check who owns the address.
Related tools
More Developer tools βJSON Formatter
Pretty-print or minify JSON and catch syntax errors β free, private, no upload.
JSON Diff Checker
Compare two JSON documents and highlight added, removed and changed keys. Free and private.
JSON to TypeScript
Turn JSON samples into TypeScript interfaces in one click.
Regex Tester
Test regular expressions with live matching and capture group details.