To delete an automatic horizontal line in Word for Microsoft 365 or Word 2024 on Windows, place your cursor immediately above it, open Home, select the arrow beside Borders and Shading, and choose No Border. This removes the paragraph border Word created automatically. If you can select the line as an object, use the drawing object steps below instead.
The short version
- Automatic line: In the Windows versions above, place your cursor immediately above the line and choose No Border from the border menu on Home.
- Just created: Press Backspace immediately after automatic line creation to cancel the conversion and keep the typed characters.
- Selectable object: Selecting a line and pressing Delete removes that drawing object in the Windows versions above.
- Future lines: In those Windows versions, uncheck Border Lines under AutoFormat As You Type to stop new automatic borders.
| Line or situation | Method | Applies to |
|---|---|---|
| Automatic paragraph border | No Border with the cursor above the line | Word for Microsoft 365 and Word 2024 for Windows |
| Automatic line just appeared | Immediate Backspace | Word for Microsoft 365 and Word 2024 for Windows |
| Creation remains in undo history | Undo | Word for Windows, Microsoft 365 and Word 2024 for Mac, and Word for the web |
| Repeated automatic borders | Uncheck Border Lines | Word for Microsoft 365 and Word 2024 for Windows |
| Selectable drawing line | Select it and press Delete | Word for Microsoft 365 and Word 2024 for Windows |
| Drawing object behind text | Selection Pane or Select Objects | Current desktop Word for Windows |
| Drawing object you want to keep | Hide it with the eye icon in Selection Pane | Current desktop Word on Windows and Mac |
| Horizontal page border | Design > Page Borders | Word for Microsoft 365 and Word 2024 on Windows and Mac |
| Table borders across an area | Table Design > Borders | Word for Microsoft 365 and Word 2024 for Mac |
| Individual table border | Table Design > Eraser | Word for Microsoft 365 and Word 2024 for Mac |
| Footnote separator | Select it in the Footnotes pane | Word for Microsoft 365 and Word 2024 on Windows and Mac |
| Line inside a header or footer | Edit the header or footer first | Word for Microsoft 365 and Word 2024 for Windows |
| Entire unwanted header or footer | Remove Header or Remove Footer | Desktop Word for Microsoft 365 and Word 2024 |
| Handwritten ink line | Draw > Eraser | Supported Word inking surfaces on Windows, Mac, iOS, and Android |
| Ink with a compatible active pen | Use the pen's physical eraser | Compatible devices and pens that support erasing |
| Shape or text-box outline | Shape Outline > No Outline | Word for Microsoft 365 for Mac, for borders added in Mac Office |
| Picture outline | Picture Border > No Outline | Word for Microsoft 365 for Mac, for borders added in Mac Office |
| Nonprinting drawing gridlines | Uncheck Gridlines | Word for Microsoft 365 for Windows |
| Existing text border in a browser | Open in Desktop App | Word for the web with licensed desktop Word installed |
| Operating controls by voice | Voice access numbered overlays | Windows 11 version 22H2 and later with voice access running |
| Automatic borders controlled through VBA | Disable automatic border creation programmatically | Desktop Word with VBA |
Remove the automatic paragraph border
An automatically created horizontal line is a paragraph border, so start with the paragraph border controls. These steps apply to Word for Microsoft 365 and Word 2024 for Windows.
This removes the paragraph border. Place your cursor immediately above the line, select Home, and open the arrow beside Borders and Shading. Choose No Border; the ribbon control is also called Borders.
If the line remains, check whether you can select it as a drawing object and use the object instructions below. You can add a line in Word in several ways, and its type determines which removal control you need.
Cancel a line that just appeared
Immediately after Word converts three typed characters into a horizontal line, you can cancel that conversion while keeping the characters. Press Backspace right away in Word for Microsoft 365 or Word 2024 for Windows. This works immediately after automatic creation, rather than on an older border elsewhere in the document.
Undoing an earlier line creation also reverses any intervening edits. When creation is still in the undo history, press Ctrl + Z in Word for Windows or Word for the web, or Command + Z in Word for Microsoft 365 or Word 2024 for Mac. If you need to keep later edits, use the removal method for the line type instead.
You can also select Undo on the Quick Access Toolbar in Word for Microsoft 365 for Windows. In Word for Microsoft 365 or Word 2024 for Mac, select Undo at the upper-left of the ribbon; in Word for the web, select Undo in the ribbon.
Stop Word from creating automatic lines
To prevent new automatic borders in Word for Microsoft 365 or Word 2024 for Windows, open File > Options > Proofing. Select AutoCorrect Options, then open AutoFormat As You Type. Uncheck Border Lines and select OK. Existing lines remain, so remove those with the paragraph border steps above.
If you already use VBA automation in desktop Word, you can disable the same automatic border behavior programmatically. This does not delete existing lines or enforce an organization-wide policy. Set the property with this VBA statement:
Options.AutoFormatAsYouTypeApplyBorders = FalseDelete a selectable line or reach one behind text
Deleting a selectable line removes that drawing object. In Word for Microsoft 365 or Word 2024 for Windows, select the line and press Delete. This also applies to selectable connectors and shapes, but not to automatic paragraph borders.
Deleting several selected objects removes all of them. To remove several lines, select the first, hold Ctrl while selecting the others, then press Delete.
For a line that is difficult to select in current desktop Word for Windows, open Home > Select > Selection Pane, then select the line object. You can also choose Home > Select > Select Objects for an object behind text. For overlapping objects, select the top object and press Tab or Shift + Tab to cycle through the stack.
The next action deletes the selected object. Once you have selected the intended line, press Delete. These selection tools target drawing objects, so use the border controls if the line is a paragraph border.
Open a browser document in desktop Word
Microsoft says Word for the web preserves existing text borders but does not let you edit or delete them. With an installed, licensed desktop Word application, select Editing > Open in Desktop App.
In desktop Word, use the removal method that matches both the line type and your version of Word. Save the document after making the change. For a line you just created in the browser, Undo remains an option while its creation is in the undo history.
Remove a page border or a header line
A horizontal page border has its own controls in Word for Microsoft 365 and Word 2024 on Windows and Mac. Open Design > Page Borders, then select the Page Border tab in Borders and Shading. Choose the intended scope under Apply to, because page borders apply by section.
Removing a single edge leaves the other page border edges in place. Select the unwanted horizontal edge in Preview, then select OK. Choosing None removes all page borders in the selected scope. If that is what you want, select None under Setting, then select OK.
For a line inside a header or footer in Word for Microsoft 365 or Word 2024 for Windows, double-click the existing header or footer to edit it. Apply the paragraph border or selectable object method above, depending on the line type. When finished, select Close Header and Footer or press Esc.
Removing the entire header or footer also removes its other content. Only if you want all of that content removed in desktop Word for Microsoft 365 or Word 2024, select Insert > Header > Remove Header, or Insert > Footer > Remove Footer.
Erase a table border on Mac
In Word for Microsoft 365 or Word 2024 for Mac, the table eraser removes the border you click. Click in the table, select Table Design > Eraser, then click the horizontal border. Press Esc when finished.
Removing all table borders also removes the vertical borders. To do that, click in the table and select Table Design > Borders > No Border. For a limited area, select the affected cells first, then use the Borders menu.
Remove the separator above footnotes
The line above footnotes has a separate editing location in Word for Microsoft 365 and Word 2024 on Windows and Mac. Select View > Draft, then double-click a footnote reference in the document body to open the Footnotes pane. In the Footnotes list, select Footnote Separator.
The next action deletes the separator line. Select that line and press Delete. Return to the usual page view through View > Print Layout.
Erase ink or remove an object outline
Erasing a hand-drawn line removes its digital ink. On supported Word inking surfaces for Windows, Mac, iOS, and Android, select Draw > Eraser and move the eraser over the line. On a touch device, drag it with a finger or pen. Eraser choices vary by platform, and this tool does not erase paragraph borders or ordinary line shapes.
Removing a shape or text-box outline keeps the object and its text. In Word for Microsoft 365 for Mac, select the shape or text box, then select Shape Format > Shape Outline > No Outline. This procedure cannot change or remove borders that were not added in Mac Office.
Removing a picture border removes its applied outline, rather than a line embedded in the picture's pixels. In Word for Microsoft 365 for Mac, select the picture, then choose Picture Format > Picture Border > No Outline. This procedure cannot change or remove a picture border that was not added in Mac Office.
Frequently Asked Questions
Can I hide a line without deleting it?
Yes, you can hide a drawing object through the Selection Pane in current desktop Word. On Windows, open Home > Select > Selection Pane; on Mac, select an object, then open Home > Arrange > Selection Pane. Select the eye icon beside the line to change its visibility without deleting it.
Will the drawing gridlines print with my document?
No, drawing gridlines are visual alignment guides and do not print. To hide them in Word for Microsoft 365 for Windows, open View and uncheck Gridlines.
Does the paragraph formatting shortcut remove a horizontal line?
Microsoft describes Ctrl + Q as removing paragraph formatting, but its line-removal steps for Word for Microsoft 365 and Word 2024 for Windows use No Border instead. Place your cursor immediately above the line, select the arrow beside Borders and Shading on Home, and choose No Border.
Can I erase an ink line with my pen's eraser?
Yes, using a compatible active pen's eraser removes the digital ink you erase. On a compatible device, move the pen's eraser over the ink line. Microsoft identifies Surface Pen as an example that can do this without first selecting the ribbon's Eraser.
Can I operate the line removal controls by voice?
Yes, with voice access already running on Windows 11 version 22H2 or later, say Show numbers to display numbered overlays. Say Click <number>, replacing the placeholder with the displayed number, to operate the applicable Word controls. The available controls depend on your installed Word edition; voice access operates the interface rather than providing a dedicated horizontal-line removal command.