How to Remove Line Breaks from a List
Text copied from a PDF, an email, or a chat window sometimes carries line breaks in places you don't want them - a paragraph that should read as one continuous line, or a list of words that needs to become a single line of text for a form field that won't accept multiple lines.
Quick answer
Paste your text into Find & Replace, switch to Regex mode, set Find to \n, and set Replace to a single space (or leave it empty to join everything with nothing in between). Click Replace All and every line break is gone, leaving one continuous line.
Remove line breaks now. Free, nothing to install.
Open Find & Replace →How to remove line breaks in 3 steps
- Paste your text into Find & Replace.
- Enable Regex mode, set Find to \n, and set Replace to whatever should go in place of each line break - a single space keeps words separated, leaving it empty joins everything with no gap at all.
- Click Replace All. The output is now one continuous line.
Example
Text like this:
The quarterly report is due Friday
with line breaks replaced by a space becomes:
The quarterly report is due Friday
If you specifically want a comma-separated line instead
Replacing line breaks with a space or nothing works for turning prose or a word list into one line of plain text, but if the goal is specifically a comma-separated string - for pasting into code, a spreadsheet formula, or a CSV field - use Text Fixer's "Joined (CSV)" output format instead, which joins every line with a comma automatically. See the full guide to converting a list into a comma-separated string for that specific case.
Doing more than one find-and-replace at once?
Find & Replace supports up to 8 chained find-and-replace pairs in a single pass.