PasteZap
🌐 English
Free · No account

FREE · NETWORK & IT INFRASTRUCTURE

Subnet Calculator (IPv4 & IPv6).

Calculate network, broadcast, host range, mask, wildcard and usable hosts for any IPv4 or IPv6 prefix, and split it into smaller subnets.

Limits & supported formats

Up to 4,096 subnets per CSV and 256 shown on screen. /31 follows RFC 3021 (two usable addresses) and /32 is a single host. Address types follow the IANA special-purpose registries. Everything is calculated in your browser; nothing is sent or probed on the network.

CALCULATED IN YOUR BROWSER · NOTHING IS UPLOADED

Accepts CIDR (/26), a dotted mask (192.168.1.10 255.255.255.0 or /255.255.255.0) and IPv6 prefixes.

0 turns the subnet list off. Must be longer than the network prefix.

Usable hosts62192.168.10.0/26
Network address
192.168.10.0/26
Subnet mask
255.255.255.192
Wildcard (inverse) mask
0.0.0.63
Broadcast address
192.168.10.63
First usable host
192.168.10.1
Last usable host
192.168.10.62
Usable hosts
62
Total minus network and broadcast
Total addresses
64
Address type
Private (RFC 1918)
Historic class
C (classless routing ignores it)
Address in binary (| = prefix boundary)
11000000.10101000.00001010.00|100101
Mask in binary
11111111.11111111.11111111.11000000
Hexadecimal
0xC0A80A25 · C0.A8.0A.25
32-bit integer
3232238117
Reverse DNS (PTR) name
37.10.168.192.in-addr.arpa
IPv4-mapped IPv6
::ffff:192.168.10.37

4 subnets of /28

SubnetFirst hostLast hostBroadcastUsable hosts
192.168.10.0/28192.168.10.1192.168.10.14192.168.10.1514
192.168.10.16/28192.168.10.17192.168.10.30192.168.10.3114
192.168.10.32/28192.168.10.33192.168.10.46192.168.10.4714
192.168.10.48/28192.168.10.49192.168.10.62192.168.10.6314
  • 192.168.10.37 is a host inside the network 192.168.10.0/26.
  • Calculated locally; nothing is sent or probed on the network.
  • Usable hosts exclude the network and broadcast addresses, except /31 (RFC 3021) and /32.

Steps to use Subnet Calculator (IPv4 & IPv6)

Type an address with a prefix (10.0.0.5/24), a dotted mask (10.0.0.5 255.255.255.0) or an IPv6 prefix. Results update as you type; choose a longer prefix to list the subnets and download them as CSV.

How Subnet Calculator (IPv4 & IPv6) processes your input

The prefix becomes a bit mask; the network address is the address AND the mask, the broadcast is the network OR the inverted mask. IPv6 values are handled as 128-bit integers and printed in RFC 5952 compressed form. Binary, hexadecimal, integer and reverse-DNS forms are derived from the same value.

Subnet Calculator (IPv4 & IPv6): worked example

192.168.10.37/26 gives network 192.168.10.0, broadcast 192.168.10.63, hosts .1 to .62 and 62 usable addresses; splitting into /28 lists four subnets.

What a subnet calculator tells you

An IP network is described by an address and a prefix length, such as 192.168.10.0/26. The prefix says how many leading bits identify the network; the remaining bits number the hosts inside it. From that single line you can derive everything a router, firewall or DHCP server needs: the network address, the broadcast address, the first and last usable host, the subnet mask, the wildcard mask and the number of usable addresses.

This calculator accepts the forms you meet in practice: CIDR notation (10.0.0.5/24), an address followed by a dotted mask (10.0.0.5 255.255.255.0), and IPv6 prefixes such as 2001:db8:abcd::/48. It also shows the address in binary with a bar at the prefix boundary, which is the quickest way to see why two addresses do or do not share a subnet.

The arithmetic behind it

A /26 mask is 26 one-bits followed by six zero-bits: 255.255.255.192. The network address is the IP address AND the mask; the broadcast address sets all host bits to one. The number of addresses is 2 to the power of the host bits, and in IPv4 two of them are reserved.

192.168.10.37/26
address   11000000.10101000.00001010.00|100101
mask      11111111.11111111.11111111.11|000000
network   192.168.10.0      broadcast 192.168.10.63
hosts     192.168.10.1 – 192.168.10.62  (2^6 − 2 = 62)

Two prefixes are exceptions. A /31 has no network or broadcast address on point-to-point links (RFC 3021), so both addresses are usable. A /32 is a single host, used for loopbacks and host routes.

Common IPv4 prefixes

PrefixMaskUsable hostsTypical use
/30255.255.255.2522Older point-to-point links
/29255.255.255.2486Small public IP blocks from an ISP
/27255.255.255.22430Small VLANs, DMZs
/24255.255.255.0254The classic office LAN
/22255.255.252.01,022Large Wi-Fi or campus VLANs
/16255.255.0.065,534Cloud VPCs and site supernets

The subnet mask calculator lists every prefix from /0 to /32 and finds the smallest mask for a given number of hosts.

Splitting a network

Choose a longer prefix to cut the network into equal parts: a /24 split into /26 gives four subnets of 62 hosts. The list shows each subnet with its host range and broadcast address, and the CSV holds up to 4,096 rows for spreadsheets or IP address management tools.

When subnets need different sizes — 120 users here, 25 servers there, a two-address router link — equal splitting wastes space. Use the VLSM calculator instead; it assigns each subnet the smallest prefix that fits and keeps them aligned.

IPv6 is different

IPv6 has no broadcast address and no reserved host addresses, and every LAN segment should be a /64 because stateless address autoconfiguration (SLAAC) depends on it. Providers usually assign a /48 to a site or a /56 to a home, which leaves 65,536 or 256 /64 networks. The calculator prints IPv6 in the compressed form defined by RFC 5952, the expanded form, the number of /64s and the nibble-aligned reverse DNS zone. To lay out many sites, see the IPv6 subnet planner.

Questions about Subnet Calculator (IPv4 & IPv6)

Why does a /24 have 254 usable hosts and not 256?

The first address identifies the network and the last is the broadcast address, so 256 − 2 = 254 can be given to devices.

What is a wildcard mask?

The bitwise inverse of the subnet mask (0.0.0.255 for a /24). Cisco access lists and OSPF network statements use it to say which bits must match.

Do historic classes A, B and C still matter?

No. Routing has been classless (CIDR) since 1993. The class is shown only because some exams and old documentation still refer to it.

Is my address sent anywhere?

No. The calculation runs in your browser and nothing is probed on the network.

Is Subnet Calculator (IPv4 & IPv6) free, and do I need an account?

Yes. This tool is free to use in your browser without an account. Processing takes place on your device.

What are the limits and what should I check?

Up to 4,096 subnets per CSV and 256 shown on screen. /31 follows RFC 3021 (two usable addresses) and /32 is a single host. Address types follow the IANA special-purpose registries. Everything is calculated in your browser; nothing is sent or probed on the network. Review the result before using it in your work.

Is my input sent to a server?

Your input is processed in your browser and is not uploaded by this tool. Files and pasted text are cleared when the page is refreshed. Normal website requests are still required to load the page and its libraries. Read the privacy explanation.