Skip to content

Search the site

Type to search...

Network tool

IPv4 Network & Subnet Calculator

A privacy-first IPv4 networking workbench for subnet calculations, mask conversion, host/network identification and IPv4 number conversion. All calculations run locally in your browser.

Privacy:
All calculations are performed locally in your browser.
No IP address or calculation data is sent to Koevn servers.

IPv4 workbench

Choose calculation

Local calculation · no network requests

Network and IP calculator

Find a subnet boundary, host range, masks and address counts from an IPv4 address and prefix.

You may also paste CIDR notation into the IP field; the prefix will be filled automatically.

Understanding IPv4 subnet calculations

IPv4 subnet calculation separates a 32-bit address into network and host portions. The workbench applies the selected prefix or contiguous mask to derive the network boundary, broadcast address, usable range and alternative number representations.

How subnet masks work

A contiguous subnet mask uses leading one bits for the network and trailing zero bits for hosts. Non-contiguous masks are rejected.

CIDR and address count

A /n prefix reserves n network bits. Total addresses equal 2 raised to the remaining host-bit count.

What is a wildcard mask?

A wildcard mask is the bitwise inverse of a valid subnet mask and is commonly used in network matching rules.

/31 point-to-point networks

RFC 3021 treats both addresses in a /31 as usable point-to-point endpoints; the traditional network and broadcast exclusions do not apply.

/32 host routes

A /32 identifies one address. Its network, broadcast, first and last usable values are all that same address.

IPv4 number representations

The same 32 bits can be written as dotted decimal, dotted or compact binary, an unsigned decimal integer, or hexadecimal octets.

Common CIDR reference table

PrefixSubnet maskTotalUsable
/8255.0.0.016,777,21616,777,214
/16255.255.0.065,53665,534
/20255.255.240.04,0964,094
/21255.255.248.02,0482,046
/22255.255.252.01,0241,022
/23255.255.254.0512510
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422
/32255.255.255.25511

Usable counts follow conventional network/broadcast exclusions through /30, RFC 3021 semantics for /31, and single-host semantics for /32.

How the calculation works

  1. Validate four decimal IPv4 octets and a prefix between 0 and 32.
  2. Build the 32-bit subnet mask from the prefix and invert it for the wildcard mask.
  3. Apply the subnet mask to find the network, then combine the network with the wildcard to find the broadcast.
  4. Calculate counts and usable endpoints according to conventional, /31, or /32 rules.

All operations use a bundled, deterministic IPv4 module. The page has no tool API endpoint and sends no calculator input to a third party.

CIDR examples

  • 192.168.10.100/24 belongs to 192.168.10.0/24, with 254 conventionally usable host addresses.
  • 198.51.100.9/31 is the point-to-point block 198.51.100.8/31; both endpoints are usable under RFC 3021.
  • 203.0.113.7/32 represents one host route and one usable address.