Skip to content
Text Cleanup Tools

Text Cleanup Tools › Guides

How to remove line breaks in Word, Excel and Google Docs

A paragraph that is chopped into short lines, or a spreadsheet cell with breaks inside it, can be fixed in each app with find and replace or a formula. Here is how, and where a paste-and-copy tool is quicker.

Two kinds of line break

Almost every app has two different breaks. A paragraph break comes from pressing Enter and starts a new paragraph. A manual (soft) line break comes from pressing Shift+Enter in Word or Google Docs, or Alt+Enter inside an Excel cell, and only moves the text to the next line within the same paragraph.

Text pasted from a PDF or an email usually carries one break at the end of every visual line. To repair it you remove the breaks inside a paragraph and keep the ones between paragraphs, so it helps to know which kind you are dealing with. The menu names below can differ a little between versions, so treat them as a guide.

In Word

  1. Open Find and Replace from the Home tab (the Replace button).
  2. Click More (on Windows) so the Special button appears. With the cursor in the "Find what" box, choose Special, then Manual Line Break (it shows as ^l) or Paragraph Mark (it shows as ^p).
  3. Type a single space in "Replace with" and press Replace All.

The Word trap: real paragraphs disappear too

Replacing every paragraph mark joins your real paragraphs as well, so the whole document becomes one block. If your paragraphs are separated by a blank line (two paragraph marks in a row), use three passes. First replace ^p^p with a short placeholder that does not appear in the text, such as ##. Then replace ^p with a space. Finally replace ## with ^p^p to put the paragraph gaps back.

If the paragraphs are not separated by a blank line, there is nothing to tell a wrapped line from a real paragraph end, and you will need to re-add paragraph breaks by hand.

In Excel

  • Find and replace: select the cells, open Find and Replace (Ctrl+H on Windows), click in "Find what" and press Ctrl+J. The box looks empty, but it now holds a line break. Put a space in "Replace with" and choose Replace All.
  • Formula: =SUBSTITUTE(A1,CHAR(10)," ") returns the cell with each break replaced by a space. If nothing changes, the breaks may be carriage returns, so try CHAR(13) instead.
  • Quick clean: =CLEAN(A1) removes line breaks and other non-printing characters, but it joins the words on either side with no space, so SUBSTITUTE is usually the better choice.

In Google Docs

Open Edit, then Find and replace. Tick "Match using regular expressions", enter \n in the "Find" box and a single space in "Replace with", then choose Replace all. In current versions this matches the breaks between lines. Remember that it also matches the breaks between paragraphs, so the same trap applies. Run it on a selected section if only part of the document is broken.

In Google Sheets

Use =SUBSTITUTE(A1,CHAR(10)," ") to swap breaks for spaces, or =REGEXREPLACE(A1,"\n"," ") for the same result with a pattern. Fill the formula down the column, then copy and paste the results as values over the originals if you want to keep only the cleaned text.

When a paste-and-copy tool is quicker

If the text came from a PDF, an email or a web page, you do not need to open an app at all. Paste it into the Remove Line Breaks tool, choose a space, keep the blank-line paragraph breaks, and copy the result back. The Find and Replace tool covers the odd cases, such as words split by a hyphen at the end of a line.

These tools run in your browser, so the text is not uploaded anywhere.

Tools used in this guide

More guides

Last reviewed 2026-10-15.