Separator ignored
Empty separator joins strings with no gap.
Fix: Use a space or comma for readable output.
header • up to 320x100 / 728x90
Flatten multi-line text into a single line with a configurable separator
Output will appear here...
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
Multi-line to Single Line removes every newline in your text and joins the remaining lines with a separator of your choice. Each line is trimmed before joining, and empty lines are skipped.
It is ideal for flattening database rows, joining CSV cells into comma-separated lists, and preparing multi-line log snippets for one-line chat or ticket comments.
apple banana cherry
apple, banana, cherry
Empty separator joins strings with no gap.
Fix: Use a space or comma for readable output.
Each line is trimmed before joining.
Fix: Use the Single Line to Multi-line tool in reverse if you need strict whitespace.
Yes — blank lines are filtered out before joining.
Yes, leading and trailing whitespace per line is removed.
A single space unless you change it in the control bar.
Yes — paste a literal tab character into the separator field.
Yes — both \r\n and \n are recognised.
Pair with the reverse tool and list formatters for full round-trip workflows. You can also browse the full String Utilities category for more options.
Split a single-line string on any delimiter to produce one value per line
Format newline-separated values into comma-separated lists, quoted values, JSON arrays, or SQL IN clauses with trim, dedupe, and sort options.
Remove empty lines from text
Remove duplicate lines from text
Sort lines alphabetically or numerically
Find and replace text patterns
Count lines in text
Randomise the order of lines in any multi-line text
Convert binary to readable text
Convert hexadecimal to text
Convert text to binary
Convert text to hexadecimal