Multiline to Single Line
Join all lines into one line with the separator you choose.
Convert Multiline Text to a Single Line
Join all lines of your text into one line with the separator you choose. Perfect for compressing SQL queries, shell commands, lists, and JSON snippets into a single line that you can paste anywhere.
Separator options
- Space – join sentences or code into one line.
- Comma – turn a column of values into a CSV row or SQL
IN (...)list. - Nothing – reassemble wrapped strings such as keys or hashes.
- Tab – create a single spreadsheet row.
- Custom – any string, e.g.
ORfor search queries or|for regex alternatives.
Typical uses
- Paste a formatted SQL query into a log, config, or code string.
- Turn a list of IDs into a single comma-separated line.
- Combine search keywords into a boolean query.
- Put a multi-line shell command on one line.
Need to go the other way? The Text Replacer can split a line by replacing a separator with \n.
Frequently Asked Questions
How is this different from Remove Line Breaks?
Multiline to Single Line focuses on joining lines with a separator of your choice – including custom strings like ' OR ' or ' | ' – which is handy for building queries and lists. Remove Line Breaks is optimized for repairing paragraphs copied from PDFs.
Can I build a comma-separated list for SQL IN clauses?
Yes. Choose 'Comma' as the separator to turn one value per line into a single comma-separated line. Use a custom separator like ', ' or "', '" for quoted values.
Are indentation spaces kept?
With 'Trim lines' on, leading and trailing spaces of each line are removed before joining, which is usually what you want for code and lists. Turn it off to keep them.