---
title: "CIDR Subnet Calculator: Mask, Range and Hosts | VulCode"
description: "CIDR notation writes an IPv4 network as an address and mask, like 192.168.1.0/24. Get the range, broadcast, wildcard mask, host count and subnets. Free."
url: "https://vulcode.com/en/tools/cidr-subnet-calculator"
lang: "en"
---

[Home](https://vulcode.com/en) [Resources](https://vulcode.com/en/resources) [Tools](https://vulcode.com/en/tools)

# CIDR subnet calculator

CIDR notation writes an IPv4 network as an address and mask, like 192.168.1.0/24. Get the range, broadcast, wildcard mask, host count and subnets. Free.

[Free quote](https://vulcode.com/en/quote) [Full pricing](https://vulcode.com/en/services/pricing)

Address with a mask (IPv4)

Enter an IPv4 address with a mask, such as 10.0.0.0/8 or 192.168.1.10 255.255.255.0.

Is an address inside?

This is not a valid IPv4 address.

Split into subnets

Enter an IPv4 address with a mask, such as 10.0.0.0/8 or 192.168.1.10 255.255.255.0.

## Network

Copy

- Addresses
  Copy

- Usable hosts
  Copy

- Network address
  Copy

- Broadcast
  Copy

- Mask
  Copy

- Wildcard mask
  Copy

- Host range
  Copy

## Bits

- **Address**: 
- **Mask**: 
- **Network**: 

## Split into subnets

Copy the list

```

```

## How to use it in three steps

Step by step, with this page's example.

- Enter an address with a mask, such as 192.168.1.0/24.

- Read the range, broadcast and host count.

- Split the network into smaller subnets if needed.

What you enter

192.168.1.0/24

What you get

```
Mask 255.255.255.0
Host range 192.168.1.1 - 192.168.1.254 (254)
Broadcast 192.168.1.255
```

## Questions

- **What is CIDR?**: It is a way of writing an IP network as an address plus the number of mask bits, for example 192.168.1.0/24, where /24 means the mask 255.255.255.0. The tool works out the range, broadcast, host count and subnets from it.
- **How many hosts do a /24, /16 and /8 network have?**: A /24 has 254 usable addresses, a /16 has 65,534 and a /8 has 16,777,214. The network address and the broadcast are subtracted from the total. The exceptions are /31 (point-to-point link, 2 addresses) and /32 (a single address).
- **Why does /24 have 254 hosts, not 256?**: The first address is the network address and the last is the broadcast. That leaves 254 for devices.
- **What is a wildcard mask?**: It is the inverted subnet mask, for example 0.0.0.255 for /24. It is used in access lists and routing protocol rules, and the tool shows it for every network.
- **How does this help with a firewall?**: A rule for a whole subnet is one CIDR entry. The tool shows which addresses that entry covers.

## Related tools

The tool does one job. If the same thing should happen automatically in your bot, server or system, we build it.

- ### [chmod calculator](https://vulcode.com/en/tools/chmod-calculator)
  Click permissions or type 755, get the rwx notation and a chmod command.

- ### [Cron expression generator and explainer](https://vulcode.com/en/tools/cron-expression-generator)
  Turn a cron expression into a plain sentence and see the next run times.

- ### [Unix timestamp converter](https://vulcode.com/en/tools/unix-timestamp-converter)
  Timestamp to a date in any time zone and back, with ISO 8601 and SQL.

- ### [Integrations and automation](https://vulcode.com/en/services/api-integrations)
  When the same thing should happen automatically in your bot, server or system.

## Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.

[Free quote](https://vulcode.com/en/quote) [Free consultation](https://vulcode.com/en/consultation)

- [hello@vulcode.com](mailto:hello@vulcode.com)

- [+48 576 043 920](tel:+48576043920)

- [discord.gg/vulcode](https://discord.gg/vulcode)
