Home / Remove line breaks

Remove line breaks

Paste text with broken lines, for example from a PDF or an email, and join the lines back into paragraphs, or remove every line break.
Your text never leaves your device: everything runs in this page. No upload, no sign-up.

Your text

Empty

Without line breaks

Three ways to remove line breaks

ChoiceResultUse 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 spaceThe whole text becomes one paragraph.A single line for a form field, a spreadsheet cell or a tweet
Remove allLine 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.