CraftTools

IP Subnet Calculator

Guide: Subnet Masks and CIDR Notation Explained

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
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
CIDR notation
192.168.1.0/24
Usable hosts
254
Total addresses
256
IP class
C
Address type
Private
IP    11000000.10101000.00000001.00001010
Mask  11111111.11111111.11111111.00000000

Split into smaller subnets

Makes 4 subnets of /26.

  • 192.168.1.0/26
  • 192.168.1.64/26
  • 192.168.1.128/26
  • 192.168.1.192/26

Nothing you enter or choose here leaves your device. This tool runs in your browser.

Reading 192.168.1.10/24

The number after the slash is how many of the 32 bits belong to the network. The rest identify a host on it. For /24 that's 24 network bits and 8 host bits, which gives the mask 255.255.255.0 and 256 addresses.

Result for 192.168.1.10/24Value
Network address192.168.1.0
Broadcast address192.168.1.255
First usable host192.168.1.1
Last usable host192.168.1.254
Usable hosts254
Wildcard mask0.0.0.255

Prefix sizes at a glance

PrefixMaskAddressesUsable hosts
/16255.255.0.065,53665,534
/20255.255.240.04,0964,094
/24255.255.255.0256254
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242

There are always two fewer usable hosts than addresses, because the first address names the network and the last is the broadcast. The exceptions are /31, used for links between two routers, and /32, which is a single address.

Splitting a network

Say you have 192.168.1.0/24 and want four equal groups, one for each department. Each needs room for around 50 devices, so a /26 with 62 hosts fits. The split section gives you:

192.168.1.0/26     hosts .1   to .62
192.168.1.64/26    hosts .65  to .126
192.168.1.128/26   hosts .129 to .190
192.168.1.192/26   hosts .193 to .254

Pick the smallest prefix that holds your devices with room to grow. Being generous costs nothing in a private range and saves a re-addressing job later.

Private ranges

  • 10.0.0.0/8: about 16.7 million addresses, used by large organizations and cloud networks.
  • 172.16.0.0/12: from 172.16 to 172.31, often used by containers and mid-sized networks.
  • 192.168.0.0/16: the range behind most home routers.

These aren't routed on the public internet, so different networks can reuse them. That also means two offices both using 192.168.1.0/24 will clash if you join them with a VPN. Plan distinct ranges up front.

IPv6

Type an address with colons, such as 2001:db8::/32, and the calculator switches to IPv6. The standard size for a single local network is /64, which holds 2 to the power of 64 addresses, the square of the whole IPv4 address space. Because of that, IPv6 planning is about how many /64s you have, not about saving addresses.

The number base converter helps if you want to see masks as binary, and the guide to subnet masks and CIDR goes deeper into the arithmetic.

Mistakes to avoid

  • Giving a host the network or broadcast address. Both look valid and neither works.
  • Choosing a /24 for ten devices out of habit, then running out when a branch grows. Leave room.
  • Overlapping ranges. Two subnets that share addresses cause strange, intermittent faults.
  • Reading 255.255.255.128 as a /25 and then forgetting that it halves the network, giving two blocks of 128.

Written by Akinrinmade Michael · Updated October 24, 2026

How to use

  1. 1Type an IPv4 or IPv6 address with a prefix, such as 192.168.1.10/24 or 2001:db8::/32.
  2. 2Read the network, broadcast, first and last host and the number of hosts.
  3. 3Use the split section to divide the network into smaller subnets.
  4. 4Click Copy next to any value.

Frequently asked questions

What does /24 mean?

It is the CIDR prefix: the first 24 bits are the network part, which is the mask 255.255.255.0. That leaves 8 bits for hosts, or 256 addresses.

Why are there two fewer usable hosts than addresses?

The first address is the network address and the last is the broadcast address, so neither can be given to a device. /31 and /32 are special cases.

What is a wildcard mask?

The mask with every bit flipped, such as 0.0.0.255 for 255.255.255.0. Network equipment such as Cisco access lists use it.

Does it support IPv6?

Yes. Type an address with colons, such as 2001:db8::/32, and the calculator switches to IPv6. It shows the shortest and full forms, the network, the first and last address, the size, the number of /64 subnets and the address type.

Read the guides

Learn how this works and how to get the most from it.

Developer

Subnet Masks and CIDR Notation Explained

What /24 and 255.255.255.0 mean, how to count hosts in a subnet, and how to split a network into smaller ones.

3 min read

Developer

Linux File Permissions and chmod Explained

Understand read, write and execute permissions, what 755 and 644 mean, and how to use chmod with octal and symbolic modes.

4 min read

Chmod Calculator

Work out Linux file permissions in octal and symbolic form.

Number Base Converter

Convert between binary, octal, decimal, hexadecimal and any base to 36.

HTTP Status Codes

Look up every HTTP status code, from 200 OK to 503 Service Unavailable.

URL Parser & Query Builder

Split a URL into its parts and edit its query parameters.