How to Merge Separate Lines into One Line in Word
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.
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.
Replace line breaks or paragraph marks with spaces in Word
Use Find and Replace to join the selected words without editing each line individually.
Select the list, then choose Home > Replace or press Ctrl+H.
In Find what, enter ^l for a manual line break. In Replace with, enter one space.
Choose Replace All. If Word asks whether to search the rest of the document, choose No to keep the changes within the selected list.
If ^l finds no matches, enter ^p in Find what, keep the space in Replace with, and choose Replace All again.

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. Open the document: Open WPS Writer and use Open to select your Word document.
- 2. Select the list: Highlight the words you want to combine, then open Home > Replace or press Ctrl+H.
- 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. Join the words: Choose Replace All, limit the replacement to the selection if prompted, and check the resulting text.

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.




