IPv4 subnet calculator for CIDR blocks and netmasks

Updated:

Paste an address in CIDR form, for example 203.0.113.77/27, or follow it with a dotted netmask such as 172.16.4.1 255.255.252.0. The calculator returns the network ID, broadcast, netmask, wildcard, the assignable range and how many hosts it holds, and it can carve the block into equal smaller pieces. All of the arithmetic happens locally in your browser. To see which provider and network a single address belongs to, try the IP lookup.

Building a pool across separate ranges?
Network ID
192.168.1.0/24
Broadcast
192.168.1.255
Netmask
255.255.255.0
Wildcard (inverse mask)
0.0.0.255
Assignable range
192.168.1.1 – 192.168.1.254
Assignable hosts
254
Addresses in block
256
Legacy class
C
Address type
Private, RFC 1918
Netmask bits
11111111.11111111.11111111.00000000

Divide this block

BlockFirst usableLast usableBroadcast
192.168.1.0/26192.168.1.1192.168.1.62192.168.1.63
192.168.1.64/26192.168.1.65192.168.1.126192.168.1.127
192.168.1.128/26192.168.1.129192.168.1.190192.168.1.191
192.168.1.192/26192.168.1.193192.168.1.254192.168.1.255

Quick reference: prefix lengths in practice

Two addresses in each block are normally reserved, the all-zeros network ID and the all-ones broadcast, so assignable hosts equal the block size minus two. Point-to-point /31 links skip that reservation under RFC 3021, and a /32 names exactly one machine.

PrefixAssignable of totalNetmaskWhere you meet it
/1665,534 of 65,536255.255.0.0Large campus or provider allocation
/204,094 of 4,096255.255.240.0Regional hosting pool
/221,022 of 1,024255.255.252.0Common small allocation from a regional registry
/23510 of 512255.255.254.0Two adjacent /24 blocks
/24254 of 256255.255.255.0Longest prefix generally accepted in global BGP routing
/25126 of 128255.255.255.128Half a /24
/2662 of 64255.255.255.192Office VLAN
/2730 of 32255.255.255.224Server rack segment
/2814 of 16255.255.255.240Small static IP order from an ISP
/296 of 8255.255.255.248Business line with a few static IPs
/302 of 4255.255.255.252Classic router-to-router link
/312 of 2255.255.255.254Point-to-point link, RFC 3021
/321 of 1255.255.255.255Single address, such as one proxy IP

The arithmetic behind the results

  • IPv4 addresses are 32-bit numbers. The prefix length counts the leading bits shared by the whole network; the remaining bits number individual machines.
  • Clearing every host bit gives the network ID, setting every host bit gives the broadcast, and everything in between is assignable.
  • The wildcard is the netmask flipped bit by bit. Cisco IOS access lists and OSPF statements are written with it.
  • The legacy class (A to E) comes from the first octet and is shown for reference only; routing has ignored classes since CIDR arrived in 1993.
  • Three blocks never reach the public internet: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. The calculator labels them private.

Reading proxy IPs by subnet

Fraud systems rarely stop at the single address. Several accounts arriving from one /24 look like one operator even when every IP is different, and an abuse flag on a neighbour can spill over to the whole range. When you plan a pool of dedicated proxies for separate accounts (see how many accounts per proxy), paste each address here and note its /24 network ID: addresses that share one belong together in the eyes of most platforms. ProxyV4 sells private IPv4 across 7 countries and static ISP IPs in the US and Vietnam, so a pool can span different blocks and locations.

Step by step

  1. 1

    Type a network

    Enter an IPv4 address followed by /prefix, or by a space and a dotted netmask.

  2. 2

    Adjust the prefix length

    Pick another value from the drop-down to watch the block widen or narrow around the same address.

  3. 3

    Copy the figures

    Every field refreshes with each keystroke, so you can paste the values straight into a firewall rule or router config.

  4. 4

    Divide the block

    Choose a longer prefix under the results to list the equal subnets that fit inside.

Frequently asked questions

How many devices fit on a /24 network?

254. The block holds 256 addresses, but the one ending in .0 identifies the network and the one ending in .255 is the broadcast.

How do I convert a netmask to a prefix length?

Count the one-bits. 255.255.252.0 is 22 ones followed by zeros, so it equals /22. Typing the mask after the address here does the conversion for you, and masks with gaps in the ones are rejected as invalid.

Can I calculate IPv6 prefixes here?

Not at the moment; the tool handles IPv4 only.

Does anything I type get uploaded?

No. The page computes everything in JavaScript on your device and sends nothing to a server.

Building a pool across separate ranges?

ProxyV4 private IPv4 in 7 countries, each address rented to a single customer, unlimited bandwidth, delivered within minutes.

Compare proxy plans

Related articles

Free tools
Look up an IP: who owns it, where it is, and what kind of network
Free IP lookup for any IPv4, IPv6 or hostname: see the ASN, ISP, country, city and timezone, and whether the address belongs to a datacenter or a consumer ISP.
Free tools
Is this IP on a blocklist? Run a DNSBL reputation check
Free IP blacklist check: look up any public IPv4 in 8 DNS blocklists, including SpamCop, Barracuda, SORBS open-proxy zones, PSBL, UCEPROTECT and s5h.
Knowledge base
How Websites Detect Datacenter Proxies, and What It Means When You Buy
How websites detect datacenter proxies: ASN and registry data, published cloud ranges, reverse DNS, IP databases and behavior, and when a static ISP IP fits.
Free tools
Test whether a remote TCP port accepts connections
Free online port checker: test up to 8 TCP ports on any public IP or hostname, see open, refused or timed-out results with handshake time, debug proxy ports.
Products
Static ISP proxies: residential IPs on consumer networks
Static ISP proxies in the United States and Vietnam: fixed IPs registered to consumer internet providers, rented to one customer, with unmetered traffic.
Products
Dedicated datacenter proxies: one private IPv4 per customer
Private IPv4 proxies in the US, Vietnam, Japan, South Korea, Singapore, the UK and Hong Kong. One tenant per IP, HTTP(S) and SOCKS5, no traffic metering.
ISP · vietnam
Vietnam Static ISP Proxy for Main Shops and Ad Accounts
Vietnam static ISP proxies on IPs registered to Vietnamese consumer providers. A fixed IP for main Shopee shops, TikTok Shop, Facebook ad accounts and Zalo OA.
ISP · united states
US Static ISP Proxy: A Home-Registered IP That Never Changes
US static ISP proxies on IPs registered to consumer internet providers. One fixed American IP per account for Amazon sellers, ad accounts and Instagram.