IP subnet calculator
Type an address with its prefix or mask to see the network, its usable range and masks. Split it into smaller subnets, or look up any prefix in the reference tables.
Network149.2.18.64/26
Usable hosts62
Subnet mask255.255.255.192
Addresses64
- Network address
149.2.18.64- Broadcast address
149.2.18.127- First usable
149.2.18.65- Last usable
149.2.18.126- Usable hosts
- 62 (64 less the network and broadcast addresses)
- Subnet mask
255.255.255.192- Wildcard mask
0.0.0.63(Cisco ACLs, OSPF)- Prefix length
- /26
- Type
- Public public
- Old class
- B (default /16)
- As numbers
- Hex
95021240· Integer2499940928to2499940991 - Reverse DNS zone
18.2.149.in-addr.arpa
Smaller than a /24: the provider delegates it inside the /24 zone (RFC 2317), or sets each PTR record for you.
Binary
| Binary (network bits bold, host bits grey) | Dotted | |
|---|---|---|
| Address | 10010101.00000010.00010010.01000000 | 149.2.18.64 |
| Subnet mask | 11111111.11111111.11111111.11000000 | 255.255.255.192 |
| Network | 10010101.00000010.00010010.01000000 | 149.2.18.64 |
| Broadcast | 10010101.00000010.00010010.01111111 | 149.2.18.127 |
Split into smaller subnets
149.2.18.64/26 makes 64 subnets of /32.
| # | Subnet | Usable hosts range | Broadcast | Hosts |
|---|---|---|---|---|
| 1 | 149.2.18.64/32 | 149.2.18.64 to 149.2.18.64 | — | 1 |
| 2 | 149.2.18.65/32 | 149.2.18.65 to 149.2.18.65 | — | 1 |
| 3 | 149.2.18.66/32 | 149.2.18.66 to 149.2.18.66 | — | 1 |
| 4 | 149.2.18.67/32 | 149.2.18.67 to 149.2.18.67 | — | 1 |
| 5 | 149.2.18.68/32 | 149.2.18.68 to 149.2.18.68 | — | 1 |
| 6 | 149.2.18.69/32 | 149.2.18.69 to 149.2.18.69 | — | 1 |
| 7 | 149.2.18.70/32 | 149.2.18.70 to 149.2.18.70 | — | 1 |
| 8 | 149.2.18.71/32 | 149.2.18.71 to 149.2.18.71 | — | 1 |
| 9 | 149.2.18.72/32 | 149.2.18.72 to 149.2.18.72 | — | 1 |
| 10 | 149.2.18.73/32 | 149.2.18.73 to 149.2.18.73 | — | 1 |
| 11 | 149.2.18.74/32 | 149.2.18.74 to 149.2.18.74 | — | 1 |
| 12 | 149.2.18.75/32 | 149.2.18.75 to 149.2.18.75 | — | 1 |
| 13 | 149.2.18.76/32 | 149.2.18.76 to 149.2.18.76 | — | 1 |
| 14 | 149.2.18.77/32 | 149.2.18.77 to 149.2.18.77 | — | 1 |
| 15 | 149.2.18.78/32 | 149.2.18.78 to 149.2.18.78 | — | 1 |
| 16 | 149.2.18.79/32 | 149.2.18.79 to 149.2.18.79 | — | 1 |
| 17 | 149.2.18.80/32 | 149.2.18.80 to 149.2.18.80 | — | 1 |
| 18 | 149.2.18.81/32 | 149.2.18.81 to 149.2.18.81 | — | 1 |
| 19 | 149.2.18.82/32 | 149.2.18.82 to 149.2.18.82 | — | 1 |
| 20 | 149.2.18.83/32 | 149.2.18.83 to 149.2.18.83 | — | 1 |
| 21 | 149.2.18.84/32 | 149.2.18.84 to 149.2.18.84 | — | 1 |
| 22 | 149.2.18.85/32 | 149.2.18.85 to 149.2.18.85 | — | 1 |
| 23 | 149.2.18.86/32 | 149.2.18.86 to 149.2.18.86 | — | 1 |
| 24 | 149.2.18.87/32 | 149.2.18.87 to 149.2.18.87 | — | 1 |
| 25 | 149.2.18.88/32 | 149.2.18.88 to 149.2.18.88 | — | 1 |
| 26 | 149.2.18.89/32 | 149.2.18.89 to 149.2.18.89 | — | 1 |
| 27 | 149.2.18.90/32 | 149.2.18.90 to 149.2.18.90 | — | 1 |
| 28 | 149.2.18.91/32 | 149.2.18.91 to 149.2.18.91 | — | 1 |
| 29 | 149.2.18.92/32 | 149.2.18.92 to 149.2.18.92 | — | 1 |
| 30 | 149.2.18.93/32 | 149.2.18.93 to 149.2.18.93 | — | 1 |
| 31 | 149.2.18.94/32 | 149.2.18.94 to 149.2.18.94 | — | 1 |
| 32 | 149.2.18.95/32 | 149.2.18.95 to 149.2.18.95 | — | 1 |
| 33 | 149.2.18.96/32 | 149.2.18.96 to 149.2.18.96 | — | 1 |
| 34 | 149.2.18.97/32 | 149.2.18.97 to 149.2.18.97 | — | 1 |
| 35 | 149.2.18.98/32 | 149.2.18.98 to 149.2.18.98 | — | 1 |
| 36 | 149.2.18.99/32 | 149.2.18.99 to 149.2.18.99 | — | 1 |
| 37 | 149.2.18.100/32 | 149.2.18.100 to 149.2.18.100 | — | 1 |
| 38 | 149.2.18.101/32 | 149.2.18.101 to 149.2.18.101 | — | 1 |
| 39 | 149.2.18.102/32 | 149.2.18.102 to 149.2.18.102 | — | 1 |
| 40 | 149.2.18.103/32 | 149.2.18.103 to 149.2.18.103 | — | 1 |
| 41 | 149.2.18.104/32 | 149.2.18.104 to 149.2.18.104 | — | 1 |
| 42 | 149.2.18.105/32 | 149.2.18.105 to 149.2.18.105 | — | 1 |
| 43 | 149.2.18.106/32 | 149.2.18.106 to 149.2.18.106 | — | 1 |
| 44 | 149.2.18.107/32 | 149.2.18.107 to 149.2.18.107 | — | 1 |
| 45 | 149.2.18.108/32 | 149.2.18.108 to 149.2.18.108 | — | 1 |
| 46 | 149.2.18.109/32 | 149.2.18.109 to 149.2.18.109 | — | 1 |
| 47 | 149.2.18.110/32 | 149.2.18.110 to 149.2.18.110 | — | 1 |
| 48 | 149.2.18.111/32 | 149.2.18.111 to 149.2.18.111 | — | 1 |
| 49 | 149.2.18.112/32 | 149.2.18.112 to 149.2.18.112 | — | 1 |
| 50 | 149.2.18.113/32 | 149.2.18.113 to 149.2.18.113 | — | 1 |
| 51 | 149.2.18.114/32 | 149.2.18.114 to 149.2.18.114 | — | 1 |
| 52 | 149.2.18.115/32 | 149.2.18.115 to 149.2.18.115 | — | 1 |
| 53 | 149.2.18.116/32 | 149.2.18.116 to 149.2.18.116 | — | 1 |
| 54 | 149.2.18.117/32 | 149.2.18.117 to 149.2.18.117 | — | 1 |
| 55 | 149.2.18.118/32 | 149.2.18.118 to 149.2.18.118 | — | 1 |
| 56 | 149.2.18.119/32 | 149.2.18.119 to 149.2.18.119 | — | 1 |
| 57 | 149.2.18.120/32 | 149.2.18.120 to 149.2.18.120 | — | 1 |
| 58 | 149.2.18.121/32 | 149.2.18.121 to 149.2.18.121 | — | 1 |
| 59 | 149.2.18.122/32 | 149.2.18.122 to 149.2.18.122 | — | 1 |
| 60 | 149.2.18.123/32 | 149.2.18.123 to 149.2.18.123 | — | 1 |
| 61 | 149.2.18.124/32 | 149.2.18.124 to 149.2.18.124 | — | 1 |
| 62 | 149.2.18.125/32 | 149.2.18.125 to 149.2.18.125 | — | 1 |
| 63 | 149.2.18.126/32 | 149.2.18.126 to 149.2.18.126 | — | 1 |
| 64 | 149.2.18.127/32 | 149.2.18.127 to 149.2.18.127 | — | 1 |
IPv4 CIDR reference (/0 to /32)
| Prefix | Subnet mask | Wildcard | Addresses | Usable hosts | Size | Typical use |
|---|---|---|---|---|---|---|
| /0 | 0.0.0.0 | 255.255.255.255 | 4,294,967,296 | 4,294,967,294 | 16,777,216 × /24 | |
| /1 | 128.0.0.0 | 127.255.255.255 | 2,147,483,648 | 2,147,483,646 | 8,388,608 × /24 | |
| /2 | 192.0.0.0 | 63.255.255.255 | 1,073,741,824 | 1,073,741,822 | 4,194,304 × /24 | |
| /3 | 224.0.0.0 | 31.255.255.255 | 536,870,912 | 536,870,910 | 2,097,152 × /24 | |
| /4 | 240.0.0.0 | 15.255.255.255 | 268,435,456 | 268,435,454 | 1,048,576 × /24 | |
| /5 | 248.0.0.0 | 7.255.255.255 | 134,217,728 | 134,217,726 | 524,288 × /24 | |
| /6 | 252.0.0.0 | 3.255.255.255 | 67,108,864 | 67,108,862 | 262,144 × /24 | |
| /7 | 254.0.0.0 | 1.255.255.255 | 33,554,432 | 33,554,430 | 131,072 × /24 | |
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 | 65,536 × /24 | Old class A; 10.0.0.0/8 |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 | 32,768 × /24 | |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 | 16,384 × /24 | |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 | 8,192 × /24 | |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 | 4,096 × /24 | 172.16.0.0/12 |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 | 2,048 × /24 | |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 | 1,024 × /24 | |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 | 512 × /24 | |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 | 256 × /24 | Old class B; 192.168.0.0/16 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 | 128 × /24 | |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 | 64 × /24 | |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 | 32 × /24 | |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 | 16 × /24 | |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 | 8 × /24 | |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 | 4 × /24 | Large office or guest Wi-Fi (1,022 hosts) |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 | 2 × /24 | Larger office LAN (510 hosts) |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 | 1 × /24 | Typical office LAN (old class C) |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 | 1/2 of a /24 | Smaller LAN or VLAN |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 | 1/4 of a /24 | Smaller LAN or VLAN |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 | 1/8 of a /24 | Small VLAN, phones, cameras |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 | 1/16 of a /24 | Small VLAN, phones, cameras |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 | 1/32 of a /24 | Small fixed public block (5 usable) |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 | 1/64 of a /24 | Point-to-point (old style) |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 | 1/128 of a /24 | Point-to-point link (RFC 3021) |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 | 1/256 of a /24 | One host |
IPv6 prefix reference
| Prefix | Addresses | /64 LANs | /48 sites | Nibble | Typical use |
|---|---|---|---|---|---|
| /3 | 42,535,295,865,117,307,932,921,825,928,971,026,432 (2^125) | 2,305,843,009,213,693,952 | 35,184,372,088,832 | No | All global unicast (2000::/3) |
| /16 | 5,192,296,858,534,827,628,530,496,329,220,096 (2^112) | 281,474,976,710,656 | 4,294,967,296 | Yes | |
| /20 | 324,518,553,658,426,726,783,156,020,576,256 (2^108) | 17,592,186,044,416 | 268,435,456 | Yes | Large provider allocation (RIPE minimum for some) |
| /29 | 633,825,300,114,114,700,748,351,602,688 (2^99) | 34,359,738,368 | 524,288 | No | RIPE allocation to a provider (often) |
| /32 | 79,228,162,514,264,337,593,543,950,336 (2^96) | 4,294,967,296 | 65,536 | Yes | Provider allocation (RIPE default) |
| /36 | 4,951,760,157,141,521,099,596,496,896 (2^92) | 268,435,456 | 4,096 | Yes | |
| /40 | 309,485,009,821,345,068,724,781,056 (2^88) | 16,777,216 | 256 | Yes | |
| /44 | 19,342,813,113,834,066,795,298,816 (2^84) | 1,048,576 | 16 | Yes | |
| /48 | 1,208,925,819,614,629,174,706,176 (2^80) | 65,536 | 1 | Yes | One site or organisation (RIPE PI / assignment) |
| /52 | 75,557,863,725,914,323,419,136 (2^76) | 4,096 | Yes | ||
| /56 | 4,722,366,482,869,645,213,696 (2^72) | 256 | Yes | Small site or home (common provider assignment) | |
| /60 | 295,147,905,179,352,825,856 (2^68) | 16 | Yes | Some home broadband (16 LANs) | |
| /64 | 18,446,744,073,709,551,616 (2^64) | 1 | Yes | One LAN or VLAN (needed for SLAAC) | |
| /72 | 72,057,594,037,927,936 (2^56) | 1/256 of a /64 | Yes | ||
| /80 | 281,474,976,710,656 (2^48) | 1/65,536 of a /64 | Yes | ||
| /96 | 4,294,967,296 | 1/4,294,967,296 of a /64 | Yes | Embeds an IPv4 address (NAT64) | |
| /112 | 65,536 | 1/281,474,976,710,656 of a /64 | Yes | ||
| /120 | 256 | 1/72,057,594,037,927,936 of a /64 | Yes | ||
| /124 | 16 | 1/1,152,921,504,606,846,976 of a /64 | Yes | ||
| /126 | 4 | 1/4,611,686,018,427,387,904 of a /64 | No | ||
| /127 | 2 | 1/9,223,372,036,854,775,808 of a /64 | No | Point-to-point link (RFC 6164) | |
| /128 | 1 | 1/18,446,744,073,709,551,616 of a /64 | Yes | One host or loopback |
Private and special ranges
IPv4
| Range | Name | What it is |
|---|---|---|
255.255.255.255/32 | Limited broadcast | Every host on the local network |
0.0.0.0/8 | This network | Not routed; 0.0.0.0 means "any address" in settings |
10.0.0.0/8 | Private (RFC 1918) | Office and home networks; not routed on the internet |
100.64.0.0/10 | Shared address space (CGNAT) | Used by providers behind carrier-grade NAT (RFC 6598) |
127.0.0.0/8 | Loopback | This computer |
169.254.0.0/16 | Link-local (APIPA) | Self-assigned when no DHCP server answers |
172.16.0.0/12 | Private (RFC 1918) | Office and home networks; not routed on the internet |
192.0.0.0/24 | IETF protocol assignments | Special uses such as DS-Lite |
192.0.2.0/24 | Documentation (TEST-NET-1) | For examples; never used on a network |
192.88.99.0/24 | 6to4 relay (deprecated) | Formerly anycast for 6to4 |
192.168.0.0/16 | Private (RFC 1918) | Office and home networks; not routed on the internet |
198.18.0.0/15 | Benchmarking | Network equipment testing (RFC 2544) |
198.51.100.0/24 | Documentation (TEST-NET-2) | For examples; never used on a network |
203.0.113.0/24 | Documentation (TEST-NET-3) | For examples; never used on a network |
224.0.0.0/4 | Multicast | One-to-many traffic, such as IPTV and routing protocols |
240.0.0.0/4 | Reserved | Future use; not usable on most systems |
IPv6
| Range | Name | What it is |
|---|---|---|
::/128 | Unspecified | No address; :: means "any address" in settings |
::1/128 | Loopback | This computer |
::ffff:0:0/96 | IPv4-mapped | An IPv4 address written as IPv6 |
64:ff9b::/96 | NAT64 | IPv4 addresses reached through a NAT64 gateway |
100::/64 | Discard only | Traffic sent here is dropped (RFC 6666) |
2001:db8::/32 | Documentation | For examples; never used on a network |
2001::/32 | Teredo | IPv6 tunnelled over IPv4 UDP |
2002::/16 | 6to4 | IPv6 tunnelled over IPv4 (largely retired) |
3fff::/20 | Documentation | For examples (RFC 9637) |
fc00::/7 | Unique local (ULA) | Private IPv6, like RFC 1918; usually fd00::/8 |
fe80::/10 | Link-local | Every IPv6 interface has one; not routed |
ff00::/8 | Multicast | One-to-many traffic; replaces broadcast |
2000::/3 | Global unicast | Public internet addresses |