Subnet Calculator (IPv4 CIDR, Mask Conversion, IP Containment, Subnet Split)

A practical online subnet calculator for network engineers, developers, and cloud teams. It supports IPv4 CIDR calculation, subnet-mask and prefix conversion, IP-in-subnet checks, and subnet splitting for planning, troubleshooting, and network change review.

  • CIDR subnet calculation: network, broadcast, host range, and address capacity
  • Mask conversion: prefix notation like /24 and dotted mask conversion
  • IP containment check: verify whether an IPv4 belongs to a target subnet
  • Subnet split: generate child subnet ranges by target prefix
  • Binary output for bit-level subnet understanding and validation

Subnet Calculator

Calculate IPv4 subnet masks, network addresses, broadcast addresses, usable host ranges, and address counts from an IP and CIDR prefix.

Subnet Calculator
Subnet calculate
Subnet calculate

Basic info

3 items
Input IP
192.168.1.10
CIDR
/24
Address type
Private range: 192.168.0.0/16

Address range

6 items
Network address
192.168.1.0
Broadcast address
192.168.1.255
First usable host
192.168.1.1
Last usable host
192.168.1.254
Total addresses
256
Usable hosts
254

Mask info

2 items
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255

Binary

3 items
IP
11000000.10101000.00000001.00001010
Network address
11000000.10101000.00000001.00000000
Subnet mask
11111111.11111111.11111111.00000000
Command
Mode
Common prefixes

Core capabilities

Covers high-frequency IPv4 subnet tasks in one focused workflow.

  • CIDR subnet math

    Compute network, broadcast, host ranges, and address counts from IPv4/CIDR input.

  • Mask and prefix conversion

    Convert between /xx prefixes and dotted decimal subnet masks quickly.

  • IP containment check

    Validate whether a target IP is inside a given subnet for policy and routing checks.

  • Subnet split planning

    Split source subnets into child subnets by target prefix with range listings.

How to use

Choose a mode based on your network task and copy the structured output.

  1. 1

    Select a mode: Subnet calculate, Mask convert, IP containment, or Subnet split.

  2. 2

    Enter IPv4 CIDR, mask, prefix, or target IP in the input panel.

  3. 3

    Review network range, mask details, and validation output on the right.

  4. 4

    Copy the output into tickets, change logs, or deployment runbooks.

  5. 5

    For production planning, validate with staged rollout before full deployment.

Key features

Designed for practical subnet planning and troubleshooting workflows.

  • Online IPv4 subnet calculator with CIDR and subnet mask support
  • Network address, broadcast address, and usable host calculations
  • Binary mask and address view for bit-level verification
  • IP-in-subnet validation for ACL and allowlist reviews
  • Subnet split by target prefix for VPC and LAN planning
  • Copy-ready structured output for repeatable engineering communication

Common use cases

Useful when address planning, access control, and service exposure need the same source of truth.

When subnet math is part of a firewall or service-exposure review, pair the address range with Port Reference to check the expected TCP/UDP services. If an incident report contains an endpoint URL with an IP host, inspect the URL first with URL Tools before deciding whether the source or destination belongs to the intended CIDR range.

  • Cloud VPC planning

    Design subnet boundaries and avoid overlap before provisioning cloud resources.

  • Enterprise network segmentation

    Plan office/datacenter subnet boundaries with clear host-capacity estimates.

  • Firewall and ACL validation

    Check whether source or destination IPs match expected subnet rules.

  • Whitelist verification

    Confirm third-party callback IPs are within approved CIDR ranges.

  • Training and onboarding

    Explain CIDR, masks, and host math using binary output and concrete ranges.

  • Change rehearsal

    Simulate subnet splits before network changes in production environments.

Best practices

Use calculation output with operational controls for safer rollouts.

  • Define the full address pool first, then split into subnets deliberately.
  • Document gateway, reserved addresses, and DHCP pools consistently.
  • Treat /31 and /32 as edge cases and validate host usability explicitly.
  • Apply phased changes with observability and rollback plans.
  • Standardize CIDR notation style across teams to reduce ambiguity.
  • Include subnet calculation output in pre-change review checklists.

Limits and cautions

This tool solves IPv4 subnet math quickly, but does not replace full network simulation or policy validation.

  • Device vendors may differ in handling edge subnet semantics.
  • Inter-subnet connectivity still depends on routing, NAT, and firewall policy.
  • Invalid IPv4/CIDR input will produce validation errors by design.
  • Large-scale address migrations should be staged and monitored.
  • Correct subnet math does not guarantee end-to-end service reachability.

Frequently asked questions

Answers to common questions about usage, data handling, result checks, and practical limits.

01

What does CIDR /24 mean?

It means 24 network bits and 8 host bits, equivalent to mask 255.255.255.0.

02

How many usable hosts are in /24?

256 total addresses with 254 typical usable hosts (excluding network and broadcast).

03

Why are /31 and /32 different?

/31 is often used for point-to-point links, while /32 represents a single-host route.

04

What is wildcard mask?

It is the bitwise inverse of subnet mask and is commonly used in ACL matching.

05

Why does IP containment fail sometimes?

Usually due to incorrect CIDR/prefix input or mismatch between expected and actual subnet.

06

Why does subnet split require a larger prefix value?

Splitting means creating smaller subnets, which requires a longer prefix length.

07

Why is subnet list limited to 1024 entries?

To keep output readable and avoid excessive UI rendering for oversized splits.

08

Does this support IPv6?

Current implementation focuses on IPv4 subnet workflows.

09

Can this replace router configuration checks?

No. It is a calculation and validation aid, not a replacement for full network testing.

10

Can I copy output directly into documentation?

Yes. Output is structured for tickets, change records, and planning docs.

11

Why include binary view?

Binary view helps verify network/host bit boundaries and understand mask behavior.

12

Is this suitable for cloud subnet planning?

Yes, especially for prefix sizing, overlap checks, and pre-deployment subnet design.

Continue with more network tools

Use URL Tools, User-Agent Parser, and Port Reference for adjacent network troubleshooting workflows.