# Unzip Arrays

Split grouped arrays using lodash _.unzip

> Canonical page: https://elysiatools.com/en/tools/unzip-arrays

- **Category:** Data Processing

- **Keywords:** array, unzip, group, split, lodash

## Overview

Separate grouped arrays back into individual arrays.

**Highlights:**
- Uses lodash `_.unzip`
- Accepts an array of grouped values
- Works with arrays produced by zip

**Example:**
- Grouped: `[["a", 1], ["b", 2]]`
- Result: `[["a", "b"], [1, 2]]`

## Inputs

- **Grouped Arrays** (textarea): Enter a JSON array of grouped values

## When to use

- When you need to reorganize data that was previously combined using a zip operation.
- When you have a list of paired records and need to extract each column into its own separate array.
- When processing JSON data structures that require transposing rows into columns for easier analysis.

## How it works

- Input your grouped data as a valid JSON array of arrays into the text area.
- The tool processes the input using the lodash _.unzip function to reorder the elements.
- The output is generated as a new JSON array containing the separated, individual arrays.

## Use cases

- Transposing database query results from row-based records to column-based arrays.
- Preparing grouped data for charting libraries that require separate data series arrays.
- Cleaning up API responses that return paired data points that need to be analyzed independently.

## Frequently asked questions

### What does this tool do?

It takes an array of grouped arrays and transposes them, effectively splitting the groups into separate arrays based on their index.

### Does it support non-JSON inputs?

No, the tool requires a valid JSON array format to correctly parse and process the data.

### Can I use this to reverse a zip operation?

Yes, this tool is specifically designed to perform the inverse of a zip operation.

### What library does this tool use?

It utilizes the standard lodash _.unzip function for reliable and consistent data processing.

### Is there a limit to the array size?

The tool handles standard JSON array sizes, though performance may vary depending on the complexity and depth of the input data.

## Related tools

- [Group By](https://elysiatools.com/en/tools/group-by): Group items by a derived key using lodash _.groupBy
- [Intersection Arrays](https://elysiatools.com/en/tools/intersection-arrays): Find common values across multiple arrays using lodash _.intersection
- [Invert By](https://elysiatools.com/en/tools/invert-by): Invert keys grouped by values using lodash _.invertBy
- [Xor Arrays](https://elysiatools.com/en/tools/xor-arrays): Compute the symmetric difference of arrays using lodash _.xor
- [Zip Arrays](https://elysiatools.com/en/tools/zip-arrays): Combine arrays by index using lodash _.zip
- [Count By](https://elysiatools.com/en/tools/count-by): Count items by a derived key using lodash _.countBy
- [Flatten Deep Array](https://elysiatools.com/en/tools/flatten-deep-array): Flatten array completely using lodash _.flattenDeep
- [Get Path](https://elysiatools.com/en/tools/get-path): Get a value at a path using lodash _.get

## Samples

- [Grafana Advanced Application Samples](https://elysiatools.com/en/samples/grafana-samples): Comprehensive Grafana samples covering advanced dashboard design, alerting configurations, data source integrations, and plugin development
- [QR Code Samples](https://elysiatools.com/en/samples/qrcode-samples): Sample QR code images for testing QR code reading and generation tools
- [D3.js Data Visualization Samples](https://elysiatools.com/en/samples/d3js-data-visualization): Comprehensive D3.js data visualization examples including charts, maps, animations, and interactive visualizations
- [Rome JavaScript Toolchain Samples](https://elysiatools.com/en/samples/rome): Rome JavaScript toolchain examples including configuration, linting, formatting, bundling, and project management
