⚡
usefultools.dev
/24

Subnet Calculator (IPv4 & IPv6 CIDR)

NEW

Free subnet calculator for IPv4 and IPv6: get network, broadcast, host range, usable hosts and wildcard mask from any CIDR, and split networks.

Runs 100% in your browser — your input is never uploaded or stored on our servers.

Try:
192.168.1.0/24Private
Network address
192.168.1.0
Broadcast address
192.168.1.255
First usable host
192.168.1.1
Last usable host
192.168.1.254
Usable hosts
254
Total addresses
256
Subnet mask
255.255.255.0 (/24)
Wildcard mask
0.0.0.255
Class
C
Range
Private network · RFC 1918

Network and broadcast addresses are excluded.

Binary view

Address   11000000.10101000.00000001.00001010
Mask      11111111.11111111.11111111.00000000
Network   11000000.10101000.00000001.00000000
Broadcast 11000000.10101000.00000001.11111111

The first 24 bits are the network part; the remaining 8 bits address hosts.

Split this network
⚡

Quick Examples

Typical inputs and the results this tool produces.

IPv4
192.168.1.10/24
192.168.1.1 – .254 (254)
Mask
172.16.5.4 255.255.240.0
172.16.0.0/20 · 4,094 hosts
/31
203.0.113.9/31
2 usable (RFC 3021)
Split
192.168.1.0/24 into 4
/26 · .0 .64 .128 .192
IPv6
2001:db8:abcd:12::1/64
2001:db8:abcd:12::/64
📖

Overview

A subnet calculator turns an IP address and prefix (CIDR) or subnet mask into everything you need to configure a network: the network and broadcast addresses, the first and last usable host, the number of hosts, the wildcard mask used by ACLs and OSPF, and a binary view that shows where the network bits end.

Network engineers, cloud architects sizing VPC subnets and students preparing for CCNA use it to avoid off-by-one mistakes. It also detects private (RFC 1918), CGNAT, loopback, link-local, documentation and multicast ranges, handles /31 point-to-point links and /32 host routes correctly, and can split a network into equal subnets.

For IPv6 it shows the compressed and expanded forms, the network prefix and the exact address count. All math runs in your browser.

Why use this tool?

  • No off-by-one errors in host ranges
  • Correct /31 and /32 handling
  • Split a block into equal subnets instantly
  • IPv6 compression and exact host counts
  • Runs locally, nothing is uploaded
⭐

Features

🧮

Full IPv4 breakdown

Network, broadcast, host range, usable hosts, netmask and wildcard mask.

🔢

Binary view

Address, mask, network and broadcast shown bit by bit in octets.

🏷️

Range detection

Class A–E plus private, CGNAT, loopback, link-local, documentation and multicast ranges.

✂️

Subnet splitting

Divide a network into N subnets or by a new prefix length, with a copyable list.

6️⃣

IPv6 support

Compressed (RFC 5952) and expanded forms, prefix, last address and exact address count.

📋

Copy results

Copy the whole result block or the subnet list as plain text.

🛠️

How to Use

1

Enter an address

Type an IP with a prefix like 10.0.0.5/16, or an IP plus a dotted mask.

2

Read the results

Network, broadcast, host range and range type update as you type.

3

Split if needed

Under "Split this network", choose N subnets or a new prefix length.

4

Copy

Use "Copy results" or "Copy list" to paste into docs or configs.

🤔

Frequently Asked Questions