Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
IP Subnet Calculator

IP Subnet Calculator

Calculate subnet mask, network address, broadcast address, host range, and CIDR notation for IPv4 and IPv6 networks.

What is an IP Subnet Calculator?

An IP Subnet Calculator is an essential networking tool that helps you divide IP networks into smaller subnetworks (subnets). Given an IP address and a subnet mask or CIDR prefix, it calculates key network parameters including the network address, broadcast address, usable host range, and more.

Why Use Subnetting?

Subnetting is a fundamental concept in computer networking that allows you to:

Organize Networks

Divide a large network into smaller, manageable segments for better administration and control.

Improve Security

Isolate network segments to control traffic flow between them and enhance security boundaries.

Optimize Performance

Reduce broadcast domains and minimize unnecessary network traffic for better efficiency.

Conserve IP Addresses

Allocate only the number of addresses actually needed for each subnet, maximizing resource utilization.

IPv4 vs IPv6

IPv4

32-bit Addresses

  • Format: 192.168.1.0
  • Uses dotted decimal notation
  • Subnet masks: 255.255.255.0
  • ~4.3 billion addresses
IPv6

128-bit Addresses

  • Format: 2001:db8::1
  • Uses hexadecimal notation
  • Prefix lengths: /64
  • 340 undecillion addresses

How to Use the IP Subnet Calculator

IPv4 Subnet Calculator

1

Enter IPv4 Address

Type an IPv4 address in the input field (e.g., 192.168.1.0). The calculator accepts standard dotted decimal notation.

2

Select CIDR or Subnet Mask

Choose a CIDR prefix from the dropdown (e.g., /24) or select a Subnet Mask. Both dropdowns stay synchronized automatically.

3

View Instant Results

Results appear instantly as you type, displaying network address, broadcast address, host range, and comprehensive subnet details.

4

Explore Binary Breakdown

Click Binary Breakdown to expand the binary visualization, where purple bits represent the network portion and green bits represent the host portion.

IPv6 Subnet Calculator

1

Switch to IPv6 Tab

Navigate to the IPv6 tab to access IPv6 subnet calculation features.

2

Enter IPv6 Address

Type an IPv6 address (e.g., 2001:db8::1). Both full and compressed notation formats are accepted.

3

Select Prefix Length

Choose a prefix length from the dropdown, or click one of the common presets: /48, /56, /64, or /128 for quick configuration.

4

Review Results

View the full address, compressed address, network range, and total addresses available in the subnet.

CIDR Reference Table

1

Access Reference Tab

Switch to the CIDR Reference tab to see all IPv4 prefixes from /0 to /32 in a comprehensive table.

2

Search and Filter

Use the search field to quickly filter by host count, subnet mask, or CIDR prefix.

3

Quick Apply

Click any row to automatically switch to the IPv4 tab and apply that CIDR prefix to your calculation.

Key Features

Real-Time Calculation

All results update instantly as you type or change settings — no need to click a calculate button. This makes it fast to explore different subnet configurations.

Complete IPv4 Details

Comprehensive network information including network address, broadcast address, host ranges, subnet masks, IP class, and address type classification.

Binary Breakdown

Visual representation showing all 32 bits with network bits highlighted in purple and host bits in green for better understanding of subnet structure.

Full IPv6 Support

Complete IPv6 subnet calculation with both full and compressed address display, network ranges, and common prefix presets (/48, /56, /64, /128).

CIDR Reference Table

Complete reference of all 33 CIDR prefixes with searchable, clickable rows for quick application to your calculations.

Privacy First

All calculations performed entirely in your browser. No data sent to servers, ensuring complete privacy of your network information.

Complete IPv4 Network Details

For any IPv4 address and CIDR prefix, the calculator provides comprehensive information:

  • Network Address — The first address in the subnet, identifying the network itself
  • Broadcast Address — The last address, used to send data to all hosts in the subnet
  • First/Last Usable Host — The range of addresses assignable to devices
  • Total and Usable Hosts — How many addresses exist vs. how many can be assigned
  • Subnet Mask and Wildcard Mask — Both representations used in different networking contexts
  • IP Class and Type — Identifies the address class (A-E) and whether it is private or public
Pro Tip: The binary breakdown feature is particularly useful for understanding how subnet masks work at the bit level and for troubleshooting complex subnetting scenarios.

Frequently Asked Questions

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation represents an IP address and its associated network mask using a slash followed by the number of network bits. For example, 192.168.1.0/24 means the first 24 bits identify the network, leaving 8 bits for host addresses (256 total, 254 usable).

This notation replaced the older classful addressing system, providing more flexibility in network allocation and reducing IP address waste.

What is the difference between subnet mask and wildcard mask?

A subnet mask uses 1s for network bits and 0s for host bits (e.g., 255.255.255.0). A wildcard mask is the inverse — 0s for network bits and 1s for host bits (e.g., 0.0.0.255).

Subnet Mask

Standard Usage

  • Used in most operating systems
  • Network configuration
  • Example: 255.255.255.0
Wildcard Mask

Cisco/Router Usage

  • Cisco router ACLs
  • OSPF configurations
  • Example: 0.0.0.255

Why are there fewer usable hosts than total hosts?

In a standard subnet, two addresses are reserved:

  • Network address — All host bits set to 0, identifies the network itself
  • Broadcast address — All host bits set to 1, used to send data to all hosts

For a /24 subnet with 256 total addresses, 254 are usable for host assignment.

Special Cases: The exceptions are /31 (2 usable, for point-to-point links per RFC 3021) and /32 (1 usable, for host routes or loopback addresses).

What are private IP address ranges?

Private IP ranges are reserved for internal networks and cannot be routed on the public internet. These ranges are defined in RFC 1918:

Class A Range

10.0.0.0/8
16,777,216 addresses

Class B Range

172.16.0.0/12
1,048,576 addresses

Class C Range

192.168.0.0/16
65,536 addresses

These ranges are commonly used for home networks, corporate intranets, and private cloud environments. NAT (Network Address Translation) is used to connect private networks to the public internet.

What IPv6 prefix lengths are commonly used?

Common IPv6 prefix lengths serve different purposes in network architecture:

Prefix Use Case Description
/48 Site Allocation Typical site allocation from an ISP, allows 65,536 /64 subnets
/56 Home Network Common home network allocation, provides 256 /64 subnets
/64 Standard Subnet Standard subnet size, required for SLAAC auto-configuration
/128 Single Host Single host address (loopback or host route)
Important: The /64 prefix is particularly significant in IPv6 as it's the recommended subnet size for end networks and is required for Stateless Address Autoconfiguration (SLAAC) to function properly.

Is my data private?

Yes, absolutely. All calculations are performed entirely in your browser using JavaScript. No IP addresses or network data are sent to any server.

  • 100% client-side processing
  • No data transmission to external servers
  • No logging or tracking of IP addresses
  • Works offline once the page is loaded

Your network information remains completely private and secure on your device.

Network Address -
Broadcast Address -
First Usable Host -
Last Usable Host -
Total Hosts -
Usable Hosts -
Subnet Mask -
Wildcard Mask -
IP Class -
IP Type -
Common:
Full Address -
Compressed Address -
Network Address -
First Address -
Last Address -
Prefix Length -
Total Addresses -
CIDR Subnet Mask Wildcard Mask Total Hosts Usable Hosts
Enter an IP address and select a CIDR prefix or subnet mask to calculate instantly
CIDR and Subnet Mask dropdowns are synced — changing one updates the other
Click Binary Breakdown to see network bits (purple) vs host bits (green)
Use the CIDR Reference tab to look up any prefix from /0 to /32
Click any row in the CIDR table to auto-fill the IPv4 calculator
For IPv6, use the preset buttons (/48, /56, /64, /128) for common prefix lengths
All calculations are done locally in your browser
Want to learn more? Read documentation →
1/8
Can't find it? Build your own tool with AI
Start typing to search...
Searching...
No results found
Try searching with different keywords