Join List Items
Join all items of a list together with trimming and empty item removal options
What Is a List Item Joiner?
The Join List Items tool lets you merge all items of a list together into a single string. You can split a list by a specific character or a regular expression, then join the extracted items with a symbol of your choice. It is useful for converting multi-line lists into comma-separated values, cleaning up messy data, or reformatting lists for different applications.
Specify how your input list is separated using either a literal character or a regex pattern. Choose the glue symbol that will connect the items in the output, and optionally trim whitespace or skip empty items for a cleaner result.
How to Join List Items
- Paste or type your list into the Input List text area.
- Choose a Separator Mode — use Literal for a fixed character or Regex for a pattern.
- Enter the Input Separator that currently divides your items (e.g.,
\nfor newlines). - Set a Join Symbol to glue items together (e.g.,
,for a comma-separated output). - Toggle Left-trim, Right-trim, and Skip empty items as needed.
- The joined result appears instantly in the Joined List area.
Common Use Cases
- Convert a line-by-line list into a comma-separated string for spreadsheets or database queries.
- Clean up data where items are separated by inconsistent delimiters using regex splitting.
- Merge list items into a single continuous string (e.g., binary digits or codes) by using an empty join symbol.
- Reformat data between different export and import formats that use different item separators.
Frequently Asked Questions
What is the default input separator?
The default is \n (newline), which splits a list where each item is on its own line. You can change it to any character or string.
Can I split by a regular expression instead of a fixed character?
Yes. Switch the mode to Regular Expression and enter a valid regex pattern. For example, \s+ will split on any whitespace, and [.,:;] will split on dots, commas, colons, or semicolons.
What does "Left-trim" and "Right-trim" do?
These options remove leading whitespace (left-trim) and trailing whitespace (right-trim) from each item after splitting. This prevents accidental spaces from appearing around your join symbol.
What does "Skip empty items" do?
When enabled, any items that are empty strings (or contain only whitespace after trimming) are discarded from the final joined result.
Can I join items without any separator between them?
Yes. Simply leave the Join Symbol field empty, and all items will be concatenated back-to-back with no separator.
Related tools
Your recent visits