Home / Tools / IPv4 Tools

IPv4 Tools

Type an IPv4 address with a prefix or netmask to get the network, broadcast, host range, masks, address type and every notation. Split networks, plan subnets by host count (VLSM), merge CIDR lists, turn ranges into CIDRs, build WireGuard AllowedIPs with exclusions and find the longest-prefix match.

Subnet calculator
VLSM & CIDR merge
Runs in your browser

Address

…
Prefix length: /24

Accepts 10.0.0.5/16, 10.0.0.5 255.255.0.0, a Cisco wildcard 10.0.0.0 0.0.255.255, a range 10.0.0.0 - 10.0.0.255, an integer 3232235786, hex 0xC0A8010A, ::ffff:192.0.2.1, an in-addr.arpa name, or a plain address (then the slider sets the prefix).

32 bits

Network bits in blue, host bits in amber

Network

Address & formats

Split into subnets

Split into

#NetworkFirst hostLast hostBroadcastHosts

VLSM subnet planner

Network to divide
Subnets needed: one per line, a name and the number of hosts

NameHosts neededNetworkUsable rangeBroadcastNetmaskSpare

Subnets are placed largest first, so every block stays aligned and nothing overlaps. Each one gets the smallest size whose usable hosts (total minus network and broadcast) cover what you asked for.

Merge, exclude & convert ranges

Networks, ranges or addresses: one per line or comma-separated. Start a line with ! to exclude it.

                            

Which network does an address belong to?

Networks (routing table, allow list…): CIDR and an optional label
Addresses to check
AddressBest matchLabelAlso inside

Routers pick the most specific matching prefix (longest-prefix match). The same rule tells you which firewall object or allow-list entry covers an address.

Prefix cheat sheet

Click a row to use that prefix
CIDRNetmaskWildcardAddressesUsable hostsSize