prefixkit RU

Subnets

IPv4 subnet calculator

Enter an address with a prefix (192.168.1.10/24) or a mask (192.168.1.10 255.255.255.0). Results update as you type.

For example 192.168.1.10/24 or 10.0.0.1 255.255.255.252

/24

Network bits are blue, host bits are amber. Click any bit to move the boundary.

Result

Address
192.168.1.10
Network
192.168.1.0/24
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Broadcast
192.168.1.255
First host
192.168.1.1
Last host
192.168.1.254
Total addresses
256
Usable hosts
254
Address type
Private (RFC 1918)
Class
C
Binary address
11000000.10101000.00000001.00001010
Binary mask
11111111.11111111.11111111.00000000
Hex
0xC0A8010A
Integer
3232235786
PTR record name
10.1.168.192.in-addr.arpa

Split into subnets

4 subnets

1192.168.1.0/26192.168.1.0 – 192.168.1.63
2192.168.1.64/26192.168.1.64 – 192.168.1.127
3192.168.1.128/26192.168.1.128 – 192.168.1.191
4192.168.1.192/26192.168.1.192 – 192.168.1.255

How the calculation works

An IPv4 address is 32 bits. The prefix length says how many of those bits, counted from the left, identify the network; the remaining bits number the hosts inside it. Set every host bit to 0 and you get the network address. Set them all to 1 and you get the broadcast address. Everything in between can be assigned to devices.

Why /31 and /32 are different

A /31 has no separate network or broadcast address: RFC 3021 allows both addresses to be used on point-to-point links. A /32 is a single address, used for loopback interfaces and host routes.

Mask, wildcard and prefix

A subnet mask is the prefix written as an address: /24 is 255.255.255.0. The wildcard mask is its inverse (0.0.0.255) and appears in Cisco ACLs and OSPF network statements. Every value from /0 to /32 is listed in the CIDR table.

Common questions

How many hosts are in a /24?

256 addresses, 254 of which can be assigned to devices: the first is the network address and the last is broadcast.

Which ranges are private?

RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Providers use 100.64.0.0/10 for carrier-grade NAT; it is not RFC 1918 space, but it is not routed on the internet either.

Is anything I type sent to a server?

No. All calculations run in your browser, and the page keeps working offline once loaded.