CIDR to IP Range Converter: Network, Broadcast and Hosts

Convert CIDR notation to an IP range: network and broadcast address, subnet mask, wildcard mask and usable hosts, plus IPv6 blocks.

Convert CIDR notation into an IP range and back again, with the network address, broadcast address, subnet mask, wildcard mask, usable hosts and the exact CIDR blocks that cover any address range.

Quick answer

CIDR notation such as 192.168.1.0/24 means the first 24 bits identify the network and the remaining 8 bits identify hosts. That gives 256 addresses, from 192.168.1.0 to 192.168.1.255, of which 254 are usable because the network and broadcast addresses are reserved.

CIDR to IP range

IP range to CIDR blocks

IPv6 CIDR block

What the prefix length is doing

A subnet mask is just a prefix length written out in full. /24 is the same as 255.255.255.0, and /16 is 255.255.0.0. The prefix counts the network bits from the left; everything left over is the host part. Double the host bits and you double the addresses, which is why /25 holds 128 addresses and /23 holds 512.

Two prefixes are special. A /31 is a point-to-point link with two usable addresses and no reserved network or broadcast address, standardised in RFC 3021 for inter-router links. A /32 is a single host route pointing at one address. Both are correct answers here, not mistakes.

Turning an address range into CIDR blocks

Firewall rules, cloud security groups and access lists often want a single address range, but most ranges are not a clean CIDR block. A range such as 192.168.1.1 to 192.168.1.6 cannot be written as one prefix, so this tool splits it into the smallest possible set of aligned CIDR blocks that cover exactly that range and nothing else – here /32, /31, /31, /32.

The blocks are aligned because a valid CIDR block must start on a multiple of its own size. That is the whole reason a range expands into several entries, and why a tool that returns one wrong-looking prefix is usually returning a network address that has been silently rounded.

The notation, reserved ranges and special cases on this page follow the IETF standards below. This tool was reviewed and fact-checked on 28 September 2026.

  • RFC 4632, CIDR — the document that replaced classful addressing with the prefix notation used here. rfc-editor.org/rfc/rfc4632
  • RFC 1918, private address space — defines 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16, the ranges this tool labels as private. rfc-editor.org/rfc/rfc1918
  • RFC 3021, /31 on point-to-point links — why a /31 has two usable addresses and no reserved network or broadcast address. rfc-editor.org/rfc/rfc3021
  • RFC 4291, IPv6 addressing architecture — defines the IPv6 address types and the subnet-router anycast address shown for IPv6 blocks. rfc-editor.org/rfc/rfc4291
  • RFC 6890, special-purpose address registry — the IANA registry the address-type labels are checked against. rfc-editor.org/rfc/rfc6890
Cite this tool

Afroz Ahmad, “CIDR to IP Range Converter”, afrozahmad.com. https://afrozahmad.com/cidr-to-ip-range-converter/

Suggested citation: CIDR to IP Range Converter, https://afrozahmad.com/cidr-to-ip-range-converter/ (accessed 28 September 2026). (afrozahmad.com), reviewed 28 September 2026.

Reviewed and fact-checked on 28 September 2026.

Primary sources

The notation, reserved ranges and special cases on this page follow the IETF standards below. This tool was reviewed and fact-checked on 28 September 2026.

  • RFC 4632, CIDR — the document that replaced classful addressing with the prefix notation used here. rfc-editor.org/rfc/rfc4632
  • RFC 1918, private address space — defines 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16, the ranges this tool labels as private. rfc-editor.org/rfc/rfc1918
  • RFC 3021, /31 on point-to-point links — why a /31 has two usable addresses and no reserved network or broadcast address. rfc-editor.org/rfc/rfc3021
  • RFC 4291, IPv6 addressing architecture — defines the IPv6 address types and the subnet-router anycast address shown for IPv6 blocks. rfc-editor.org/rfc/rfc4291
  • RFC 6890, special-purpose address registry — the IANA registry the address-type labels are checked against. rfc-editor.org/rfc/rfc6890

What does /24 mean in CIDR notation?

The /24 means the first 24 bits of the address are the network portion. In dotted-decimal terms that is the mask 255.255.255.0, giving 256 addresses, of which 254 are usable hosts after the network and broadcast addresses are removed.

How many usable hosts are in a /24?

254. A /24 contains 256 addresses, and on a normal subnet the lowest address is the network address and the highest is the broadcast address, leaving 254 assignable to devices.

What is the difference between a subnet mask and a wildcard mask?

A subnet mask has ones in the network bits and zeros in the host bits. A wildcard mask is the exact inverse: zeros where the mask has ones. /24 gives 255.255.255.0 as the mask and 0.0.0.255 as the wildcard, which is what Cisco access lists expect.

Can I convert an IP range back to CIDR?

Yes. Enter the first and last address above and the tool returns the smallest set of aligned CIDR blocks that covers exactly that range, together with the address count for each block. Most ranges need more than one block.

Does this tool support IPv6?

Yes. IPv6 mode takes a CIDR block such as 2001:db8::/48 and returns the network in expanded and compressed form, the first and last address, the number of addresses, the host bits and the address type. A warning is shown if the prefix is longer than /64, because that breaks SLAAC.