logo
search
Formatting Issues

How to Fix Black Horizontal Line Appearing in Word File Sent via Gmail

Nimra MalikNimra Malik Oct 16, 2026 869 views

Question details

The user needs to resolve an issue where an unexpected black horizontal line appears in a Word document after it has been attached and sent through Gmail.

How to Fix Black Horizontal Line Appearing in Word File Sent via Gmail
Product
Word
Device & OS
not provided
Scenario
Sending a Word document as an email attachment through Gmail without converting it to a PDF.
Observed behavior
A black horizontal line appears in the received Word document, despite not being visible in the original file, header, or footer.
Before you start

Ensure that the 'Show/Hide ¶' feature is turned on in your word processor so you can reveal hidden formatting marks or paragraph borders that might be causing the line.

Solution 1Recommended

Copy Content to a New Blank Document

Transferring your text to a fresh file strips out corrupted background formatting that might trigger the black line when the file is processed by an email client.

Hidden document corruption or lingering code in the header/footer section can sometimes cause display anomalies when a file is parsed by Gmail's viewer or re-opened. Copying only the core content into a fresh file usually leaves the corrupted formatting behind.

1
Select the main document content

Highlight all the text in your original Word document, taking care to exclude the very last paragraph mark or the header and footer areas.

2
Copy the text

Press 'Ctrl + C' on your keyboard to copy the selected text.

3
Paste into a new document

Open a new blank Word document and press 'Ctrl + V' to paste the content.

4
Save and test

Save the newly created document with a new file name and try emailing this new version via Gmail.

Copy Content to a New Blank Document
Pro Tip: If the recipient previews the document in Google Docs, ask them to download and open it in a desktop Word processor to see if the line persists.
Efficient Word Processing

Use WPS Writer to Easily Manage Document Formatting

WPS Office offers robust formatting tools that help you easily spot and remove hidden lines, borders, and page breaks. It handles complex documents smoothly and ensures your files look exactly the same before and after emailing.

  1. 1. Open your file in WPS Writer: Launch WPS Office, select 'Writer', and open the problematic document.
  2. 2. Reveal hidden formatting marks: Navigate to the 'Home' tab and click the 'Show/Hide ¶' icon to display hidden page borders or paragraph lines.
  3. 3. Remove paragraph borders: Select the text around the black line, go to the 'Home' tab, click the 'Borders' dropdown menu, and select 'No Border'.
  4. 4. Save and email securely: Save the document as a .docx file and attach it to your Gmail message. The formatting will remain stable and pristine.
Full compatibility with Microsoft Word (.doc, .docx) formats.Advanced Show/Hide paragraph marks to easily spot hidden formatting.Lightweight and free to use, ensuring smooth document processing without heavy resource usage.Consistent file rendering across different platforms and email services.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Gmail alter my Word document's formatting?

Gmail itself generally does not alter attachments. However, if the recipient previews the document using Google Docs or Gmail's built-in viewer, unsupported or hidden formatting (like specific paragraph borders) from Microsoft Word may be rendered incorrectly, creating the illusion of a new black line.

Can AutoFormat paragraph borders cause horizontal lines?

Yes. A very common cause of a phantom black line is an 'AutoFormat' paragraph border created by typing three hyphens (---) and pressing Enter. This border attaches to the paragraph itself rather than existing as a standalone line shape, which can make it behave inconsistently across different document viewers.

How can I check if the line is a page border?

Go to the 'Design' or 'Page Layout' tab, click on 'Page Borders', and verify that the setting is set to 'None'. Sometimes, an accidental bottom page border will only become visible under certain viewing, emailing, or printing conditions.

Why shouldn't I just send the file as a PDF?

While sending a PDF locks the formatting and guarantees that lines will not shift or appear unexpectedly, it is not an option if the recipient needs to edit, sign, or natively fill out the word processing document.