Skip to content

Newline to Comma

Transform line-by-line lists into comma-separated format - ideal for creating CSV data, function parameters, or compact data representations

Example transformation:
apple banana cherry date apple, banana, cherry, date
⌘K to search patterns
⌘↵ to transform text

Input

(⌘1 to focus)
0 characters

Output

(⌘2 to focus)
0 characters
No pattern selected

Select a pattern or enter custom regex above

Use ⌘K to find patterns

Pattern Details

Search Pattern

\n

Replace Pattern

, 

Example

Input

apple
banana
cherry
date

Output

apple, banana, cherry, date

Tags

listconversioncsv

How to Use This Pattern

  1. Enter your text in the input area above
  2. Click "Transform" or press ⌘+Enter to apply the transformation
  3. Copy the result from the output area

You can also use the command palette (⌘K) to quickly switch between different patterns.

Related Patterns