How to expand comma-separated values into separate rows

Your CSV has cells with multiple comma-separated values (like tags, categories, or skills) but you need each value on its own row for proper analysis or import.

This guide uses the spreadsheet editor. Jev adds decision columns instead.

Open Magic CSV

spreadsheet editor example

Prompt
"Expand each comma-separated tag into its own row"
Before
#producttagsprice
1Widget Proelectronics, gadgets, bestseller$99.00
2Basic Teeclothing, cotton$24.99
3Power Bankelectronics, travel, accessories$49.00
After
#producttagprice
1Widget Proelectronics$99.00
2Widget Progadgets$99.00
3Widget Probestseller$99.00
4Basic Teeclothing$24.99
5Basic Teecotton$24.99
6Power Bankelectronics$49.00
7Power Banktravel$49.00
8Power Bankaccessories$49.00

Why use the spreadsheet editor for this?

  • Turn one row with multiple values into multiple rows
  • Preserve all other column data for each expanded row
  • Perfect for normalizing data for databases

Related guides

Continue in the spreadsheet editor.

Use the spreadsheet editor, AI columns, and cleanup tools within the same Magic CSV account.

How to expand comma-separated values into separate rows | Magic CSV