Join Lines

Combine multiple lines into a single line with custom separator.

Join a list of lines into one line, separated by whatever you choose: a comma and space, a semicolon, a pipe, or \n for new lines and \t for tabs. You can wrap each item in quotes, which is handy for building SQL IN (…) lists and code arrays, and skip empty lines. Paste a column from a spreadsheet and get a comma-separated list straight away.

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

Common use cases

  • Turn a spreadsheet column into a comma-separated list
  • Build a quoted list for a SQL IN clause
  • Make an array of strings for code

How to use

  1. Paste the lines.
  2. Set the separator and any wrapping quote.
  3. Copy the joined text.

FAQ

How do I make a SQL IN list?

Set Join with to , and Wrap each item with to '. You'll get 'a', 'b', 'c' to put inside IN ( ).

How do I go the other way?

Use the split text tool to break a delimited list into lines.