How to Fit Pasted Website Text to Page Width in Word
Question details
The user needs to make text copied from a website flow naturally to fit the full width of a Word document page.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Pasting text from a web page into a document.
- Observed behavior
- The pasted text appears narrow and uneven due to hidden formatting characters like manual line breaks or paragraph marks imported from the website.
Before attempting to reformat the text, it is highly recommended to turn on non-printing characters so you can clearly see the hidden paragraph marks and manual line breaks causing the issue.
Remove Formatting Breaks Using Find and Replace
Use the Find and Replace tool to quickly swap hidden formatting characters for spaces, allowing the text to wrap naturally across the page.
Websites often use manual line breaks (soft returns) or hard paragraph returns to format text blocks. By finding these specific hidden characters and replacing them with a standard space, you restore the document's ability to wrap text automatically.
Navigate to the Home tab and click the paragraph mark (¶) icon to display all hidden formatting symbols in your document.
Press Ctrl + H on your keyboard to open the Find and Replace dialog box.
In the 'Find what' box, type '^p' to search for paragraph marks, or '^l' to search for manual line breaks.
In the 'Replace with' box, type a single space. This ensures words are not mashed together when the break is removed.
Click 'Replace All' to remove the unwanted breaks. You can then apply your normal paragraph alignment and styling.

Clean Up Text Automatically Using AutoFormat
Apply Word's built-in AutoFormat feature to instantly clean up extra paragraph marks and weird spacing from web-copied text.
Fix Text Formatting Easily in WPS Writer
WPS Writer provides intuitive Find and Replace tools and seamless compatibility with Word documents, making it incredibly easy to clean up messy text pasted from the web.
- 1. Open WPS Writer: Launch WPS Writer and open the document containing the pasted website text.
- 2. Show Editing Marks: Click the 'Show/Hide Editing Marks' button on the Home tab to reveal the hidden line break symbols.
- 3. Use Find and Replace: Press Ctrl + H to open the Replace tab. Enter '^p' or '^l' in the 'Find what' field.
- 4. Replace with Spaces: Type a single space in the 'Replace with' field and click 'Replace All' to fix the text width.

Frequently Asked Questions
Why does pasted text look so narrow in Word?
Websites often use CSS constraints and manual line breaks for formatting. When you copy this text, Word carries over those hidden paragraph returns or line break characters, forcing the text to wrap to the next line before reaching the actual page margin.
What is the difference between ^p and ^l in document editors?
The '^p' code represents a standard paragraph mark created by pressing the Enter key. The '^l' code represents a manual line break (or soft return) created by pressing Shift + Enter, which starts a new line without starting a new paragraph.
How can I paste text from a website without keeping its font and color?
Right-click in your document where you want the text to go, and under Paste Options, select 'Keep Text Only' (the icon with an 'A'). This drops the source styling, though you may still need to remove hidden hard returns.
Is there a quick way to remove double spaces after fixing the line breaks?
Yes. Open the Find and Replace dialog (Ctrl + H), type two spaces in the 'Find what' field, type a single space in the 'Replace with' field, and click 'Replace All'. You can click it multiple times until it reports 0 replacements made.




