Skip to content
Free text tool

List joiner and splitter

This tool turns a list with one item per line into a single delimited string, or splits a delimited string back into lines. Developers, analysts and office workers use it to move lists between spreadsheets, code, emails and forms.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result
Private: runs on this device

Input

29 characters

Used when Delimiter is Custom. Type \t for a tab or \n for a new line

Result

apples, bananas, cherries, dates

Example

Input
apples
bananas
cherries
dates
Result
apples, bananas, cherries, dates

How to use the list joiner and splitter

  1. Paste your list or delimited string into the box.
  2. Choose Join lines into one string or Split a string into lines in Action.
  3. Pick a Delimiter (or Custom and type it), Quotes around items, and the trim and empty options.
  4. Press Run, then Copy result.

How it works

Delimiters include comma, comma and space, semicolon, pipe, tab, space, new line or any custom text up to 100 characters. In a custom delimiter, \t means tab and \n means new line.

Quotes wrap each item in double or single quotes when joining. A quote inside an item is doubled, as in 'O''Brien', which is how CSV and SQL expect it.

When splitting with quotes chosen, a quoted item can contain the delimiter, and doubled quotes become one quote.

With trimming on, a delimiter like comma and space also splits items written without the space. Delimiters with letters, such as and, are matched exactly.

Everything runs in your browser. Your input is not uploaded or stored.

Questions and answers

How do I turn a column of values into a comma separated list?

Paste the column, keep Action on Join lines into one string and Delimiter on Comma and space, then press Run.

How do I split a comma separated list into lines?

Choose Split a string into lines in Action, pick Comma or Comma and space, and press Run.

Can I put quotes around each item?

Yes. Choose Double or Single quotes in Quotes around items before joining.

All 220 SnowRock tools