How to Fix Table Cell Spacing When Pasting from Web to Word
Question details
The user needs to control or change the default table cell spacing and formatting when pasting a table from a web page into Microsoft Word.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Pasting a table copied from a web browser into a Word document.
- Observed behavior
- The pasted table has inconsistent cell spacing, borders, and shading depending on the browser used (e.g., Firefox vs. Safari) and the source website's HTML formatting.
Ensure you have the source web page open and your Word document ready. It is also helpful to have an alternative web browser installed for testing clipboard behaviors.
Adjust Paste Options and Table Properties in Word
Use Word's built-in paste options to strip unwanted web formatting, or manually adjust the table properties to remove default cell spacing.
Copy the table from the web page. Right-click in your Word document where you want to insert the table and select 'Merge Formatting' under Paste Options. This keeps the table structure but applies Word's default styling.
If the table is already pasted, click anywhere inside the table. A crosshair icon will appear in the top-left corner; click it to select the entire table, then right-click and choose 'Table Properties'.
In the Table Properties dialog box, go to the 'Table' tab and click the 'Options' button at the bottom.
Uncheck the box that says 'Allow spacing between cells' to remove the web spacing entirely, or check it and enter your preferred measurement (e.g., 0.00 inches). Click 'OK' to apply.

Copy the Table Using a Different Web Browser
Different browsers handle clipboard data differently. Switching browsers can change how the table formatting is transferred to Word.
Easily Manage Table Formatting with WPS Writer
WPS Office provides excellent compatibility and intuitive paste options, allowing you to seamlessly copy tables from web pages without carrying over messy HTML cell spacing or shading.
- 1. Copy the Web Table: Highlight and copy the desired table from your web browser.
- 2. Open WPS Writer: Launch WPS Office and open your document in WPS Writer.
- 3. Use Paste Special: Click the drop-down arrow under the 'Paste' button on the Home tab and select 'Paste Special'.
- 4. Select Unformatted Text: Choose 'Unformatted Text' to remove all web spacing and shading, or use 'Match Destination Formatting' to keep the grid intact.
- 5. Apply Table Styles: Use the Table Tools tab to quickly apply a clean, uniform table style to your newly pasted data.

Frequently Asked Questions
Why does my table look different when copied from Chrome versus Firefox?
Different web browsers use varying engines to render HTML and copy it to your system's clipboard. This means one browser might copy the exact CSS cell spacing and shading, while another might only copy the basic table structure, resulting in different appearances when pasted into Word.
How do I manually change the cell spacing of a pasted table in Word?
Select the entire table, right-click and choose 'Table Properties'. Go to the 'Table' tab, click 'Options', and check or uncheck 'Allow spacing between cells'. You can then enter your desired spacing measurement.
Can I prevent Word from pasting web formatting by default?
Yes. In Word, go to File > Options > Advanced. Scroll down to the 'Cut, copy, and paste' section, and change the setting for 'Pasting from other programs' to 'Keep Text Only' or 'Merge Formatting'.




