Skip to main content
Toolbox
Network Tools

Subnet Calculator Online

Calculate IPv4 & IPv6 subnet boundaries, CIDR prefixes, wildcard masks, usable host capacities, and 32-bit interactive bitmask matrices with 100% in-browser execution.

Quick Answer & Summary

An IPv4 Subnet Calculator performs binary bitwise calculations on IP addresses and Classless Inter-Domain Routing (CIDR) prefixes to determine network infrastructure boundaries. It computes subnet masks in slash notation (/24, /16), network IDs, broadcast addresses, wildcard masks, and total usable host address ranges. Network engineers, DevOps professionals, and cloud architects use this utility to design Virtual Private Clouds (VPCs), allocate IP subnets across AWS and Azure virtual networks, avoid routing conflicts, and configure firewall access control lists (ACLs). The tool also generates full 32-bit binary representations of IP addresses and subnet masks to assist in educational networking analysis. Operating entirely client-side via JavaScript bitwise operators, your internal network topologies, private CIDR ranges (RFC 1918), and VPC designs remain 100% confidential and unlogged.

IPv4 Subnet Binary Bitwise Math
Network Address = IP & Subnet_Mask | Usable Hosts = (2^(32 - Prefix)) - 2

Broadcast address is calculated by setting all host bits to 1 (Network_Address | ~Subnet_Mask).

IPv4 & IPv6 Subnet / CIDR Calculator

Calculate network boundaries, broadcast addresses, usable host capacities, wildcard masks, and interactive binary bitmask matrices in your browser.

Presets:
Network Address
192.168.1.0
Broadcast Address
192.168.1.255
Subnet Mask
255.255.255.0
Wildcard Mask
0.0.0.255

Usable Host Range & Scope Metadata

First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Usable / Total Hosts254 / 256
Class CRFC 1918 (Private)Hex: 0xFF.FF.FF.00

32-Bit Subnet Bitmask Matrix

Network Bits (24) Host Bits (8)
Octet 1
11111111
Octet 2
11111111
Octet 3
11111111
Octet 4
00000000

Subnet Partitioning & Allocation Table

Split 192.168.1.0/24 into smaller subnets.

#Subnet CIDRUsable Host RangeBroadcastHosts
1192.168.1.0/26192.168.1.1192.168.1.62192.168.1.6362
2192.168.1.64/26192.168.1.65192.168.1.126192.168.1.12762
3192.168.1.128/26192.168.1.129192.168.1.190192.168.1.19162
4192.168.1.192/26192.168.1.193192.168.1.254192.168.1.25562

IPv4/IPv6 Subnetting Mechanics, CIDR Prefixes & VLSM Design

IP Subnetting is the architectural discipline of dividing a contiguous IP address block into smaller, isolated logical subnetworks. This improves network performance, isolates broadcast domains, and optimizes IP address allocation.

Key Subnetting Formulas & Binary Arithmetic

  • Total Addresses: Total = 2^(32 - CIDR)
  • Usable Hosts: Usable = 2^(32 - CIDR) - 2 (for prefixes /0 to /30)
  • Network Address: Network = IP AND Netmask
  • Broadcast Address: Broadcast = Network OR (NOT Netmask)
  • Wildcard Mask: Wildcard = 255.255.255.255 XOR Netmask

RFC 1918 Private IP Address Spaces

The Internet Engineering Task Force (IETF) reserved three non-routable private IP blocks for internal networks:

  • 10.0.0.0/8: 10.0.0.0 - 10.255.255.255 (16,777,216 IPs) — Large enterprise & VPC networks
  • 172.16.0.0/12: 172.16.0.0 - 172.31.255.255 (1,048,576 IPs) — Cloud & container subnets
  • 192.168.0.0/16: 192.168.0.0 - 192.168.255.255 (65,536 IPs) — Home & office LANs

Share This Tool

Help your team and fellow developers save time with free, private client-side utilities.

TB
Toolbox Editorial TeamVerified Authors

Systems & Security Engineers • Applied Cryptography & High-Performance Web Tools

Updated:
100% In-BrowserZero server storage
Standards AuditedRFC & ISO compliant
Peer ReviewedEditorial Policy
Documentation & Guide

How to Use Subnet Calculator Online

1

Select IP Protocol (IPv4 or IPv6)

Choose IPv4 Subnet Studio or IPv6 Prefix Calculator from the top switcher.

2

Enter IP Address & Prefix

Enter an IP (e.g. 192.168.1.1 or 2001:db8::1) and select your CIDR subnet mask prefix.

3

Inspect Network Telemetry & Bitmask Matrix

View calculated network address, broadcast, first/last usable host, and the 32-bit binary bit matrix.

4

Subdivide with Subnet Partitioner

Select a target CIDR to calculate a complete partitioning table with all sub-allocated network ranges.

Practical Examples & Conversions

Input
192.168.1.1/24
Output
Network: 192.168.1.0 | Broadcast: 192.168.1.255 | Range: 192.168.1.1 - 192.168.1.254 (254 Usable Hosts)

Frequently Asked Questions (PAA)

In-Depth Architectural Guide
Developer Tools 6 min read

How to Calculate IPv4 Subnets, Netmasks, and CIDR Blocks (Explained)

Demystify CIDR notation and IPv4 subnetting. Learn the binary bitmask formula for network addresses, broadcast IPs, and usable host ranges with a complete cheat sheet.

Read Full Tutorial

Related Tools & Converters

Authoritative Standards & Citations

Calculations and algorithms on this page are implemented and verified in strict accordance with the following official technical specifications: