Three ways to remove line breaks
| Choice | Result | Use it for |
|---|---|---|
| Join lines, keep paragraphs (default) | Lines inside a paragraph are joined with a space; blank lines between paragraphs stay. | Text copied from PDFs, emails and old documents |
| Replace with a space | The whole text becomes one paragraph. | A single line for a form field, a spreadsheet cell or a tweet |
| Remove all | Line breaks are deleted with nothing in their place. | Codes or numbers split over several lines |
To turn a list (one item per line) into a comma separated list instead, use the comma separator.
Line breaks inside Excel cells
A line break typed inside a cell with Alt+Enter (Option+Return on Mac) is
character 10. To turn those into spaces in Excel, use =SUBSTITUTE(A2, CHAR(10), " "). When you copy such a
cell and paste it here, the cell arrives wrapped in double quotes with the line breaks inside; choose
Replace with a space to flatten it.
Related tools
Questions
How do I remove line breaks but keep paragraphs?
Keep the default, Join lines, keep paragraphs. A blank line marks a new paragraph.
How do I put all the text on one line?
Choose Line breaks: Replace with a space.
Why does text from a PDF have a line break on every line?
PDFs store each printed line on its own. Joining lines within paragraphs fixes it.