Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

Language
ZHDERUPTENFRES

Elysia Tools

Navigation

Data Processing

Concat Arrays

· Last updated:2026-01-21

Concatenate multiple arrays using lodash _.concat

Details

What this tool helps you do

Features

  • Concatenate up to 5 arrays into a single array
  • Automatic flattening of nested arrays in the result
  • Optional deduplication to remove duplicate values
  • Smart type detection for numbers, booleans, and objects
  • Flexible input format - JSON arrays or text representations

Usage Examples

Basic concatenation:

Array 1: [1, 2]
Array 2: [3, 4]
Array 3: [5, 6]
Result: [1, 2, 3, 4, 5, 6]

With nested arrays (auto-flattened):

Array 1: [1, 2]
Array 2: [[3, 4], 5]
Result: [1, 2, 3, 4, 5]

With deduplication enabled:

Array 1: [1, 2, 3]
Array 2: [3, 4, 5]
Result (unique): [1, 2, 3, 4, 5]

Mixed data types:

Array 1: [1, "hello", true]
Array 2: [null, {key: "value"}, [6, 7]]
Result: [1, "hello", true, null, {key: "value"}, 6, 7]

Execution

Run this tool

Fill in the form, run the tool, and review the result in one place.

Samples

Examples that match this tool

Related

Continue with connected tools and hubs

Written by the Elysia Tools team
Multiple142
Data Processing130
Array60
Lodash53
Join10

Tool usage guide

Learn when to use this tool, what it supports, and how real users apply it.

Key facts

Category
Data Processing
Input types
textarea, select, checkbox
Output type
text
Sample coverage
4
API ready
Yes

Overview

Concat Arrays is a utility tool that merges up to five arrays into a single array using lodash's _.concat method. It supports optional flattening of nested arrays and deduplication to remove duplicate values, making it ideal for combining data from multiple sources.

When to use

  • When you need to combine multiple arrays into a single list for batch processing or analysis.
  • When dealing with nested arrays that require flattening to simplify data structures.
  • When merging arrays while ensuring no duplicate values are included in the result.

How it works

  1. 1Input up to five arrays in JSON or text format using the provided text areas.
  2. 2Select a flatten mode: 'none' to keep nested arrays, 'shallow' to flatten one level, or 'deep' to flatten all levels.
  3. 3Optionally enable the 'Remove Duplicates' checkbox to eliminate duplicate values based on strict equality.
  4. 4The tool concatenates the arrays and applies the selected options to produce the final array output.

Use cases

  • Merging data from multiple API responses or database queries into a single dataset for reporting.
  • Combining lists from different sources, such as user IDs or product codes, while removing duplicate entries.
  • Flattening nested array structures from JSON files to prepare data for analysis in tools like Excel or scripts.

Examples

1. Combine User ID Lists

Background

A developer has three separate arrays of user IDs from authentication, profile, and activity modules.

Problem

Need to merge these arrays into one for a batch update operation without duplicates.

How to use

Enter each array in the array1, array2, and array3 fields, then enable 'Remove Duplicates' and concatenate.

Outcome

A single array containing all unique user IDs from the three modules, ready for processing.

2. Flatten Nested Sales Data

Background

A data analyst receives sales figures as nested arrays from regional reports, with some duplicate entries.

Problem

The nested structure complicates analysis, and duplicates need to be removed for accurate totals.

How to use

Input the arrays, set flatten mode to 'deep', and enable 'Remove Duplicates' before concatenating.

Outcome

A flattened array with unique sales figures, simplifying further analysis and visualization.

FAQ

What is array concatenation?

Array concatenation is the process of joining two or more arrays end-to-end to form a new array.

How does the flatten mode affect the result?

Flatten mode controls nested arrays: 'none' keeps them as is, 'shallow' flattens one level, and 'deep' flattens all nested levels.

Can I remove duplicates from the concatenated array?

Yes, by enabling the 'Remove Duplicates' option, the tool will eliminate duplicate values using strict equality checks.

What data types are supported?

The tool supports numbers, strings, booleans, null, objects, and arrays, with smart type detection for accurate concatenation.

How many arrays can I concatenate at once?

You can concatenate up to five arrays simultaneously using the array1 to array5 input fields.

Home
Tools3212
Samples593
Visualizations471
Viewers103
Hubs239
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance647

Calculators, numerics, date logic, statistics, and finance tools

Design & Color298

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web193

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

Lead Generation Quiz Launch and Contact Handoff
Memorial Drafts: Family Review and Print Handoff
Private Habit Records: Backup, Restore and Sharing Review
Article to X and LinkedIn Drafts: Fact Review and Handoff
Markdown Interactive Deck Review and Offline Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact
Java

Android Data Structures Java Samples

Android Java data structure examples including arrays, hash tables, and linked lists with common operations

Kotlin

Android Data Structures Kotlin Samples

Android Kotlin data structure examples including arrays, hash tables, and linked lists with common operations

Text Processing

Duplicate Line Samples

Sample files with various types of duplicate lines for testing duplicate removal tools

Text Processing

Special Characters Samples

Sample text files with various special characters, punctuation, and symbols for testing non-alphanumeric character removal

Data Processing

Remove By Predicate

Remove items that match a predicate using lodash _.remove

Data Processing

Uniq With

Remove duplicates using lodash _.uniqWith and deep equality

Text Processing

Text Joiner

Join multiple text inputs with custom separators

Data Processing

Difference Arrays

Remove values from array that are present in other arrays using lodash _.difference