logo
search
Formatting Issues

How to Restore Missing Table Borders When Pasting from Website to Word

John WilsonJohn Wilson Oct 22, 2026 869 views

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.

How to Restore Missing Table Borders When Pasting from a Website into Word
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.
Before you start

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.

Solution 1Recommended

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.

1
Right-click the destination area

Navigate to your Word document and right-click on the exact spot where you want the table to appear.

2
Locate Paste Options

In the context menu, look for the 'Paste Options' section which displays several clipboard icons.

3
Select Keep Source Formatting

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.

Web Formatting Limits: Some websites use complex CSS styles for borders that word processors cannot interpret perfectly. If the borders still do not appear, you will need to apply them manually.
Manage Web Tables Easily

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. 1. Copy the web table: Highlight the entire table on the webpage and press Ctrl+C to copy it.
  2. 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. 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.
Highly compatible with Microsoft Word documents and formats (.docx).Accurate retention of web table formatting and standard HTML styles when pasting.Free, lightweight, and easy-to-navigate interface for quick document editing.
QA img-9

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.