Document Editing Problems

How to Merge Separate Lines into One Line in Word

Rana GarciaRana Garcia Nov 14, 2026 868 views

Question details

Combine a list of words on separate lines into one continuous line of text.

Product
Microsoft Word
Device & OS
not provided
Scenario
A document contains approximately one thousand words, each on a separate line, that need to be joined with spaces.
Observed behavior
The desired result is a continuous sequence of words separated by spaces.
Before you start

Select only the list you want to merge. If you are unsure which type of break separates the words, use Home > Show/Hide ¶ to inspect the formatting marks.

Solution 1Recommended

Replace line breaks or paragraph marks with spaces in Word

Use Find and Replace to join the selected words without editing each line individually.

1
Open Replace

Select the list, then choose Home > Replace or press Ctrl+H.

2
Enter the line break

In Find what, enter ^l for a manual line break. In Replace with, enter one space.

3
Replace the breaks

Choose Replace All. If Word asks whether to search the rest of the document, choose No to keep the changes within the selected list.

4
Try paragraph marks if needed

If ^l finds no matches, enter ^p in Find what, keep the space in Replace with, and choose Replace All again.

Replace line breaks or paragraph marks with spaces in Word
Line breaks and paragraph marks differ: Use ^l for manual line breaks and ^p for paragraph marks. The result may still wrap visually at the page margin, even though the words are in one paragraph.
WPS Writer

Join a list of words with WPS Writer

Open the document in WPS Writer and use Find and Replace to change line or paragraph breaks into spaces.

  1. 1. Open the document: Open WPS Writer and use Open to select your Word document.
  2. 2. Select the list: Highlight the words you want to combine, then open Home > Replace or press Ctrl+H.
  3. 3. Set the replacement: Enter ^l in Find what for manual line breaks and enter one space in Replace with. If the words are separated by paragraph marks, use ^p instead.
  4. 4. Join the words: Choose Replace All, limit the replacement to the selection if prompted, and check the resulting text.
Join many separate lines in a single replace operationOpen and edit Microsoft Word DOC and DOCX filesUse a familiar document-editing interfaceWork with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does replacing ^p not join the lines?

The lines may be separated by manual line breaks rather than paragraph marks. Open Home > Replace and try ^l in Find what instead.

Will the combined text fit on one visible line?

Not necessarily. Replacing breaks creates continuous text, but Word will still wrap it at the page margin.

How can I avoid changing breaks elsewhere in the document?

Select the list before opening Home > Replace. If Word asks to continue searching the rest of the document after replacing the selection, choose No.

Does replacing breaks add punctuation?

No. Entering a space in Replace with joins the words with spaces; add any needed punctuation separately.