Lines → Delimited String

Join lines into a single string with a chosen delimiter.

About Lines → Delimited String

Lines → Delimited String joins your input into a single string, using the delimiter you choose between items. Common delimiters are pre-set — comma, semicolon, pipe, tab, space — and you can type any custom string for less common cases. Empty lines are joined like any other; the result is a single string with no trailing delimiter.

Reach for it whenever a downstream consumer wants a single-line representation of your list: a comma-separated `IN` clause for SQL, a semicolon-separated env-var value, a pipe-separated argument string for a CLI, or a single CSV cell that contains a list. It is the inverse of Delimited String → Lines: the two operations round-trip cleanly as long as items do not themselves contain the delimiter. For JSON consumers that expect properly-escaped string elements, use Lines → JSON Array instead — that tool adds quoting and escaping that a plain delimiter does not.

Examples

Input
apple
banana
cherry
Output
apple, banana, cherry

Delimiter is `, ` (comma followed by space). Pick a different delimiter to match the consumer.

Frequently asked questions

What if my items contain the delimiter character?

The tool joins literally — it does not quote or escape. If items can contain a comma, choose a different delimiter (pipe `|` or tab) or run Lines → JSON Array to get proper string escaping.

Does it round-trip with Delimited String → Lines?

Yes, as long as no item contains the delimiter. Joining with `,` and splitting on `,` returns the original list when no item has an embedded comma.

Are leading or trailing whitespace lines preserved?

Yes. The tool joins lines literally; whitespace is not stripped. Run Trim Each Line first if you want clean items, or Remove Blank Lines to drop empties before joining.

Can the delimiter be a newline?

Yes — typing `\n` (or pasting a literal newline) produces a multi-line output, which is mostly a way to leave the input unchanged. The tool is most useful when the delimiter is a single non-newline character.