# How to Convert Comma-Separated Strings into an array

**URL:** <https://community.make.com/t/how-to-convert-comma-separated-strings-into-an-array/72200>\
**Category:** Questions\
**Tags:** arrays, functions\
**Created:** [March 3, 2025, 5:23pm UTC](https://community.make.com/t/how-to-convert-comma-separated-strings-into-an-array/72200 "2025-03-03T17:23:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxkzn](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/maxkzn/32/34959_2.png) [@Maxkzn](https://community.make.com/u/Maxkzn)\
**Post date:** [March 3, 2025, 5:23pm UTC](https://community.make.com/t/how-to-convert-comma-separated-strings-into-an-array/72200/1 "2025-03-03T17:23:39Z")

</div>

Hi,

I’m trying to reformat the values of six variables simultaneously.

Currently, the input data is formatted like this:

```auto
        "variables": [
            {
                "name": "Array of skills",
                "value": "67bf2ffc7cabfcc2fe46a070,67bf2fbd185e80560683666b,670e6bad3ced88ad68329944"
            },

```

For the API call, I need to transform them into the following format:

```auto
        "skills": [
          "67bf2ffc7cabfcc2fe46a070",
          "67bf2fbd185e80560683666b",
          "670e6bad3ced88ad68329944"
        ],

```

I’ve explored various methods but haven’t found a way to apply this transformation to all six variables.

Does anyone know how to achieve this?

Thanks!

---

<div class="post-metadata">

**Author:** ![jeff\_nguyen](https://avatars.discourse-cdn.com/v4/letter/j/6bbea6/32.png) [@jeff\_nguyen](https://community.make.com/u/jeff_nguyen)\
**Post date:** [March 4, 2025, 5:53am UTC](https://community.make.com/t/how-to-convert-comma-separated-strings-into-an-array/72200/2 "2025-03-04T05:53:22Z")

</div>

@Maxkzn Using the ‘split’ function in make?

---

<div class="post-metadata">

**Author:** ![DavidGurr\_Make](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/davidgurr_make/32/4624_2.png) [@DavidGurr\_Make](https://community.make.com/u/DavidGurr_Make)\
**Post date:** [March 4, 2025, 11:50am UTC](https://community.make.com/t/how-to-convert-comma-separated-strings-into-an-array/72200/3 "2025-03-04T11:50:07Z")

</div>

@jeff_nguyen that should do it.

Here’s an example:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/a/6/a6418c9da6c846c68230519242fa41ac03e54acd.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/6/6/66046b20ecf4393e433edb9010b29398e6a20987.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/f/b/fba7273bedec5290b354c59f67acb324e1e5b38c.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/0/0054ab578c08be0cec777cc0b39a742361a7a415.png)

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [June 2, 2025, 10:57am UTC](https://community.make.com/t/how-to-convert-comma-separated-strings-into-an-array/72200/4 "2025-06-02T10:57:34Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


