ToolsKit

CIDR Subnet Calculator

Calculate IPv4 network, broadcast and host range from CIDR.

Enter an IPv4 address with a prefix length to see netmask, network and broadcast addresses, usable host range and host count.

Loading the interactive tool… This page needs JavaScript to run the CIDR Subnet Calculator.

How to use CIDR Subnet Calculator

  1. Paste the data, code, token, or value you need to inspect.
  2. Set any format, encoding, or validation options.
  3. Run the tool and inspect the result or diagnostic output.
  4. Copy the output into your terminal, editor, API client, or project.

How CIDR Subnet Calculator works

Enter an IPv4 address in CIDR notation such as 192.168.1.0/24. The tool computes the network and broadcast addresses, subnet and wildcard masks, first and last usable host, total addresses, usable hosts and whether the address is in an RFC 1918 private range. /31 and /32 are handled specially. IPv6 is not supported.

Worked example

Input: 10.0.0.0/30 → Output: network 10.0.0.0, broadcast 10.0.0.3, mask 255.255.255.252, usable hosts 10.0.0.1 to 10.0.0.2, 4 total addresses and 2 usable.

Common uses

  • Plan how many hosts fit in a subnet before assigning it to a VPC.
  • Find the broadcast address of a network for firewall rules.
  • Check whether a range is private while studying for a networking exam.

Best for

  • network design
  • cloud VPC planning
  • certification study

Tips for better results

  • Remember that cloud providers often reserve extra addresses.
  • Validate the output before using it in production code.
  • Treat tokens, credentials, and secrets as sensitive even when processing happens locally.
  • For large payloads, keep an original copy so you can compare changes.

Frequently asked questions

What does /24 mean?

The first 24 bits are the network portion, giving 256 addresses and 254 usable hosts.

Does it support IPv6?

Not yet, this tool covers IPv4.

Is my data sent to a server?

No. This tool runs in your browser, so what you enter stays on your device.

Related tools

Explore tool categories