How to Find and Replace Paragraph Breaks in Word
Question details
The user needs to locate and clean up formatting issues related to paragraph marks, such as removing unwanted spaces directly before a paragraph break or eliminating repeated paragraph breaks used for visual spacing.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Cleaning up a document's layout by standardizing paragraph spacing and removing hidden, redundant characters.
- Observed behavior
- The document contains trailing spaces before paragraph returns, or uses consecutive empty paragraph breaks instead of proper line spacing settings to create visual space between paragraphs.
Turn on formatting marks by clicking the 'Show/Hide ¶' button on the Home tab (or pressing Ctrl+*) so you can clearly see the hidden spaces and paragraph breaks you need to remove.
Remove Unwanted Spaces Before Paragraph Marks
Use Word's Find and Replace tool with special character codes to automatically delete trailing spaces at the end of every paragraph.
Trailing spaces at the end of paragraphs can cause unexpected layout issues. Word allows you to search for any white space immediately followed by a paragraph mark and replace it with just a clean paragraph mark.
Press Ctrl+H on your keyboard to open the Find and Replace dialog box.
In the 'Find what' box, type ^w^p (where ^w stands for white space and ^p stands for paragraph mark). In the 'Replace with' box, type ^p.
Click 'Replace All' to remove all trailing spaces before paragraph breaks throughout your document.

Replace Double Paragraph Breaks with Single Breaks
Remove excess vertical spacing caused by hitting 'Enter' twice, replacing double empty lines with proper paragraph spacing.
Easily Clean Up Document Formatting in WPS Writer
WPS Writer offers a powerful Find and Replace tool that perfectly supports special characters and regular expressions, allowing you to instantly clean up extra spaces and empty paragraphs in your documents.
- 1. Open your document: Launch WPS Writer and open the document you wish to format.
- 2. Access Find and Replace: Press Ctrl+H or navigate to the Home tab and click on 'Find and Replace'.
- 3. Input formatting codes: Type ^p^p in 'Find what' and ^p in 'Replace with' to remove double spaces, or use the 'Special' button to insert formatting marks.
- 4. Clean the document: Click 'Replace All' to instantly remove unwanted paragraph breaks and tidy up your layout.

Frequently Asked Questions
What do the symbols ^w and ^p mean in Word?
In Word's Find and Replace feature, ^w represents any white space character (like a standard space or a tab), and ^p represents a paragraph mark (created when you press Enter). Combining them as ^w^p helps find spaces that sit right before a paragraph break.
How do I insert these special characters without typing the codes?
In the Find and Replace dialog box, click the 'More >>' button to expand your options, then click the 'Special' button at the bottom. You can select 'Paragraph Mark' or 'White Space' from the list, and Word will automatically insert the correct ^ code for you.
Why shouldn't I use empty paragraphs to add space between text?
Using empty paragraphs for spacing can cause irregular pagination, awkward breaks across pages, and difficulties when changing font sizes. It is highly recommended to use the 'Space Before' or 'Space After' settings in the Paragraph dialog box to ensure consistent and professional document layout.




