How to Restore Missing Table Borders When Pasting from Website to Word
Question details
The user needs to retain or re-apply table borders after copying a table from a web page and pasting it into a Word document.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Copying a data table from a website and pasting it into a document for further editing, formatting, or printing.
- Observed behavior
- The table content pastes successfully, but the gridlines or borders are missing because the web HTML formatting is not fully preserved during the paste action.
Ensure you have highlighted the entire table from the website, including its outer edges. It often helps to paste the content into a new, blank document first to adjust the formatting before inserting it into your final draft.
Use the Keep Source Formatting Paste Option
The easiest way to retain the original web table's borders is by selecting the correct paste option right from the start.
When copying from a browser, the clipboard stores multiple formats. Forcing Word to keep the source formatting instructs it to read the HTML styling as closely as possible.
Navigate to your Word document and right-click on the exact spot where you want the table to appear.
In the context menu, look for the 'Paste Options' section which displays several clipboard icons.
Click on the 'Keep Source Formatting' icon (usually represented by a paintbrush or a document with its original formatting symbol) to paste the table with its web borders.
Manually Reapply Borders Using Table Tools
If pasting with source formatting fails to bring over the borders, you can easily add them back using the built-in table design tools.
Effortlessly Paste and Format Web Tables with WPS Writer
WPS Writer offers excellent HTML clipboard compatibility, making it seamless to paste web tables with their original borders intact. You can quickly adjust layouts, manage borders, and format data using intuitive table tools.
- 1. Copy the web table: Highlight the entire table on the webpage and press Ctrl+C to copy it.
- 2. Paste into WPS Writer: Open a document in WPS Writer, right-click on the page, and select 'Keep Source Formatting' from the paste options.
- 3. Customize borders: If adjustments are needed, select the table, go to the 'Table Tools' tab, and use the 'Borders' tool to customize the gridlines to your liking.

Frequently Asked Questions
Why do web tables lose their borders when pasted into a document?
Web tables often use advanced CSS (Cascading Style Sheets) to display custom borders. Word processors primarily read standard HTML table tags, which means some CSS-based visual elements, including complex borders, get lost during the clipboard transfer.
Can I show table gridlines while editing without printing them?
Yes. If your table lacks borders, you can select it, go to the Table Layout tab, and click 'View Gridlines'. This displays dotted lines to help you see the table cells while editing, but these lines will remain invisible when the document is printed or exported to PDF.
How do I adjust the messy column widths of a pasted web table?
Select the entire table, go to the Table Layout tab, and click 'AutoFit'. You can choose 'AutoFit Contents' to wrap the columns tightly around the text, or 'AutoFit Window' to stretch the table evenly across the margins of your page.




