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
- Paste the lines.
- Set the separator and any wrapping quote.
- 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.
Related tools
- Split Text by DelimiterSplit text into separate lines using a custom delimiter character.
- Deduplicate LinesRemove duplicate lines from text keeping only unique entries.
- Sort Lines AlphabeticallySort all lines of text in alphabetical or reverse alphabetical order.
- Remove WhitespaceStrip all whitespace characters including spaces, tabs, and newlines from text.
- Remove PunctuationRemove all punctuation marks from text while keeping letters and numbers.
- Remove Duplicate SpacesReplace multiple consecutive spaces with single spaces throughout text.