List Converter
Convert between a comma-separated list and a line-based list.
Category: Text Tools
When to use?
Use it to turn CSV data into a line-based list, or to join multi-line items into a single comma-separated line.
How to use
- Enter text.
- Choose the direction (comma → lines or lines → comma).
- Set the separator and whitespace options.
- Copy the result.
Input Explanation
Enter the source text (a comma-separated single line, or line-break-separated multiple lines).
Calculation Basis
It splits the input by line break or comma into an array, trims whitespace per the option, and rejoins with the opposite separator.
Usage Examples
- Convert spreadsheet data - Convert comma-separated CSV data into a line-based list.
- Join a list into one line - Join multi-line items with commas into a single line.
- Clean tag input - Expand comma-entered tags into a line list to check one by one.
Examples
- "apple, banana, cherry" → lines: apple / banana / cherry
- "apple\nbanana\ncherry" → comma: apple, banana, cherry
Cautions
- Counts can vary by how line breaks are handled.
- Results may differ from other tools depending on whitespace handling.
Guides
Convert list formats
It changes a line-break list to comma, tab, or semicolon separators and vice versa. Useful for turning CSV into a list or cleaning copy-paste data.
Choose the separator
Set the output separator as you like to produce forms ready for Excel, spreadsheets, or API input.
FAQ
Can I change the separator?
Yes, you can enter a custom separator besides the default comma.
Can it auto-trim each item?
Yes, turn on the trim option to remove edge whitespace during conversion.
How are empty items handled?
Empty items from consecutive separators or blank lines are excluded from the result.
Does it work with mixed line breaks?
Yes. You can freely convert a line list to a comma list and vice versa.
Related Tools
- Character Counter - Count characters with and without spaces, and line count, in real time.
- Byte Counter - Calculate the byte length of text when stored as UTF-8.
- Case Converter - Convert text, variable names, and filenames to UPPER, camelCase, snake_case, kebab-case, and more.
- Whitespace Remover - Remove whitespace in various ways — leading/trailing, duplicate, or per-line.
- Duplicate Line Remover - Remove duplicate lines from text, keeping only unique lines.
- Line Sorter - Sort each line of text in ascending/descending order, or shuffle randomly.