Convert lines to a comma-separated list

Join complete lines with one chosen delimiter, using a comma followed by a space by default.

Runs in your browser. Your text is not uploaded.

How to use this tool

  1. Paste your list into Your text above. The “Lines to a delimited list” step is already selected.
  2. Check the options, then select Run pipeline.
  3. Review Your result and choose Copy result or Download .txt.

You can add more changes before running. Every step runs from top to bottom, in your browser, for free.

Worked example

Before

red
green
blue

After

red, green, blue

The default separator inserts a comma and one space between the three lines.

Exactly what this changes

  • PlainSift places the selected delimiter between each parsed line. The source order is preserved, and the line values themselves are not trimmed, quoted, escaped, or otherwise rewritten before they are joined.
  • This is a literal delimiter joiner, not CSV serialization. If a value already contains the chosen delimiter, the result can be ambiguous to another splitter. A local note appears when that condition is detected.
  • The shared parser normalizes source line endings to LF for operation purposes and tracks a final terminator separately. When the source ends with a line terminator, the single joined result keeps a final LF as well.

Options and edge cases

  • Choose comma, semicolon, tab, or a custom delimiter containing one to four characters. Comma and semicolon can include one following space; tabs and custom delimiters are inserted exactly as selected.
  • The spacing option affects the separator only. It does not remove spaces already present at the beginning or end of a value, so add a Trim lines step first if those spaces are unwanted.

Edge case: Quoted fields and embedded delimiters receive no special treatment. Use a dedicated, reviewed CSV library outside this product when standards-compliant CSV escaping is required.