How to Fix Word Layout and Margins Changing After Pasting from the Web
Question details
Users experience unexpected changes in document margins, paragraph positioning, and vertical alignment when pasting text from websites.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Copying content from a web browser and pasting it directly into a Word document.
- Observed behavior
- Text gets placed in the middle of the page instead of the top, margins change unexpectedly, and overall paragraph positioning is disrupted.
Before troubleshooting, enable formatting marks (by clicking the '¶' icon on the Home tab) so you can clearly see hidden layout elements like manual line breaks, indents, and spaces imported from the web.
Change Page Vertical Alignment to Top
Web content can sometimes alter your page setup to vertically center text. Changing this back to 'Top' resolves the issue where text appears stuck in the middle of the page.
When text automatically positions itself in the middle of the page regardless of line breaks, the document's vertical alignment setting has likely been altered by the pasted HTML code.
Navigate to the 'Page Layout' or 'Layout' tab on the top ribbon and click the 'Page Setup' dialog box launcher (the small arrow in the bottom right corner of the group).
In the Page Setup window, click on the 'Layout' tab.
Locate the 'Page' section and change the 'Vertical alignment' dropdown from 'Center' to 'Top'.
Click 'OK' to apply the settings. Your text should immediately snap back to the top of the document.

Use the Keep Text Only Paste Option
To prevent web formatting from disrupting your document's layout in the first place, paste the content without its original HTML styling.
Clear Unwanted Formatting and Line Breaks
Pasted web text often carries invisible paragraph indents or extra line breaks that skew the layout.
Manage Document Formatting Effortlessly in WPS Writer
WPS Writer offers an intuitive interface to easily manage page layouts, clear unwanted web formatting, and keep your documents looking professional without the hassle.
- 1. Open your document: Launch WPS Writer and open the document you wish to edit.
- 2. Paste without web styles: To paste cleanly, click the dropdown arrow under 'Paste' on the Home tab and select 'Keep Text Only'.
- 3. Adjust page alignment: To fix centering issues, go to the 'Page Layout' tab, click 'Page Setup', select 'Layout', and set Vertical Alignment to 'Top'.

Frequently Asked Questions
Why does text copied from a website look so different in Word?
Web text carries underlying HTML formatting, including hidden tables, CSS margins, custom fonts, and line breaks. Word attempts to replicate these styles, which can drastically alter your document's default layout and margins.
How do I make 'Keep Text Only' my default paste option?
In Word, go to File > Options > Advanced. Scroll down to the 'Cut, copy, and paste' section and change the 'Pasting from other programs' dropdown to 'Keep Text Only', then click OK.
What does the '¶' symbol do in Word?
The '¶' symbol toggles the display of hidden formatting marks. It shows where paragraphs end, where manual line breaks are inserted, and where spaces or tabs exist, making it much easier to troubleshoot sudden layout shifts.
Can I remove all formatting from a selected paragraph at once?
Yes. Select the text you pasted, navigate to the Home tab, and click the 'Clear All Formatting' button (usually indicated by an 'A' with a pink eraser) to revert it to the document's default text style.




