Skip to main content
1

IPv4 Subnet Calculator

Enter an IP address with CIDR prefix to instantly calculate subnet details including network address, broadcast, usable range, subnet mask, and binary representations.

import CopyButton from "./_CopyButton.astro"
PropertyDecimalBinary
Send output to:
Advertisement

How to use IPv4 Subnet Calculator

  1. Enter an IP address with CIDR prefix in the input field (e.g. 192.168.1.0/24).
  2. View the computed results in the table showing network, broadcast, mask, hosts, and binary values.
  3. Copy the results to your clipboard with the copy button.

What is IPv4 Subnet Calculator?

An IPv4 subnet calculator takes an IP address and CIDR prefix (like 192.168.1.0/24) and computes the network address, broadcast address, usable host range, subnet mask, wildcard mask, and total available hosts. It uses bitwise operations on the 32-bit integer representation of the IP to split the network and host portions.

This tool runs entirely in your browser — nothing is uploaded. It's useful for network engineers planning subnets, sysadmins configuring DHCP scopes, and developers working with IP ranges.

Advertisement

FAQ

What is CIDR notation?
CIDR (Classless Inter-Domain Routing) notation combines an IP address with a prefix length, written as IP/prefix (e.g. 192.168.1.0/24). The prefix number indicates how many bits are used for the network portion.
What is a subnet mask?
A subnet mask is a 32-bit number that separates the IP address into network and host portions. For example, /24 corresponds to the subnet mask 255.255.255.0.
How many usable hosts are in a /24 subnet?
A /24 subnet has 2^(32-24) - 2 = 254 usable host addresses. Two addresses are reserved: the network address and the broadcast address.
Is my IP address uploaded or stored?
No. All calculations happen in your browser. Nothing is ever sent to any server.
Advertisement