☀ LIGHT ~/subnet-calculator
apps terminal
Network Engineering Tool
███████╗ ██╗ ██╗ ██████╗ ███╗ ██╗ ███████╗ ████████╗ ██╔════╝ ██║ ██║ ██╔══██╗ ████╗ ██║ ██╔════╝ ╚══██╔══╝ ███████╗ ██║ ██║ ██████╔╝ ██╔██╗ ██║ █████╗ ██║ ╚════██║ ██║ ██║ ██╔══██╗ ██║╚██╗██║ ██╔══╝ ██║ ███████║ ╚██████╔╝ ██║ ██║ ██║ ╚████║ ███████╗ ██║ ╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚══════╝ ╚═╝

// Subnet Calculator & Network Planner_

IPv4 & IPv6 subnet calculator, CIDR notation, wildcard masks, VLSM planner, and full cheat sheet — instant results, 100% in your browser

/

VLSM (Variable Length Subnet Masking) divides a network into subnets of different sizes. Enter a network and add subnets with their required host counts — the planner allocates the most efficient CIDR blocks automatically.

/
Subnets Required

Complete IPv4 CIDR cheat sheet — all 33 prefix lengths from /0 to /32 with subnet masks, wildcard masks, total addresses, and usable hosts.

IPv6 Subnet Calculator — enter an IPv6 address with prefix length to see the full network range, total addresses, and expanded notation.

/
FAQ — Free Subnet Calculator: IPv4/IPv6 CIDR, VLSM & Network Planning

Frequently Asked Questions — Subnet Calculator

What is a subnet calculator?

A subnet calculator computes network details from an IP address and CIDR prefix or subnet mask. It calculates the network address, broadcast address, subnet mask, wildcard mask, usable host range, and total number of hosts in the subnet. This tool does all calculations instantly in your browser.

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation represents an IP address and its routing prefix. For example, 192.168.1.0/24 means the first 24 bits are the network portion, leaving 8 bits (256 addresses) for hosts. CIDR replaced the old classful addressing system (Class A/B/C) in 1993.

How do I calculate a subnet mask from CIDR?

Convert the CIDR prefix to binary: set the first N bits to 1 and the rest to 0. For /24: 11111111.11111111.11111111.00000000 = 255.255.255.0. For /20: 11111111.11111111.11110000.00000000 = 255.255.240.0. This calculator does the conversion instantly.

What is a wildcard mask?

A wildcard mask is the inverse of a subnet mask — it flips all bits. For subnet mask 255.255.255.0, the wildcard is 0.0.0.255. Wildcard masks are used in Cisco ACLs, OSPF area definitions, and other network device configurations where you need to specify which bits to match.

What is VLSM and why should I use it?

VLSM (Variable Length Subnet Masking) allows dividing a network into subnets of different sizes. Instead of wasting addresses with one fixed subnet size, VLSM allocates exactly the right number of addresses each subnet needs — saving IP space and making network planning more efficient.

How many usable hosts are in a /24 subnet?

A /24 subnet has 256 total addresses (2^8). Subtract 2 for the network address and broadcast address, giving 254 usable host addresses. The formula is: usable hosts = 2^(32 - prefix) - 2. For /24: 2^8 - 2 = 254.

What is the difference between network and broadcast address?

The network address is the first address in a subnet (all host bits = 0) and identifies the network itself. The broadcast address is the last address (all host bits = 1) and is used to send data to all hosts. Neither can be assigned to a device.

Does this calculator support IPv6?

Yes. Switch to the IPv6 tab and enter any IPv6 address with a prefix length (e.g. 2001:db8::/32). The calculator shows the expanded address, network prefix, total addresses, and full address range.

What are private IP address ranges?

RFC 1918 defines three private ranges: 10.0.0.0/8 (Class A — 16M addresses), 172.16.0.0/12 (Class B — 1M addresses), and 192.168.0.0/16 (Class C — 65K addresses). These are not routed on the public internet and are used for internal networks.

Is this subnet calculator free to use?

Yes, completely free with no limits, no signup, and no ads. All calculations run 100% in your browser — no data is sent to any server. It is one of 48 free tools at jasperbernaers.com.

Free Online Subnet Calculator — IPv4/IPv6 CIDR, VLSM & Network Planning

This free subnet calculator instantly computes all subnet details from any IPv4 or IPv6 address with CIDR prefix. Whether you're a network engineer, sysadmin, CCNA student, or cloud architect, get instant answers for subnet masks, wildcard masks, network and broadcast addresses, usable host ranges, and binary breakdowns.

Subnet Calculator Features

Who Uses a Subnet Calculator?

Network engineers, system administrators, DevOps teams, cloud architects, CCNA/CCNP students, and anyone working with IP addressing and subnetting. Common use cases include planning office networks, configuring VPCs in AWS/Azure/GCP, setting up VLANs, writing firewall rules, and studying for Cisco certifications.