IPv4 Subnet Calculator

Runs in your browserDeveloper Tools#Networking#DevOps

Find the network, broadcast, host range, masks and address type of an IPv4 subnet, and split it.

Also accepts 10.0.0.0/8 or 10.0.0.0 255.0.0.0

Network192.168.1.0/24254 usable hosts out of 256 addresses

Private: not routed on the public internet.

Details

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 (2^8)
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Address type
Private (RFC 1918)
Legacy class
C (no longer used for routing)
IP in binary
11000000.10101000.00000001.00001010
Mask in binary
11111111.11111111.11111111.00000000
IP in hex
0xC0A8010A
How to use, limits & privacy

About IPv4 Subnet Calculator

Calculate everything about an IPv4 subnet from an address and a prefix: network and broadcast addresses, the usable host range and count, total addresses, subnet and wildcard masks, binary and hex forms, and whether the address is private, CGNAT, loopback, link-local, multicast or public. You can also split a network into smaller subnets. It suits CCNA and networking students, network admins and anyone setting up routers or cloud networks.

How to Use

1

Enter an address

Type an IPv4 address such as 192.168.1.10, or paste it with its prefix or mask, such as 10.0.0.0/8 or 10.0.0.0 255.0.0.0.

2

Choose the prefix

Pick the prefix from /0 to /32 in the menu, which also shows the matching subnet mask.

3

Read and copy

Check the network, range and masks, and copy any value with its copy button or everything with Copy all.

4

Split if needed

Open Split into smaller subnets, enter how many subnets you need or a new prefix, and copy the table.

Privacy & Processing

  • Mode: local
  • Files Leave Browser: Local tool processing; review details below
  • Max Input Size: Device memory limits
  • Account Required: No
  • Data Stored Locally: Nothing is saved in this browser.
  • Network Processing: Assets or models may require an initial download

All calculations run in your browser. Addresses are not uploaded or saved.

Rules & Limitations

  • IPv4 only; IPv6 addresses are not supported yet.
  • Usable hosts leave out the network and broadcast addresses, except /31 (2 usable, for point-to-point links, RFC 3021) and /32 (a single host).
  • Addresses must be four numbers from 0 to 255 without leading zeros, because some systems read 010 as 8.
  • The split table shows the first 256 subnets; Copy table copies those rows.
  • IP classes (A, B, C) are shown for study only: routing has used CIDR prefixes since 1993.

Top Suggestions

  • Practising subnetting for the CCNA exam
  • Planning address ranges for an office network or VLANs
  • Setting up a cloud VPC or subnet on AWS, Azure or Google Cloud
  • Checking whether an address is private, CGNAT or public

IPv4 Subnet Calculator FAQ

How many usable hosts are in a /24?

254. A /24 has 256 addresses; the first is the network address and the last is the broadcast address, so 254 can be given to devices.

Why does a /31 have 2 usable addresses?

RFC 3021 lets point-to-point links between two routers use both addresses of a /31, because such a link needs no broadcast address. A /32 is a single host address.

What is a wildcard mask?

It is the subnet mask with the bits flipped, such as 0.0.0.255 for 255.255.255.0. Cisco access lists and OSPF use it to say which bits of an address can vary.

What is the difference between a private and a public IP address?

Private addresses (10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16) are for home and office networks and are not routed on the internet. Public addresses are reachable on the internet. 100.64.0.0/10 is shared CGNAT space that many Indian mobile and broadband providers use.

How do I split a network into smaller subnets?

Open Split into smaller subnets and enter how many you need; the tool rounds up to a power of two and picks the prefix. For example, 4 subnets of a /24 gives four /26 networks of 62 usable hosts each.

Is any data sent to a server?

No. All calculations run in your browser and nothing is saved.