# Group IP addresses

Groups a list of IP addresses into subnets. Supports both IPv4 and IPv6 addresses. Group IP addresses lives in the **Networking** category of the `fx` menu.

## Parameters

| Parameter             | Type    | Required | Default     | Description                                                         |
| --------------------- | ------- | -------- | ----------- | ------------------------------------------------------------------- |
| Input                 | string  | yes      | —           | Value to transform. Previous step output or a literal.              |
| Delimiter             | string  | no       | `Line feed` | Choose one of: `Line feed`, `CRLF`, `Space`, `Comma`, `Semi-colon`. |
| Subnet (CIDR)         | number  | no       | `24`        | Numeric value. Default `24`.                                        |
| Only show the subnets | boolean | no       | `false`     | Disabled by default.                                                |

`Input` is the primary value (previous step output or a literal).

## Returned value

| Type     | Description                                      |
| -------- | ------------------------------------------------ |
| `string` | Result of the Group IP addresses transformation. |

## Example

<details>
<summary>Run Group IP addresses</summary>

Groups a list of IP addresses into subnets. Adjust optional parameters when the defaults do not match your payload.

1. Set **Input** to the value to transform (previous step output or a literal).

2. Review **Delimiter**, **Subnet (CIDR)**, **Only show the subnets** and keep defaults unless your format requires otherwise.

3. Confirm **Output value** shows the transformed result.

</details>
