Split CSV Column
Operator: Abdulla Al Fahad. How tools are built and checked
Plenty of exports pack several facts into one cell: a location column holding "Arlington, Virginia, USA", a tags column holding navy|cobol|compilers, or a contact column with a first and last name separated by a space. Importers, pivot tables and lookups all want those facts in their own columns. Split CSV Column takes one column, cuts each of its cells at the delimiter you choose, and writes the pieces into new columns beside it.
The number of new columns is set by the cell with the most parts, so a file where some locations have a country and some do not still lines up. Shorter cells leave the trailing columns blank instead of shifting values to the left.
Key features
- Comma, semicolon, pipe, slash, hyphen, space, tab or custom text as the delimiter
- Trim spaces around each part, on by default
- Maximum parts, with the remaining text kept in the last part
- Custom names for the new columns, with <column>_N defaults for any gaps
- Keep or drop the original column
- Summary of rows changed, largest part count and cells capped by the maximum
The delimiter can be a comma, semicolon, pipe, slash, hyphen, space or tab, or any text you type into the custom field, such as " - " or ::. The custom field must contain at least one character. Trimming, which is on by default, removes spaces at both ends of each part, so "London, England" splits into London and England rather than London and " England".
New columns are named <column>_1, <column>_2 and so on. You can supply your own names as a comma-separated list; any position you leave empty, for example the middle of city,,country, falls back to the default name. Names beyond the number of columns needed are ignored and the report says how many. The new columns appear directly after the original, which stays in the file unless you clear Keep the original column.
Maximum parts limits how many pieces a cell is cut into. With a maximum of 2, a|b|c becomes a and b|c: the first cut is made and everything after it, delimiters included, stays together in the last part. A maximum of 0 means no limit.
How it works
The CSV is parsed first, with quoted fields kept whole. Every cell of the chosen column is then searched for the delimiter, and each position where it occurs becomes a cut. When a maximum is set and a cell has more parts than it allows, only the first cuts are used and the rest of the text becomes the final part.
After all cells are split, the tool takes the highest part count across the column as the number of new columns, checks that none of the new names collide with existing headers, and rebuilds each row with the parts placed in order. Missing parts and empty cells become blank values.
Common use cases
- Separating "City, Region, Country" values from a CRM export into three columns before loading them into a mailing tool.
- Breaking a pipe-separated tags field into tag_1, tag_2 and tag_3 so each tag can be filtered in a spreadsheet.
- Splitting a full_name column at the first space into first name and the rest, using a maximum of 2.
- Pulling year, month and day apart from paths like 2026/11/12 with the slash delimiter.
How to use this tool
- Upload a CSV file or paste its text into the input box; the header row supplies the names in the column picker.
- Choose the column to split and the delimiter. For anything not in the list, pick Custom text and type it.
- Set a maximum number of parts if the last piece should keep the rest of the text.
- Enter names for the new columns if you want them, and decide whether to keep the original column.
- Run the transform, check the counts in the summary and the new headers in the preview, then download.
Example
Input: a location column with uneven parts
id,location
1,"London, England"
2,"Arlington, Virginia, USA"
3,Wilmslow
4,Comma delimiter, names city,region,country, original column dropped
id,city,region,country
1,London,England,
2,Arlington,Virginia,USA
3,Wilmslow,,
4,,,Tips for best results
- For names, set the delimiter to space and the maximum to 2. "Mary Ann Smith" then gives Mary and Ann Smith instead of three columns that mix middle and last names.
- Run once with the defaults to see the largest part count in the summary, then enter column names for exactly that many columns.
- For a name column with suffixes, use comma with a maximum of 2. "Smith, John, Jr" then gives Smith and John, Jr, with the suffix kept beside the first name instead of in a third column.
Common pitfalls
Splitting on a hyphen also cuts hyphenated words and ISO dates, so Jean-Luc or 2026-11-12 becomes several parts. Pick a delimiter that only appears between the values you want separated.
With the space delimiter and trimming on, a run of spaces counts as one separator. With trimming off, each space is a separator, and two spaces in a row produce an empty part.
The split is positional. If one row writes "England, London" and another "London, England", the tool cannot tell, and the city ends up in different columns.
Common errors and how to fix them
- Enter a delimiter to split on.
- Custom text is selected but the field is empty. Type the separator, or choose one of the listed delimiters.
- A column named "city" already exists.
- One of the new column names matches a header already in the file. Pick another name, or, if the clash is with the column being split, clear Keep the original column.
- The new column name "part" is used twice.
- Each entry in the names list must be different. Letter case is ignored when comparing names.
- The output has five new columns but most rows only fill two.
- One or more cells contain the delimiter more often than the rest. Set Maximum parts to the count you expect so the extra text stays in the last column, or clean those cells first.
Best practices
- Keep the original column on the first run when values may be written in different orders. If one row says "England, London" and another "London, England", the split columns alone do not show which row was reversed; the original beside them does.
- Use a maximum whenever the last field can itself contain the delimiter, such as street addresses or free-text notes.
- Check the cells-capped count after setting a maximum. A capped cell is one whose extra text was folded into the last part: split on comma with a maximum of 2, "12 High Street, Flat 3, Leeds" gives 12 High Street and Flat 3, Leeds, and counts as capped. If that is not the split you wanted for those rows, raise the maximum.
Quoted fields that contain the delimiter
A comma inside a CSV cell is only possible because the field is wrapped in double quotes: "Arlington, Virginia, USA". The tool reads the file with a CSV parser first, which treats a quoted field as a single value and removes the surrounding quotes. At that stage the comma inside the quotes is part of the text, not a column break, so the row still has the right number of columns.
The split then runs on that value. Choosing the comma delimiter cuts Arlington, Virginia, USA into Arlington, Virginia and USA. Choosing a different delimiter, such as pipe, leaves the commas alone and the value stays in one part. When the output is written, any new value that still contains a comma, a quote or a line break is quoted again, so the file remains valid CSV.
- Raw line: 2,"Arlington, Virginia, USA",navy|cobol
- After CSV parsing, the location value: Arlington, Virginia, USA
- Split on comma with trimming: Arlington | Virginia | USA
- Split on pipe instead: one part, unchanged
How uneven rows are filled
In the example above, row 2 has three parts, so three new columns are created. Row 1 has two parts and leaves country blank, row 3 has one part and leaves region and country blank, and row 4 is empty, so all three new cells are empty. The summary for that run reads 2 rows changed, largest part count 3, 0 cells capped: only rows with at least one delimiter count as changed.
Frequently asked questions
Can I split on more than one character?
Yes. Choose Custom text and type the whole sequence, for example " - " with a space on each side. The tool looks for that exact text, not for any one of its characters.
Can I split on a regular expression?
No. The delimiter is matched as literal text. The one exception is space with trimming on, where several spaces in a row count as one separator.
What happens to cells that do not contain the delimiter?
The whole value goes into the first new column and the others are left blank. These rows are not counted as changed.
Can I split two columns at once?
Not in one run. Download the result and run the tool again on the second column.