Remove line breaks

Paste text from a PDF, an email or a narrow column, and remove line breaks while keeping the paragraphs, or join everything into one block. You can also remove empty lines and extra spaces.

  • Free
  • No sign-up
  • Works as you paste
  • Runs in your browser

What to remove
0 line breaks removed

How to use it

  1. 1Paste the text with the unwanted line breaks.
  2. 2Choose what to remove and what goes in place of each break.
  3. 3Copy the text or save it as a file.

How the line breaks are removed

This line break remover reads Windows, Mac and Linux line endings alike. With paragraphs kept, a blank line (or a line of spaces) ends a paragraph; the lines inside each paragraph are joined with a space, nothing or a comma, and the paragraphs stay apart.

To remove paragraph breaks too, choose “Remove all line breaks”: the whole text becomes one block. “Remove empty lines only” keeps every line with text and takes out the blank lines between them.

With “Remove extra spaces and tabs” on, runs of spaces and tabs become one space and each line is trimmed, which cleans up text copied from tables and forms. Turn it off to keep double spaces inside lines. When lines are joined, the spaces at their ends always go; when you remove empty lines only, the switch starts off so indentation stays.

Remove line breaks in Word and Excel

On Windows:

  • Word: press Ctrl+H, type ^p in Find what (a paragraph mark) or ^l (a manual line break), type a space in Replace with, and choose Replace All. Codes are lowercase.
  • Excel, in place: select the cells, press Ctrl+H, press Ctrl+J in Find what (the box looks empty), type a space in Replace with, and choose Replace All.
  • Excel, with a formula: =SUBSTITUTE(A2,CHAR(10)," ") gives the text of A2 with each line break turned into a space.

Word’s ^p also removes the breaks between real paragraphs. To remove line breaks from text but keep its paragraphs, paste it here instead.

Questions

Related tools