How does joining lines work?
Joining takes a list with one item per line and turns it into one line, with a separator placed between items. The sample red, green and blue becomes "red, green, blue". The separator can be a comma and space, a plain space, a pipe, a tab or anything you type.
You can also wrap every item in double or single quotes first. That turns a column of values into something ready to paste into code, for example "red", "green", "blue" for an array, or 'red', 'green', 'blue' for a SQL IN list. The note under the result counts how many lines were joined.
How to use the Join Lines
- Paste your list, one item per line.
- Type the separator you want.
- Choose whether to wrap items in quotes.
- Copy the single line.