# How to get extract individual IP addresses from an IP range?

**URL:** <https://community.ipinfo.io/t/how-to-get-extract-individual-ip-addresses-from-an-ip-range/59>\
**Category:** Database Downloads\
**Tags:** database, getting-started, cli\
**Created:** [April 4, 2023, 1:37pm UTC](https://community.ipinfo.io/t/how-to-get-extract-individual-ip-addresses-from-an-ip-range/59 "2023-04-04T13:37:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdullah](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.ipinfo.io/abdullah/32/4973_2.png) [@Abdullah](https://community.ipinfo.io/u/Abdullah)\
**Post date:** [April 4, 2023, 1:37pm UTC](https://community.ipinfo.io/t/how-to-get-extract-individual-ip-addresses-from-an-ip-range/59/1 "2023-04-04T13:37:53Z")

</div>

_**Disclaimer: Most IP operation does not involve expanding the IP address ranges to their individual IP address. You do not need de-aggregate the IP ranges to query them. To query IP address data your default choice should be our MMDB database and the [MMDBctl tool](https://github.com/ipinfo/mmdbctl).**_

[IPinfo CLI’s](https://github.com/ipinfo/cli) `prips` command can de-aggregate/explode IP to their individual IP addresses.

### Usage

![prips command](https://canada1.discourse-cdn.com/flex035/uploads/ipinfo/original/1X/8339a912c5e461d0d5c3312d49b2f927dcb8a66c.gif)

### `prips` Documentation:

```auto
Usage: ipinfo prips [<opts>] <ip | ip-range | cidr | file>

Description:
  Accepts CIDRs (e.g. 8.8.8.0/24) and IP ranges (e.g. 8.8.8.0-8.8.8.255).

Examples:
  # List all IPs in a CIDR.
  $ ipinfo prips 8.8.8.0/24

  # List all IPs in multiple CIDRs.
  $ ipinfo prips 8.8.8.0/24 8.8.2.0/24 8.8.1.0/24

  # List all IPs in an IP range.
  $ ipinfo prips 8.8.8.0-8.8.8.255

  # List all IPs in multiple CIDRs and IP ranges.
  $ ipinfo prips 1.1.1.0/30 8.8.8.0-8.8.8.255 2.2.2.0/30 7.7.7.0,7.7.7.10

  # List all IPs from stdin input (newline-separated).
  $ echo '1.1.1.0/30\n8.8.8.0-8.8.8.255\n7.7.7.0,7.7.7.10' | ipinfo prips

Options:
  --help, -h
    show help.

```

---

<div class="post-metadata">

**Author:** ![Abdullah](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.ipinfo.io/abdullah/32/4973_2.png) [@Abdullah](https://community.ipinfo.io/u/Abdullah)\
**Post date:** [April 4, 2023, 1:39pm UTC](https://community.ipinfo.io/t/how-to-get-extract-individual-ip-addresses-from-an-ip-range/59/2 "2023-04-04T13:39:42Z")

</div>


