Join Lines

Combine many lines into one, separated by a comma, space, semicolon, tab or any text you choose.

Options
Use \n for a new line, \t for a tab.

Processed in your browser. Nothing you type is uploaded.

How it works

Lines are optionally trimmed and empty lines dropped, then everything is joined with the separator. The separator is inserted exactly as typed, so “, ” gives a comma and a space. Type \n for a line break or \t for a tab.

Rules this tool follows

  • Trimming (default on) removes spaces around each line before joining.
  • Skipping empty lines (default on) prevents doubled separators.
  • The separator can be up to 50 characters.

Example

Input

red
 green 

blue

Output

red, green, blue

Common uses

  • Converting a column copied from a spreadsheet into a comma-separated list.
  • Building search queries (join with “ OR ”).
  • Creating tag lists or CSV values.

Limitations and notes

  • Values that already contain the separator are not quoted or escaped. For true CSV with quoting, use a spreadsheet.

All text cleaners