Parse IP range

Expand a CIDR range or subnet into its network details and address range.

Input: TextResult: Text

Text input

Run to see the result

Examples

Calculate a small IPv4 range without generating a long address list

Distinguish the eight total addresses from six conventional host addresses in this particular /29 subnet.

Input

192.0.2.0/29

Expected checks

Case-insensitive
Contains "192.0.2.0"
Contains "192.0.2.7"
Contains "255.255.255.248"
Include network info
On
Enumerate IP addresses
Off
Allow large queries
Off
invalid IPv4 address error

Input

444.1.1.1/30

Expected rejection

Message contains
Block out of range.
Include network info
On
Enumerate IP addresses
On
Allow large queries
Off
invalid IPv6 address error

Input

2404:6800:4001:/12

Expected rejection

Message contains
Invalid input.

Enter either a CIDR range (e.g. 10.0.0.0/24) or a hyphenated range (e.g. 10.0.0.0 - 10.0.1.0). IPv6 also supported.
Include network info
On
Enumerate IP addresses
On
Allow large queries
Off
IPv4 subnet out of range error

Input

10.1.1.1/34

Expected rejection

Message contains
IPv4 CIDR must be less than 32
Include network info
On
Enumerate IP addresses
On
Allow large queries
Off
IPv6 subnet out of range error

Input

2404:6800:4001::/129

Expected rejection

Message contains
IPv6 CIDR must be less than 128
Include network info
On
Enumerate IP addresses
On
Allow large queries
Off
Parse IPv4 CIDR

Input

10.0.0.0/30

Expected answer

Network: 10.0.0.0
CIDR: 30
Mask: 255.255.255.252
Range: 10.0.0.0 - 10.0.0.3
Total addresses in range: 4

10.0.0.0
10.0.0.1
10.0.0.2
10.0.0.3
Include network info
On
Enumerate IP addresses
On
Allow large queries
Off
Parse IPv4 hyphenated

Input

10.0.0.0 - 10.0.0.3

Expected answer

Minimum subnet required to hold this range:
	Network: 10.0.0.0
	CIDR: 30
	Mask: 255.255.255.252
	Subnet range: 10.0.0.0 - 10.0.0.3
	Total addresses in subnet: 4

Range: 10.0.0.0 - 10.0.0.3
Total addresses in range: 4

10.0.0.0
10.0.0.1
10.0.0.2
10.0.0.3
Include network info
On
Enumerate IP addresses
On
Allow large queries
Off
Parse IPv4 list

Input

10.0.0.8
10.0.0.5/30
10.0.0.1
10.0.0.3

Expected answer

Minimum subnet required to hold this range:
	Network: 10.0.0.0
	CIDR: 28
	Mask: 255.255.255.240
	Subnet range: 10.0.0.0 - 10.0.0.15
	Total addresses in subnet: 16

Range: 10.0.0.1 - 10.0.0.8
Total addresses in range: 8

10.0.0.1
10.0.0.2
10.0.0.3
10.0.0.4
10.0.0.5
10.0.0.6
10.0.0.7
10.0.0.8
Include network info
On
Enumerate IP addresses
On
Allow large queries
Off
Parse IPv6 CIDR - collapsed

Input

2404:6800:4001::/48

Expected answer

Network
2404:6800:4001:0000:0000:0000:0000:0000
Shorthand
2404:6800:4001::
CIDR
48
Mask
ffff:ffff:ffff:0000:0000:0000:0000:0000
Range
2404:6800:4001:0000:0000:0000:0000:0000 - 2404:6800:4001:ffff:ffff:ffff:ffff:ffff
Total addresses in range
1.2089258196146292e+24
Include network info
On
Enumerate IP addresses
On
Allow large queries
Off
Parse IPv6 CIDR - full

Input

2404:6800:4001:0000:0000:0000:0000:0000/48

Expected answer

Network
2404:6800:4001:0000:0000:0000:0000:0000
Shorthand
2404:6800:4001::
CIDR
48
Mask
ffff:ffff:ffff:0000:0000:0000:0000:0000
Range
2404:6800:4001:0000:0000:0000:0000:0000 - 2404:6800:4001:ffff:ffff:ffff:ffff:ffff
Total addresses in range
1.2089258196146292e+24
Include network info
On
Enumerate IP addresses
On
Allow large queries
Off

IPv6 is supported but will not be enumerated.

Format reference: Parse IP range background and specification

Related tools

Browse networking tools