BTC $61,430.00 +0.78% ETH $1,715.93 +0.20% USDT $0.9990 +0.05% BNB $560.58 +0.55% USDC $0.9996 +0.03% XRP $0.9529 +3.63% SOL $72.45 +2.79% TRX $0.3105 +1.97% FIGR_HELOC $1.04 — STETH $1,723.47 +0.11% HYPE $64.29 +3.26% ZEC $785.17 −0.34% XMR $488.41 −0.73% BSC-USD $0.9988 −0.04% BTC $61,430.00 +0.78% ETH $1,715.93 +0.20% USDT $0.9990 +0.05% BNB $560.58 +0.55% USDC $0.9996 +0.03% XRP $0.9529 +3.63% SOL $72.45 +2.79% TRX $0.3105 +1.97% FIGR_HELOC $1.04 — STETH $1,723.47 +0.11% HYPE $64.29 +3.26% ZEC $785.17 −0.34% XMR $488.41 −0.73% BSC-USD $0.9988 −0.04%

IP Subnet Calculator

Everything about a network range, worked out as you type.

  • 100% Free
  • No sign-up
  • Runs in your browser

Examples: 10.0.0.0/8, 172.16.5.4 255.255.240.0, 2001:db8::1/48

What is the IP Subnet Calculator?

Planning a network, writing a firewall rule or setting up a server often comes down to one question: which addresses belong to this range? Type an address with its prefix, like 192.168.1.10/24, or with a mask, like 172.16.5.4 255.255.240.0, and everything is worked out as you type.

For IPv4 you get the network and broadcast addresses, the first and last usable host, the number of hosts, the subnet and wildcard masks, the class, whether the range is private, public, CGNAT or link-local, the binary form and the reverse DNS zone. Type a bigger prefix to split the network into equal subnets. IPv6 addresses are expanded and compressed, with the first and last address and the size of the range.

Features

IPv4 and IPv6

CIDR prefixes and dotted masks.

Host range

First and last usable address and the host count.

Masks

Subnet mask, wildcard mask and binary.

Split into subnets

Equal subnets of the size you choose.

Address type

Private, public, CGNAT, loopback or link-local.

As you type

No button to press.

How to use the IP Subnet Calculator

  1. 1

    Type an address with its prefix, such as 192.168.1.10/24, or with a mask.

  2. 2

    Read the network, range, mask and host count.

  3. 3

    Optionally type a bigger prefix to split it into subnets.

Who it is for

Firewall and cloud rules

Check what a CIDR block in a security group really covers.

Home and office networks

Plan VLANs and DHCP ranges.

Exams and study

Check your subnetting answers for CCNA and similar courses.

Tips for better results

  • A /31 is used for point-to-point links and a /32 is a single host; both have no separate broadcast address.
  • The wildcard mask is what Cisco access lists expect instead of the subnet mask.
  • In IPv6, a /64 is the normal size for one network; a /48 holds 65,536 of them.

Your privacy: it stays on your device

  • This tool runs entirely in your browser. What you type and the files you choose are processed on your own device and are never sent to our server.
  • Nothing is uploaded, stored or kept in a history, so it is safe for private text, documents, photos and keys.
  • It keeps working on a slow connection, because no answer has to come back from a server.

Questions people ask

How many hosts are in a /24?

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

What is the difference between a subnet mask and a wildcard mask?

They are opposites: 255.255.255.0 as a subnet mask is 0.0.0.255 as a wildcard mask. Routers and firewalls from some vendors expect the wildcard form.

Is anything sent to your server?

No. All the maths happens in your browser.

FREE BITCOIN TOOLS

Stuck Bitcoin transaction?

Paste your TXID, see where it stands, and give it a free push. No signup, no wallet access.

Try the free accelerator
  • Free
  • No signup
  • Live status