Subnet Mask Inverter
Inverting Subnet Mask Tutorial
With this tool, we can make inversion of dotted decimal subnet mask. It is easy to invert subnet mask.
For example we want to invert subnet mask: 255.255.255.0. First we need to convert it into binary format:
255.255.255.0 = 11111111.11111111.1111111.0000000
From above binary, then we create the inversion. First, we change 1 to 0 and 0 to 1. So we get:
binary inversion = 00000000.00000000.0000000.1111111
We can convert above binary into decimal dotted IP Address: 0.0.0.255
Subnet Cheat Sheet
|   |
Netmask |
Inverse mask |
# of Class C subnets |
# of IPs |
# of Hosts |
| /32 |
255.255.255.255 |
0.0.0.0 |
  |
1 |
1 |
| /30 |
255.255.255.252 |
0.0.0.3 |
64 |
4 |
2 |
| /29 |
255.255.255.248 |
0.0.0.7 |
32 |
8 |
6 |
| /28 |
255.255.255.240 |
0.0.0.15 |
16 |
16 |
14 |
| /27 |
255.255.255.224 |
0.0.0.31 |
8 |
32 |
30 |
| /26 |
255.255.255.192 |
0.0.0.63 |
4 |
64 |
62 |
| /25 |
255.255.255.128 |
0.0.0.127 |
2 |
128 |
126 |
| /24 |
255.255.255.0 |
0.0.0.255 |
  |
256 |
254 |
| /23 |
255.255.254.0 |
0.0.1.255 |
128 (2 Class C) |
512 |
510 |
| /22 |
255.255.252.0 |
0.0.3.255 |
64 (4 Class C) |
1024 |
1022 |
| /21 |
255.255.248.0 |
0.0.7.255 |
32 (8 Class C) |
2048 |
2046 |
| /20 |
255.255.240.0 |
0.0.15.255 |
16 (16 Class C) |
4096 |
4094 |
| /19 |
255.255.224.0 |
0.0.31.255 |
8 (32 Class C) |
8192 |
8190 |
| /18 |
255.255.192.0 |
0.0.63.255 |
4 (64 Class C) |
16384 |
16382 |
| /17 |
255.255.128.0 |
0.0.127.255 |
2 (128 Class C) |
32768 |
32766 |
| /16 |
255.255.0.0 |
0.0.255.255 |
(256 Class C) |
65536 |
65534 |
| /8 |
255.0.0.0 |
0.255.255.255 |
  |
16777216 |
16777214 |