html69// developer tools

Network tool

IPv4 Subnet & CIDR Calculator

A subnet and IP address calculator, and a calculator for subnet mask values. Paste 192.168.1.0/24 or an IPv4 address plus 255.255.255.0. Network, broadcast, usable hosts, wildcard, and binary octets stay on your computer.

Like the tool? Find a bug?Get in touch :)

Calculator

Paste an IPv4 address with a CIDR prefix or a subnet mask. The math runs in this tab.

Private (RFC 1918). 8 host bits.

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

Wildcard mask

0.0.0.255

Network CIDR

192.168.1.0/24

Binary octets

Address
11000000.10101000.00000001.00000000
Subnet mask
11111111.11111111.11111111.00000000
Network
11000000.10101000.00000001.00000000
Wildcard
00000000.00000000.00000000.11111111

Runs on your computer. We never see what you paste or upload.

Guide

How this subnet calculator works

01

CIDR or a dotted mask

192.168.1.0/24 and 192.168.1.0 255.255.255.0 are the same network. The prefix is the number of 1-bits in the subnet mask. /24 is 255.255.255.0. /16 is 255.255.0.0.

02

Network and broadcast

The network address is the IP with host bits set to 0. The broadcast address is the same block with host bits set to 1. Usable hosts sit between those two, except on /31 and /32 links.

03

Wildcard and binary

The wildcard mask is the inverse of the subnet mask. Cisco ACLs use it. Binary octets show each of the four bytes so you can see which bits are network and which are host.

Use it

What a /24 gives you

A typical LAN is 192.168.1.0/24: 256 addresses, 254 usable hosts, network 192.168.1.0, broadcast 192.168.1.255, first host 192.168.1.1, last host 192.168.1.254. A /32 is one host. A /31 is a two-address point-to-point link.

FAQ

Questions

Does this upload my addresses?

No. The subnet math runs in this tab, on your computer. We never see what you type.

What is a calculator for subnet mask used for?

You type an IPv4 address and a mask such as 255.255.255.0, or a CIDR prefix such as /24. The page returns the network, the broadcast, and how many hosts fit in that block.

CIDR or subnet mask?

Same information, two writings. CIDR is the slash prefix (/24). The subnet mask is the dotted form (255.255.255.0). Change either field and the other updates.

How many usable hosts in a /24?

254. A /24 has 256 addresses. One is the network, one is the broadcast. /31 uses both addresses. /32 is a single host.

Is there a size limit?

The input is capped at 80 characters, which is more than an IPv4 address and mask need.

Share