Multiline text to Comma-separated text

Enter one value per line. Entering A and B on separate lines produces A, B.

Multiline text
Examples
Output format
How to use this tool

Comma separator

Paste one value per line or copy a column from Excel. Below the two editors, choose plain text, quoted values, an array or a SQL IN list. Copy the result from the output box.

Use Swap between the editors to split the result back into lines or paste a new list. A comma inside a quoted field stays in that field. Text is processed in your browser.