How to Insert a Horizontal Line in Word
In this article
This guide shows you how to insert a horizontal line in Microsoft Word using several methods, including the built-in Borders tool, keyboard shortcuts, and the Shapes menu. You'll learn the fastest way for each situation and how to customize or remove the line afterwards. No prior experience is needed—just have your Word document open.
What You'll Need
- Microsoft Word (2016, 2019, 2021, or Microsoft 365) on Windows or Mac
- A document where you want the line to appear
- Cursor placed at the spot where the line should start
Step-by-Step
Method 1: Using the Borders Tool (Most Common)
- Place your cursor where you want the horizontal line to appear (usually on a new, blank line).
- Go to the Home tab on the ribbon.
- In the Paragraph group, click the Borders button (it looks like a square with a bottom border). A drop-down menu appears.
- Select Horizontal Line from the menu. A line will be inserted across the width of your text area.
- To change the line's style (color, thickness, or design), double-click the line. The Format Horizontal Line dialog box opens.
- Adjust the width, height, color, and alignment as desired, then click OK.
Method 2: Using Keyboard Shortcuts (Fastest for a Plain Line)
- Place your cursor on a new, blank line.
- Type three consecutive hyphens (
---) and press Enter. - Word automatically converts the hyphens into a thin horizontal line spanning the page width.
- For different line styles, use these shortcuts instead of hyphens:
***(asterisks) → dotted line___(underscores) → bold line===(equals signs) → double line###(hash signs) → thick line with thin borders~~~(tildes) → wavy line
- If the auto-format doesn't happen, go to File > Options > Proofing > AutoCorrect Options and ensure the “Border lines” box is checked under the “Apply as you type” section.
Method 3: Using the Shapes Menu (For a Draggable Line)
- Go to the Insert tab.
- In the Illustrations group, click Shapes.
- Under Lines, select the first option (a straight line).
- Your cursor becomes a crosshair. Click and drag on the document to draw the line.
- To make it perfectly horizontal, hold the Shift key while dragging.
- Release the mouse button to place the line. You can then drag its endpoints to adjust length and angle.
Method 4: Using the Bottom Border (For a Line Under Text)
- Highlight the paragraph(s) where you want a line underneath.
- Go to Home > Borders (the same button as in Method 1).
- Select Bottom Border from the drop-down. A line appears directly beneath the selected text.
- To remove it, select the text again, click Borders, and choose No Border.
Common Mistakes
- Using the hyphen shortcut and getting a line that won't delete: The auto-generated line is actually a bottom border on the paragraph above. To remove it, place your cursor in that paragraph, go to Borders > No Border.
- Drawing a slanted line with the Shapes tool: Forgetting to hold Shift results in a diagonal line. Always hold Shift for a straight horizontal line.
- Inserting a line in the middle of a sentence: The line will split your text awkwardly. Always insert on a blank line.
- Using the Borders tool and getting a line that extends only partway: The line width is based on the paragraph's indentation. If you have indents, the line will be shorter. Adjust the paragraph's left and right indents to change the line length.
Tips
- To create a line that spans the full page margin, use the keyboard shortcut (Method 2) or the Borders > Horizontal Line option—both automatically match your page width.
- For a decorative line, double-click the line after inserting it via Borders to open the formatting dialog and choose a preset style like “Triple” or “Shadow.”
- If you need to move the line later, the Borders-inserted line is anchored to a paragraph. Use the Shapes line if you want to freely move it anywhere on the page.
- To quickly duplicate a line, copy and paste it (Ctrl+C, Ctrl+V) instead of recreating it.
Troubleshooting
- The line doesn't appear when I type three hyphens and press Enter: This auto-format feature may be disabled. Go to File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type and check the “Border lines” box.
- The line is too thick or too thin: For Borders-inserted lines, double-click the line to open the Format Horizontal Line dialog and adjust the height. For Shapes lines, right-click the line, select Format Shape, and change the Weight under Line options.
- I can't select the line to delete it: If it's a Borders line, it's attached to the paragraph above. Click in that paragraph and use Borders > No Border. If it's a Shapes line, click directly on it—if it's behind text, use the Selection Pane (Home > Select > Selection Pane) to find it.
- The line is not straight when using the Shapes tool: Delete it and redraw while holding the Shift key. This constrains the line to 15-degree angles, including horizontal.
- The line extends beyond the margin: This usually happens with Shapes lines. Drag the endpoints inward to align with the margins, or use the Borders method which automatically respects margins.
Frequently Asked Questions
Why does typing three hyphens create a line?
Word's AutoFormat feature detects the pattern and replaces it with a bottom border on the paragraph. This is a quick shortcut, but the resulting line is not a separate object—it's a paragraph border.
Can I change the color of the horizontal line?
Yes. For Borders-inserted lines, double-click the line and choose a color in the Format Horizontal Line dialog. For Shapes lines, right-click and select Format Shape, then set the line color.
How do I remove a horizontal line that won't delete with Backspace?
If the line was created with the hyphen shortcut, it's a bottom border. Place your cursor in the paragraph above the line, go to Home > Borders, and choose No Border. For other lines, click on the line and press Delete.
Can I insert a horizontal line in Word Online (free web version)?
Yes, but the keyboard shortcuts may not work. Use the Insert > Drawing > Shapes option to draw a line, or use the Borders button under Home (if available). The feature set is more limited than the desktop version.
How do I make the line span only part of the page?
Use the Shapes tool to draw a line of any length. Alternatively, for a Borders line, adjust the paragraph's left and right indents before inserting the line.
Is there a way to insert multiple lines at once?
You can copy and paste an existing line, or use the Borders tool on multiple paragraphs at once by selecting them and applying the bottom border. For Shapes, you can copy and paste the line object as many times as needed.