~/subnet-calculator ☀ LIGHT apps ← about me

🌐 Language

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 122 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. All calculations happen instantly in your browser — no data is sent to a server, no signup required.

Subnet Calculator Features

Common Subnet Reference — Most Searched CIDR Blocks

These are the subnets network engineers look up most often. Each row shows the subnet mask, wildcard mask, usable host count, and a typical use case:

CIDR Subnet Mask Wildcard Usable Hosts Typical Use
/8255.0.0.00.255.255.25516,777,214Class A networks (10.0.0.0/8)
/16255.255.0.00.0.255.25565,534Large campus / VPC supernets
/24255.255.255.00.0.0.255254Standard office / home LAN (192.168.1.0/24)
/25255.255.255.1280.0.0.127126Split /24 into two equal halves
/26255.255.255.1920.0.0.6362Small department / VLAN
/27255.255.255.2240.0.0.3130Server segments / DMZ
/28255.255.255.2400.0.0.1514Small server cluster / management VLAN
/29255.255.255.2480.0.0.76Small server group
/30255.255.255.2520.0.0.32Point-to-point WAN links / router interfaces
/32255.255.255.2550.0.0.01Host routes, loopback interfaces, firewall rules

RFC 1918 Private Address Ranges

These address blocks are reserved for private networks and are not routed on the public internet. Use them for internal LANs, VPCs, and VLANs:

Range Class Total Addresses Typical Use
10.0.0.0/8A16,777,216Large enterprise networks, cloud VPCs (AWS, Azure, GCP)
172.16.0.0/12B1,048,576Medium-sized networks, Docker default bridge (172.17.0.0/16)
192.168.0.0/16C65,536Home & small office networks (192.168.1.0/24 is the most common LAN)

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:

How to Read Subnet Calculator Results

When you enter 192.168.1.100/24, the subnet calculator shows: Network Address 192.168.1.0 (the identifier for the subnet), Broadcast Address 192.168.1.255 (sends to all hosts), Subnet Mask 255.255.255.0 (used in device configuration), Wildcard Mask 0.0.0.255 (used in ACLs and routing protocols), First Usable Host 192.168.1.1, Last Usable Host 192.168.1.254, and 254 usable hosts out of 256 total addresses. The binary breakdown visually separates network bits (first 24) from host bits (last 8), making it clear which portion of the address identifies the network versus the device.