Microsoft Word creates lines in documents for several reasons, and understanding where they come from is the first step toward removing them. Lines aren't always mistakes—sometimes Word inserts them intentionally based on your formatting choices, while other times they appear as accidental byproducts of how you've structured your document.
Learn About SSDI and Income Reporting Rules →
The most common source of unwanted lines comes from the paragraph borders feature. When you apply a border to a paragraph, Word draws a line around it. This happens frequently when someone copies text from another document or email, and the formatting tags along with it. You might paste a sentence and suddenly find a box or line surrounding it with no clear explanation of where it came from.
Another frequent culprit is the horizontal line that appears when you type three or more hyphens, underscores, or equal signs and press Enter. Word interprets this as an instruction to create a line. For example, if you type "---" and hit Enter, Word automatically converts it into a full-width horizontal line. The same happens with "___" or "===". This feature, called AutoFormat, was designed to speed up document creation but often catches users off guard.
Page breaks and section breaks can also create visible lines or spacing that looks like lines. When you insert a manual page break using Ctrl+Enter, it forces content to the next page, and the transition might appear as a line, especially if your view settings are adjusted to show formatting marks.
Less obviously, table borders and shading can create line-like appearances. If you've inserted a table and adjusted its borders or cell shading, these can look like unwanted lines running through your document. Similarly, text boxes with borders or hyperlinks with underlines sometimes get mistaken for lines that need removal.
Takeaway: Before removing any line, identify what created it. Is it a border, an AutoFormat conversion, a page break, or part of a table? The method you use depends on the source, so taking a moment to pinpoint the cause saves time and prevents accidental deletion of important formatting.
If the lines you're seeing surround paragraphs or sections of text, they likely come from the borders and shading feature. Word applies these through the Format menu, and that's also where you remove them. This method works on any version of Word from 2010 onward, including Word Online.
Learn How to Send Group Texts on iPhone →
Start by selecting the paragraph or text that has the unwanted border. Click and drag to highlight the text, or click anywhere within the bordered paragraph. If multiple paragraphs have borders, you can select them all at once by holding Ctrl and clicking in each one.
Once your text is selected, open the Format menu at the top of your document. In Word for Windows, this appears in the menu bar. In Word for Mac, it's also in the top menu. Look for "Paragraph" option and click it. A dialog box opens with several tabs—you want the one labeled "Borders and Shading."
In the Borders tab, you'll see preset options on the left side. Look for the option that shows no borders—this is typically labeled "None" and appears as an empty square or box outline with no lines. Click this option. You'll see a preview area on the right side of the dialog box show your paragraph without borders as you make this selection.
After selecting "None," click OK to apply the change. The border disappears immediately. If you have multiple paragraphs with borders throughout your document, you can repeat this process for each one, or you can select all text using Ctrl+A and apply the "None" setting to remove all paragraph borders at once.
Takeaway: The Borders and Shading dialog is your primary tool for removing unwanted paragraph borders. Always look for the "None" preset option, which strips away all border formatting with a single click.
Word's AutoFormat feature can convert typing patterns into formatted elements without asking permission. When you type three hyphens, three underscores, or three equal signs and press Enter, Word instantly transforms that line into a full-width horizontal line spanning the page. This catches many users by surprise, especially those working quickly who don't notice the conversion happening.
Learn About Email Address Ownership Information →
To remove a line that was created this way, select it first. Place your cursor anywhere on the line—you don't need to select the entire line, just click once on it. Then press Backspace or Delete. The line vanishes. If you typed the hyphens or underscores directly above or below this line, those characters may also disappear when you delete the formatted line, since Word replaced them with the line itself.
To prevent this from happening in the future, you need to adjust AutoFormat settings. Open the File menu and select Options (in Word for Mac, this is Preferences). In the Options dialog, find AutoCorrect Options—this might be under "Proofing" depending on your Word version. Click AutoCorrect Options to open another dialog.
Look for the AutoFormat or AutoFormat As You Type tab. Here you'll find a checkbox for "Automatic Horizontal Lines." Uncheck this box, and Word stops converting your hyphens and underscores into lines. Some users prefer to keep this feature on if they intentionally create decorative lines, but if you type these characters as part of your normal writing, disabling this option prevents accidental conversions.
Another related setting is "Automatic Numbered Lists" and "Automatic Bulleted Lists." These can also create unwanted formatting if you type characters that Word interprets as list instructions. Review all AutoFormat options and disable any that don't match your document creation style.
Takeaway: You can remove accidental AutoFormat lines by pressing Delete, and you can prevent future ones by turning off automatic line creation in Word's AutoCorrect settings. Most users benefit from disabling this feature if they regularly type multiple hyphens or underscores.
When you copy text from websites, emails, or other Word documents and paste it into your document, formatting often comes along for the ride—including borders, lines, and other visual elements you didn't intend to include. This is one of the most frustrating sources of unwanted lines because you can't always see where the formatting originated.
Learn About Dental Implant Options in Capitol Heights →
The most effective solution is to use Paste Special instead of regular paste. After copying your text, place your cursor where you want it in your document. Instead of pressing Ctrl+V (or Cmd+V on Mac), use Ctrl+Shift+V. A dialog box appears asking what format you want to paste in. Select "Unformatted Text" or "Text Only." This strips away all formatting, including borders and lines, leaving only the actual text content.
If you've already pasted content with unwanted lines, you can still fix it. Select the pasted text—ideally the whole section that came from the outside source. Then use Paste Special with the "Unformatted Text" option to replace it. The new version contains no formatting.
Another approach is to use the Clear Formatting button. Select the text that contains unwanted lines, then look for the Clear Formatting option. In Word for Windows, this is in the Home tab and looks like an eraser or the letter "A" with a red X. Click it and Word removes all direct formatting from the selected text, including borders and lines. Note that this doesn't always remove formatting that was applied to the paragraph itself rather than the text, so you may still need to use the Borders and Shading dialog afterward.
Some users prefer to paste into Notepad first—a plain text editor—and then copy from Notepad into Word. This two-step process ensures all formatting is stripped. The trade-off is that you lose intentional formatting like bold or italics, so this method works best when you're importing basic text that you'll reformat in Word anyway.
Takeaway: Use Paste Special with "Unformatted Text" when bringing content into Word from external sources. If unwanted lines already appear, select the content and use Clear Formatting or re-paste it using the plain text option.
Tables in Word documents include borders by default, and these borders can look like unwanted lines if you didn't realize you had
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.