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.
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.
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.
Usable Host Range & Scope Metadata
32-Bit Subnet Bitmask Matrix
Subnet Partitioning & Allocation Table
Split 192.168.1.0/24 into smaller subnets.
| # | Subnet CIDR | Usable Host Range | Broadcast | Hosts |
|---|---|---|---|---|
| 1 | 192.168.1.0/26 | 192.168.1.1 — 192.168.1.62 | 192.168.1.63 | 62 |
| 2 | 192.168.1.64/26 | 192.168.1.65 — 192.168.1.126 | 192.168.1.127 | 62 |
| 3 | 192.168.1.128/26 | 192.168.1.129 — 192.168.1.190 | 192.168.1.191 | 62 |
| 4 | 192.168.1.192/26 | 192.168.1.193 — 192.168.1.254 | 192.168.1.255 | 62 |
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.
Systems & Security Engineers • Applied Cryptography & High-Performance Web Tools
How to Use Subnet Calculator Online
Select IP Protocol (IPv4 or IPv6)
Choose IPv4 Subnet Studio or IPv6 Prefix Calculator from the top switcher.
Enter IP Address & Prefix
Enter an IP (e.g. 192.168.1.1 or 2001:db8::1) and select your CIDR subnet mask prefix.
Inspect Network Telemetry & Bitmask Matrix
View calculated network address, broadcast, first/last usable host, and the 32-bit binary bit matrix.
Subdivide with Subnet Partitioner
Select a target CIDR to calculate a complete partitioning table with all sub-allocated network ranges.
Practical Examples & Conversions
192.168.1.1/24
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)
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 TutorialRelated Tools & Converters
World Clock Grid
Live real-time clocks for major global financial hubs and cities worldwide.
Time Zone Converter
Convert and compare times across global time zones with drag-and-drop timeline sliders.
International Meeting Planner
Find optimal overlapping working hours across distributed global remote teams.
Interactive World Calendar
National holidays, observances, and moon phases for 100+ countries.
Authoritative Standards & Citations
Calculations and algorithms on this page are implemented and verified in strict accordance with the following official technical specifications:
RFC 7519: JSON Web Token (JWT)
Standardized compact, URL-safe means of representing claims to be transferred between two parties.
Web Cryptography API Specification
Standard JavaScript API for performing basic cryptographic operations in web applications.
RFC 4122: A Universally Unique IDentifier (UUID) URN Namespace
Definition of uniform format and generation algorithms for UUIDs.