Skip to main content

IPv4 Subnet Calculator

Calculate network address, broadcast address, usable host range, subnet mask, wildcard mask, and host count from any IPv4 CIDR block.

Inputs

Enter any valid IPv4 address

Subnet Details

Results will appear here.

Subnet calculation is a daily task for network engineers designing address plans, cloud architects partitioning VPC address space, and sysadmins configuring static IP assignments. Getting the network address, broadcast address, and usable host range right is critical β€” an off-by-one error can route traffic to the wrong host or leave an address range unreachable.

This tool takes any IPv4 address and CIDR prefix (or subnet mask) and instantly computes every derived value: network address, broadcast address, first and last usable host, subnet mask, wildcard mask, and total host count. It supports all prefix lengths from /0 to /32, including point-to-point /30 and /31 links.

How the IPv4 Subnet Calculator Works

  1. 1

    Enter a CIDR block or subnet mask

    Input an IPv4 address with a CIDR prefix (e.g., 192.0.2.0/24) or an address and dotted-decimal subnet mask (e.g., 192.0.2.0 / 255.255.255.0).

  2. 2

    The calculator performs binary arithmetic

    The tool converts your input to binary, performs bitwise operations, and calculates the network address, broadcast address, usable host range, subnet mask, wildcard mask, and total host count.

  3. 3

    Review and use the results

    All calculated values are displayed in multiple formats (decimal, binary, hex). Copy individual values or export the full subnet data for your network configuration.

How IPv4 Subnet Calculation Works

An IPv4 address is a 32-bit integer. The prefix length defines a bitmask where the top N bits are 1 and the remaining bits are 0. The network address is the bitwise AND of the host address and the mask; the broadcast address is the bitwise OR of the network address and the inverted mask (wildcard mask). Usable hosts are all addresses strictly between these two values.

For /31 networks (RFC 3021), used on point-to-point links, there is no traditional network or broadcast address β€” both addresses are usable. For /32, the address represents a single host with no range. These edge cases are important to handle correctly in routing and firewall configurations.

Why Use FileCrank IPv4 Subnet Calculator

  • βœ“ Calculates network address, broadcast address, first and last usable host, subnet mask (decimal and binary), wildcard mask, and host count
  • βœ“ Accepts input in CIDR notation (/24) or traditional dotted-decimal subnet masks
  • βœ“ Displays results in multiple formats: decimal, binary, and hexadecimal
  • βœ“ Runs entirely in your browser using standard binary arithmetic β€” no IP data is transmitted
  • βœ“ Ideal for network planning, CCNA exam prep, and infrastructure configuration

Features & Specs

Max File Size
Up to 100 MB
Privacy
Files deleted after about an hour
Price
Free, no signup
Processing
Server-side
Processing
100% client-side
Supported input
CIDR notation or subnet mask
Output formats
Decimal, binary, hexadecimal
Cost
Free β€” no limits
Runs entirely in your browser β€” no data is sent to any server.No registration required.Free β€” no hidden fees.

Frequently Asked Questions

How do I use the IPv4 Subnet Calculator?

Enter an IPv4 address and either a CIDR prefix (e.g., /24) or a dotted-decimal subnet mask (e.g., 255.255.255.0). The tool instantly calculates all subnet values.

What is a subnet mask?

A subnet mask is a 32-bit value that divides an IPv4 address into a network portion and a host portion. For example, 255.255.255.0 means the first 24 bits are the network and the last 8 bits are for hosts.

How is the broadcast address calculated?

The broadcast address is calculated by setting all host bits (the bits after the network portion) to 1. For a /24 network ending in .0, the broadcast address ends in .255.

How many usable hosts are in a /24 subnet?

A /24 subnet has 256 total addresses. Subtracting the network and broadcast addresses leaves 254 usable host addresses.

Does any IP data I enter leave my browser?

No. All subnet calculations run entirely client-side. Your IP addresses and network data never leave your device or contact any server.

What is a wildcard mask?

A wildcard mask is the inverse of a subnet mask. It is used in access control lists (ACLs) and routing to specify which address bits must match. 0 = must match, 1 = can vary. For a subnet mask 255.255.255.0, the wildcard is 0.0.0.255.

Is this calculator useful for CCNA exam preparation?

Yes. Subnet calculation is a core CCNA skill. This tool helps you learn the math, verify your calculations, and understand network addressing in depth.

IPv4 Subnet Calculator vs. ipcalc

ipcalc is the classic command-line reference but requires shell access and produces plain-text output that must be parsed manually. This tool delivers the same calculations in a structured, copy-friendly web interface with clearly labelled fields β€” ideal when working in documentation, a ticketing system, or a browser-based cloud console where a terminal is not available.

FileCrank IPv4 Subnet Calculator computes the network address, broadcast address, first and last usable host IP, subnet mask (dotted-decimal and binary), wildcard mask, and total host count from any IPv4 CIDR block. All calculations run entirely client-side using standard binary arithmetic β€” no IP address data is transmitted. Free to use with no account required. Also searchable as: subnet calculator, CIDR calculator, network address calculator, broadcast address calculator, IPv4 subnetting tool, host count calculator.

Advertisement

Ad