Skip to main content
Examples
Mode

IPv4 or IPv6, with a prefix, a subnet mask or a wildcard mask.

254 usable hosts
192.168.1.0/24
Usable host range
192.168.1.1 to 192.168.1.254
Broadcast address
192.168.1.255
Total addresses
256
Address type
Not globalPrivate-Use, 192.168.0.0/16
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Range
192.168.1.0-192.168.1.255
Network and wildcard
192.168.1.0 0.0.0.255
Network details (8)
Address
192.168.1.10
Network address
192.168.1.0
Usable hosts
254
Prefix length
/24
Cloud usable addresses
AWS 251, Azure 251, Google Cloud 252
Class (historical)
C
Registry entry
Private-Use (RFC 1918), 192.168.0.0/16
Globally reachable
No
Binary, hex and reverse DNS (7)
Address in binary
11000000.10101000.00000001|00001010
Mask in binary
11111111.11111111.11111111|00000000
Hex
0xc0a8010a
Integer
3232235786
Reverse DNS name
10.1.168.192.in-addr.arpa
Reverse DNS zone
1.168.192.in-addr.arpa
IPv4-mapped IPv6
::ffff:192.168.1.10

Note

  • 192.168.1.10 is a host address in 192.168.1.0/24.

What Is a Subnet Calculator?

The subnet calculator works out the network address, broadcast address, usable host range, subnet mask, wildcard mask and host count of an IPv4 or IPv6 block. Enter an address with a prefix length, a subnet mask or a wildcard mask. Other modes split a block into equal subnets, plan VLSM subnets from host counts, convert an address range to CIDR blocks, and merge a list of blocks. Each address is classified with the IANA special-purpose address registries.

How to Use the Subnet Calculator

  1. Enter an address with a prefix length (192.168.1.10/24), a subnet mask (192.168.1.10 255.255.255.0) or a wildcard mask (192.168.1.10 0.0.0.255).
  2. Read the network, broadcast and host details, which update as you type.
  3. Switch to Split, VLSM, Range to CIDR or Aggregate to divide a block, plan subnets, or merge blocks.
  4. Copy any value, or copy a link that reopens the same calculation.

How It Works

A prefix length is the number of leftmost bits that make up the network part of an address. The calculator clears the remaining host bits to get the network address and sets them to get the last address, so a /n block holds 2 to the power of (32 - n) IPv4 addresses or (128 - n) IPv6 addresses. In CIDR notation the prefix length follows the address after a slash.

In IPv4 the network address and the broadcast address of a block are not assigned to hosts (RFC 1122), so a /24 has 254 usable addresses. A /31 is the exception: on a point-to-point link both of its addresses are host addresses (RFC 3021). A /32 is a single address.

IPv6 has no broadcast address; multicast does that job (RFC 4291). The first address of a prefix is the Subnet-Router anycast address, except on a /127 link between routers, where routers disable it (RFC 6164).

IPv6 results use the RFC 5952 text form: lowercase hex digits, no leading zeros, and "::" in place of the longest run of zero groups. When two runs are equally long, the first one is shortened, and "::" never stands for a single zero group. IPv4-mapped addresses use mixed notation, as in ::ffff:192.0.2.1.

Address types come from the IANA IPv4 and IPv6 Special-Purpose Address Registries, last updated 2025-10-09. The most specific entry that contains the address is shown. Globally reachable says whether a packet sent to the address may be forwarded beyond an administrative domain. The registries do not promise that a listed range is routable anywhere.

Addresses with no special-purpose entry fall back to the IANA address space registries: 224.0.0.0/4 is IPv4 multicast, ff00::/8 is IPv6 multicast, 2000::/3 is IPv6 global unicast, and fec0::/10 is the deprecated site-local prefix.

The historical class comes from the first bits of an IPv4 address: 0 for class A, 10 for class B and 110 for class C (RFC 791), 1110 for class D multicast and 1111 for class E (RFC 1112). Reverse DNS names list the IPv4 octets in reverse order under in-addr.arpa (RFC 1035) and the IPv6 nibbles in reverse order under ip6.arpa (RFC 3596).

IPv4 Prefix Reference, /0 to /32

PrefixSubnet maskWildcard maskAddressesUsable hosts
/00.0.0.0255.255.255.2554,294,967,2964,294,967,294
/1128.0.0.0127.255.255.2552,147,483,6482,147,483,646
/2192.0.0.063.255.255.2551,073,741,8241,073,741,822
/3224.0.0.031.255.255.255536,870,912536,870,910
/4240.0.0.015.255.255.255268,435,456268,435,454
/5248.0.0.07.255.255.255134,217,728134,217,726
/6252.0.0.03.255.255.25567,108,86467,108,862
/7254.0.0.01.255.255.25533,554,43233,554,430
/8255.0.0.00.255.255.25516,777,21616,777,214
/9255.128.0.00.127.255.2558,388,6088,388,606
/10255.192.0.00.63.255.2554,194,3044,194,302
/11255.224.0.00.31.255.2552,097,1522,097,150
/12255.240.0.00.15.255.2551,048,5761,048,574
/13255.248.0.00.7.255.255524,288524,286
/14255.252.0.00.3.255.255262,144262,142
/15255.254.0.00.1.255.255131,072131,070
/16255.255.0.00.0.255.25565,53665,534
/17255.255.128.00.0.127.25532,76832,766
/18255.255.192.00.0.63.25516,38416,382
/19255.255.224.00.0.31.2558,1928,190
/20255.255.240.00.0.15.2554,0964,094
/21255.255.248.00.0.7.2552,0482,046
/22255.255.252.00.0.3.2551,0241,022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122
/32255.255.255.2550.0.0.011
IPv4 special-purpose addresses (26)
BlockNameRFCGlobally reachable
0.0.0.0/8"This network"RFC 791, Section 3.2No
0.0.0.0/32"This host on this network"RFC 1122, Section 3.2.1.3No
10.0.0.0/8Private-UseRFC 1918No
100.64.0.0/10Shared Address SpaceRFC 6598No
127.0.0.0/8LoopbackRFC 1122, Section 3.2.1.3No
169.254.0.0/16Link LocalRFC 3927No
172.16.0.0/12Private-UseRFC 1918No
192.0.0.0/24IETF Protocol AssignmentsRFC 6890, Section 2.1No
192.0.0.0/29IPv4 Service Continuity PrefixRFC 7335No
192.0.0.8/32IPv4 dummy addressRFC 7600No
192.0.0.9/32Port Control Protocol AnycastRFC 7723Yes
192.0.0.10/32Traversal Using Relays around NAT AnycastRFC 8155Yes
192.0.0.170/32NAT64/DNS64 DiscoveryRFC 8880; RFC 7050, Section 2.2No
192.0.0.171/32NAT64/DNS64 DiscoveryRFC 8880; RFC 7050, Section 2.2No
192.0.2.0/24Documentation (TEST-NET-1)RFC 5737No
192.31.196.0/24AS112-v4RFC 7535Yes
192.52.193.0/24AMTRFC 7450Yes
192.88.99.0/24Deprecated (6to4 Relay Anycast)RFC 7526Not listed (terminated 2015-03)
192.88.99.2/326a44-relay anycast addressRFC 6751No
192.168.0.0/16Private-UseRFC 1918No
192.175.48.0/24Direct Delegation AS112 ServiceRFC 7534Yes
198.18.0.0/15BenchmarkingRFC 2544No
198.51.100.0/24Documentation (TEST-NET-2)RFC 5737No
203.0.113.0/24Documentation (TEST-NET-3)RFC 5737No
240.0.0.0/4ReservedRFC 1112, Section 4No
255.255.255.255/32Limited BroadcastRFC 8190; RFC 919, Section 7No
IPv6 special-purpose addresses (25)
BlockNameRFCGlobally reachable
::1/128Loopback AddressRFC 4291No
::/128Unspecified AddressRFC 4291No
::ffff:0:0/96IPv4-mapped AddressRFC 4291No
64:ff9b::/96IPv4-IPv6 Translat.RFC 6052Yes
64:ff9b:1::/48IPv4-IPv6 Translat.RFC 8215No
100::/64Discard-Only Address BlockRFC 6666No
100:0:0:1::/64Dummy IPv6 PrefixRFC 9780No
2001::/23IETF Protocol AssignmentsRFC 2928No
2001::/32TEREDORFC 4380; RFC 8190N/A
2001:1::1/128Port Control Protocol AnycastRFC 7723Yes
2001:1::2/128Traversal Using Relays around NAT AnycastRFC 8155Yes
2001:1::3/128DNS-SD Service Registration Protocol AnycastRFC 9665Yes
2001:2::/48BenchmarkingRFC 5180; RFC Errata 1752No
2001:3::/32AMTRFC 7450Yes
2001:4:112::/48AS112-v6RFC 7535Yes
2001:10::/28Deprecated (previously ORCHID)RFC 4843Not listed (terminated 2014-03)
2001:20::/28ORCHIDv2RFC 7343Yes
2001:30::/28Drone Remote ID Protocol Entity Tags (DETs) PrefixRFC 9374Yes
2001:db8::/32DocumentationRFC 3849No
2002::/166to4RFC 3056N/A
2620:4f:8000::/48Direct Delegation AS112 ServiceRFC 7534Yes
3fff::/20DocumentationRFC 9637No
5f00::/16Segment Routing (SRv6) SIDsRFC 9602No
fc00::/7Unique-LocalRFC 4193; RFC 8190No
fe80::/10Link-Local UnicastRFC 4291No

Standards

Scope

What It Checks

  • +Calculates the network, broadcast, usable range, masks and host counts of IPv4 and IPv6 blocks.
  • +Handles /31 and /32 in IPv4, and /127 and /128 in IPv6.
  • +Splits a block, plans VLSM subnets, converts ranges to CIDR blocks, and merges CIDR lists.
  • +Classifies addresses with the IANA special-purpose address registries.
  • +Explains why an input is rejected, such as a leading zero or a mask that is not contiguous.

What It Does Not Check

  • -It does not check whether an address is in use or reachable.
  • -It does not accept non-contiguous wildcard masks.
  • -It does not plan VLSM subnets for IPv6.
  • -It does not look up who holds an address.

Defensive Use

RFC 1918 recommends packet and routing filters at the edge of an enterprise network so that private addresses do not leak. The IANA registries mark each special-purpose range as globally reachable or not, which shows the ranges those edge filters should cover. Aggregate mode shows whether a merged allowlist admits addresses beyond the ones you listed.

Frequently Asked Questions

What is a Subnet Calculator?→

The subnet calculator works out the network address, broadcast address, usable host range, subnet mask, wildcard mask and host count of an IPv4 or IPv6 block. Enter an address with a prefix length, a subnet mask or a wildcard mask. Other modes split a block into equal subnets, plan VLSM subnets from host counts, convert an address range to CIDR blocks, and merge a list of blocks. Each address is classified with the IANA special-purpose address registries.

What is the Subnet Calculator used for?→

Planning subnets for an office network or a cloud VPC, checking which addresses a firewall rule or allowlist covers, and confirming whether an address is private, reserved for documentation or otherwise special-purpose.

Is my data sent anywhere?→

No. The Subnet Calculator runs in your browser. What you enter stays on this page and is not sent to ImmunitySec or anyone else.

How is the Subnet Calculator used defensively?→

RFC 1918 recommends packet and routing filters at the edge of an enterprise network so that private addresses do not leak. The IANA registries mark each special-purpose range as globally reachable or not, which shows the ranges those edge filters should cover. Aggregate mode shows whether a merged allowlist admits addresses beyond the ones you listed.

How many usable hosts are in a /24?→

254. A /24 holds 256 addresses, and its first address (the network address) and last address (the broadcast address) are not assigned to hosts (RFC 1122).

Why does a /31 have two usable addresses?→

RFC 3021 says that on a point-to-point link with a 31-bit mask, both addresses are host addresses. The link has no directed broadcast address and uses the limited broadcast address for broadcast traffic.

What is a wildcard mask?→

A wildcard mask, also called an inverse mask, is the bitwise opposite of a subnet mask. In Cisco access lists, each 0 bit of a wildcard mask must match exactly and each 1 bit is ignored. The wildcard mask for 255.255.255.0 is 0.0.0.255.

Does IPv6 have a broadcast address?→

No. RFC 4291 states that IPv6 has no broadcast addresses and that multicast addresses take over their function.

Why use a /127 on links between routers?→

RFC 6164 recommends 127-bit prefixes on inter-router point-to-point links, for security and other reasons. Routers must disable Subnet-Router anycast on these links, so both addresses are usable.

Which IPv4 ranges are private?→

RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for private networks. RFC 6598 sets aside 100.64.0.0/10 as shared address space. The IANA registry marks all four as not globally reachable.

Why do cloud subnets have fewer usable addresses?→

Cloud providers keep some addresses of every subnet for themselves. AWS and Azure reserve the first four addresses and the last address of each subnet. Google Cloud uses the first two and last two addresses of each primary IPv4 range.

How is the short form of an IPv6 address chosen?→

RFC 5952 sets one text form: leading zeros are dropped, hex letters are lowercase, and "::" replaces the longest run of zero groups. When two runs are equally long, the first is shortened, and "::" never stands for a single zero group.