# Array and List Manipulation Tools

Analyze, deduplicate, sort, shuffle, slice, flatten, group, filter, sample, and transform arrays and lists — plus set operations like union, intersection, and difference — in one hub for data and code prep.

> Canonical page: https://elysiatools.com/en/hubs/array-and-list-manipulation-tools

- **Category:** transform

- **Keywords:** array deduplicator, array sorter, array shuffle, array flatten, array slicer, array reverse, array filter, array group by, array set operations, array intersection union difference, array random sample, array element counter

## Overview

This hub is for the everyday work of shaping a list of values: cleaning it up, reordering it, pulling parts out, or combining two lists. The transform group covers deduplication, flattening nested arrays, slicing ranges, reversing, sorting, and shuffling. The analysis group counts and profiles elements, groups them by criteria, and extracts or filters by type. The set-operations tool handles intersection, union, and difference across two arrays, and a generator creates numeric, random, or test-data sequences. Use it to prep JSON or CSV data, build test fixtures, or answer a quick list question without writing a script.

## Tools

- Array Analyzer: Comprehensive array analysis tool with statistics, data types, and frequency analysis
- Array Deduplicator: Remove duplicate elements from arrays with various deduplication methods
- Array Element Counter: Count occurrences of specific elements in arrays with support for multiple counting modes and statistical analysis
- Array Element Deleter: Delete specific elements from arrays with support for multiple deletion methods
- Array Element Replacer: Replace specific elements in arrays with support for multiple replacement methods
- Array Extractor: Extract elements of specific types from arrays (numbers, strings, booleans, objects, etc.)
- Array Filter: Filter out elements of specific types from arrays (remove numbers, strings, booleans, etc.)
- Array Flattener: Flatten multidimensional arrays into one-dimensional arrays with customizable depth
- Array Generator: Generate various types of arrays including numeric sequences, random arrays, test data, and date sequences
- Array Grouper: Group array elements based on various criteria such as length, alphabetical order, numeric ranges, custom conditions, and more
- Array Operations: Perform set operations (intersection, union, difference) on two arrays
- Array Random Sampler: Randomly select specified number of elements from an array with support for different sampling methods
- Array Reverser: Reverse the order of array elements with support for various input formats
- Array Shuffle: Randomly shuffle array elements with support for different shuffling algorithms and reproducible results
- Array Slicer: Extract specific portions from arrays with support for various slicing methods and flexible range selection
- Array Sorter: Sort arrays with various sorting methods and maintain original input format

## Frequently asked questions

### What is the difference between array filter and array extractor?

Array Filter removes elements of specific types (e.g. strip out all numbers), while Array Extractor pulls out elements of specific types (e.g. keep only the strings). They are mirror operations: filter keeps what does not match, extractor keeps what does.

### Which tool does union, intersection, and difference?

Array Operations performs set operations on two arrays — intersection (common elements), union (all unique elements from both), and difference (elements in one but not the other).

### Can the shuffle be reproducible?

Yes. Array Shuffle supports different shuffling algorithms and can produce reproducible results from a seed, so the same input gives the same order every time — useful for tests and fixtures.

### How deep does flattening go?

Array Flattener flattens multidimensional arrays into a one-dimensional array with a customizable depth, so you can collapse just one level of nesting or flatten everything down to scalars.

## Related content

- [Text Tools](https://elysiatools.com/en/hubs/text-utility): Explore 33 text tools for utility workflows and compare closely related utilities quickly.
- [JSON Inspection, Diff, and Transformation Tools](https://elysiatools.com/en/hubs/json-utility): Compare JSON formatting, diffing, path inspection, schema validation, merging, transformation, and export tools in one hub for API and data workflows.
- [CSV Cleanup and Table Reshaping Tools](https://elysiatools.com/en/hubs/csv-utility): Compare CSV cleanup, filtering, sorting, grouping, merging, splitting, and table reshaping tools in one hub for spreadsheet and import/export workflows.
- [Data Quality, Dedupe, and Anomaly Detection Tools](https://elysiatools.com/en/hubs/data-quality-anomaly-workflows): Profile CSV/JSON datasets, compare spreadsheet versions, find duplicates, outliers, missing-value issues, referential breaks, and time-series anomalies in one data-quality workflow hub.
- [Regex Testing, Visualization, and Pattern Debugging Tools](https://elysiatools.com/en/hubs/regex-utility): Compare regex testers, explainers, cheat sheets, visualizers, linters, performance scanners, and replacement preview tools in one hub for safer pattern design and debugging workflows.
