Skip to content
OnlineToolStudio

Subnet Calculator (IPv4 & IPv6)

runs in your browserno sign-upfree

Calculate network, broadcast, host range, subnet mask and wildcard for any IPv4 or IPv6 CIDR. Split networks into subnets and turn IP ranges into CIDR blocks.

Address
192.168.1.10
Network (CIDR)
192.168.1.0/24
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255Used in Cisco ACLs and OSPF
Network address
192.168.1.0
Broadcast address
192.168.1.255
Usable host range
192.168.1.1 – 192.168.1.254
Usable hosts
254
Total addresses
256
IP class
C
Type
Private network (home or office)
Reverse DNS
10.1.168.192.in-addr.arpa
As a number
3232235786
Hex
0xC0A8010A

In binary

Address11000000.10101000.00000001.00001010
Subnet mask11111111.11111111.11111111.00000000
Network11000000.10101000.00000001.00000000
Broadcast11000000.10101000.00000001.11111111

About this tool

Work out everything about an IP network from one line. Type an address with a prefix (192.168.1.10/24), with a subnet mask (10.0.0.1 255.255.0.0) or an IPv6 network (2001:db8::/48) and see the network and broadcast addresses, usable host range and count, subnet and wildcard masks, class, whether it is private or public, the reverse-DNS zone and the binary layout. Split a network into equal smaller subnets, or turn any IP range into the fewest CIDR blocks — handy for firewall rules and allow-lists.

How to use

  1. Type an IP address with its prefix or subnet mask — or pick the prefix from the list.
  2. Read the results: network, broadcast, host range, masks and more. Copy any value.
  3. Use “Split into subnets” to divide the network, or “IP range → CIDR” to convert a start–end range.

FAQ

What does /24 mean?

It is CIDR notation: the first 24 bits of the address identify the network, and the remaining 8 bits number the hosts in it. /24 is the subnet mask 255.255.255.0 — 256 addresses, 254 usable for devices.

Why are there 2 fewer usable hosts than addresses?

In IPv4 the first address of a subnet is the network address and the last is the broadcast address, so neither can be given to a device. The exceptions are /31 (two addresses for a point-to-point link, RFC 3021) and /32 (one host). IPv6 has no broadcast, so every address counts.

What is a wildcard mask?

The inverse of the subnet mask (0.0.0.255 for a /24). Cisco access lists and OSPF use it to say which bits may vary.

How do I convert an IP range to CIDR?

Choose “IP range → CIDR” and enter the first and last address. A range that doesn’t start and end on a block boundary needs several CIDR blocks; the tool lists the fewest that cover it exactly, ready to paste into a firewall or allow-list.

What size is an IPv6 subnet?

A single LAN normally uses a /64, which holds 18 quintillion addresses. Providers usually give a site a /48 or /56, which contain 65,536 or 256 /64 networks — the calculator shows how many.

Related tools

All tools