What is a subnet IP list generator?
A subnet calculator tells you the network address, the broadcast address and how many hosts a subnet has. Sometimes you need more: the actual list of addresses. This tool takes a network like 192.168.1.0/28 and writes out every address in it, from the first to the last, in a list you can copy or save.
It is the quick way to plan a DHCP scope, fill an inventory sheet, write firewall entries, or give a script a list of hosts to test, without typing the addresses one by one.
How to use the Subnet IP List Generator
Type any address from the subnet into IP Address, then set the Subnet Mask or drag the CIDR slider. You can also paste a network like 10.0.0.0/24 into the IP Address box and both fields fill in. You don't need the exact network address. If you type 192.168.1.77 with /24, the list starts from 192.168.1.0/24 and the page tells you so.
By default the list holds only the usable addresses. Tick Include network address or Include broadcast address to add them. Format sets how the list is written: one per line, comma separated or space separated.
The list appears below, with the network, the first and last address listed, and how many addresses there are. From then on it follows your changes, so you can change the mask or tick an option and watch the list update. If a box has a problem, a red message under it says what to fix.
Copy puts the whole list on your clipboard and Download saves it as a text file. Clear All puts everything back to the starting values and hides the list.
Common slip-ups
- "That would list … addresses". The page lists up to 65,536 addresses at a time, which is a
/16. Use a longer mask. - The first and last address are missing. That is on purpose. They are the network and broadcast addresses. Tick the options to include them.
- Not a valid subnet mask. A mask is a block of 1s followed by 0s, such as
255.255.255.0. Something like255.0.255.0is not a mask.
Example: 192.168.1.0/29
A /29 has 8 addresses. The first is the network address, the last is the broadcast address, and the 6 in between are usable:
| IP Address | Role | In the default list? |
|---|---|---|
| 192.168.1.0 | Network address | No, tick the option to include it |
| 192.168.1.1 | Usable host | Yes |
| 192.168.1.2 | Usable host | Yes |
| 192.168.1.3 | Usable host | Yes |
| 192.168.1.4 | Usable host | Yes |
| 192.168.1.5 | Usable host | Yes |
| 192.168.1.6 | Usable host | Yes |
| 192.168.1.7 | Broadcast address | No, tick the option to include it |
With the default options you get 6 addresses, 192.168.1.1 to 192.168.1.6. With both boxes ticked you get all 8.
How many addresses will I get?
The list length depends on the mask. A shorter mask means a bigger subnet and a longer list.
| Prefix | Subnet mask | Total addresses | Addresses in the default list |
|---|---|---|---|
| /24 | 255.255.255.0 | 256 | 254 |
| /25 | 255.255.255.128 | 128 | 126 |
| /26 | 255.255.255.192 | 64 | 62 |
| /27 | 255.255.255.224 | 32 | 30 |
| /28 | 255.255.255.240 | 16 | 14 |
| /29 | 255.255.255.248 | 8 | 6 |
| /30 | 255.255.255.252 | 4 | 2 |
| /31 | 255.255.255.254 | 2 | 2 |
| /32 | 255.255.255.255 | 1 | 1 |
A /31 is used on links between two routers (RFC 3021), so both addresses are usable. A /32 is a single host.
When it helps
Use it to plan a DHCP pool or a table of static IPs, to build an inventory or asset sheet with one row per address, to write firewall or ACL entries for every host in a subnet, to give a ping sweep or scan script its targets, and to check your own answers when you practise subnetting.
For the summary of one subnet, use the IPv4 Subnet Calculator. To split a network into smaller subnets first, try the FLSM Calculator or the VLSM Calculator.