Word Horizontal Line: Stop Drawing Manually, Use This
In this article
Stop drawing horizontal separator lines manually in Word—use the built-in AutoFormat line or the Borders command instead. These methods create a clean, consistent line that stays attached to the paragraph above it and can be removed or styled in one click, saving you time and frustration.
Why Manual Lines Cause Problems
Many people create separator lines by typing a row of underscores, hyphens, or equal signs, then pressing Enter. Others draw a line shape from the Insert tab. Both approaches have drawbacks:
- Underscores and hyphens look uneven and shift when you change the font or spacing.
- Shape lines float independently of your text, so they can drift to another page when you edit, and they don't align with your paragraph margins automatically.
- Copying and pasting manual lines often brings extra spacing or formatting that breaks your layout.
The built-in methods in Word are faster, more reliable, and easier to maintain.
The AutoFormat Line Method (Fastest)
Word has a hidden shortcut that turns certain characters into a full-width horizontal line when you press Enter. This is part of Word's AutoFormat As You Type feature, and it works in all modern desktop versions of Word (2010 through Microsoft 365).
- Place your cursor at the start of a new line (or at the end of the paragraph where you want the line to appear below).
- Type three consecutive characters from the list below (no spaces between them).
- Press Enter immediately.
Here are the characters and the line styles they produce:
- --- (three hyphens) → a thin single line
- === (three equal signs) → a double line
- ___ (three underscores) → a bold single line
- *** (three asterisks) → a dotted line
- ### (three hash marks) → a triple line with a thick center
- ~~~ (three tildes) → a wavy line
The line becomes the bottom border of the paragraph you were typing in. It spans the full width of your text area and automatically adjusts if you change margins or page size.
The Borders Command Method (More Control)
If you want a line that is not at the very bottom of a paragraph, or you need to customize its thickness, color, or position, use the Borders command instead.
- Place your cursor in the paragraph where you want the line to appear (usually the paragraph above where the line should sit).
- Go to the Home tab.
- In the Paragraph group, click the small arrow next to the Borders button (it looks like a square with four lines).
- Choose Bottom Border from the drop-down menu.
This applies a line under the entire paragraph. To customize it, click Borders and Shading… at the bottom of the same menu. There you can change the line style (solid, dashed, wavy), color, and width. You can also apply a border to the top, left, or right of the paragraph, or create a box around it.
How to Remove a Line You No Longer Want
Both methods create a paragraph border, so removing them is simple:
- AutoFormat line: Click directly above the line (in the paragraph that has the border), go to Home → Borders → and select No Border.
- Borders command line: Same steps—select the paragraph, then choose No Border from the Borders menu.
- Keyboard shortcut: With your cursor in the paragraph, press Ctrl+Q to remove paragraph formatting (this removes the border but also resets other paragraph formatting).
If the line is a shape (from Insert → Shapes), you can select it and press Delete. But you'll likely want to switch to the border method to avoid future issues.
Why Not Use a Shape or Table?
Shapes and tables are sometimes used for lines, but they come with trade-offs:
- Shapes (like a straight line from Insert → Shapes) are floating objects. They don't move with your text, can overlap content, and may not print at the exact spot you expect if the page breaks.
- Tables with a bottom border can work, but they add structure that can complicate screen readers and copy-pasting. A simple border on a paragraph is cleaner.
- Horizontal Line button (under Home → Borders → Horizontal Line) inserts a graphic line that is actually a bottom border on an empty paragraph. It works fine, but it's less flexible than the Borders command because you can't easily change its color or thickness without opening Borders and Shading.
For most documents, the AutoFormat or Borders method is the best balance of speed and control.
Common Problems and Fixes
- The AutoFormat line doesn't appear. Make sure you type exactly three characters and press Enter immediately. If it still doesn't work, check that AutoFormat is enabled: File → Options → Proofing → AutoCorrect Options → AutoFormat As You Type → check “Border lines.”
- The line is too thick or thin. Click the paragraph, go to Borders and Shading, and change the width (1 pt is thin, 3 pt is thick).
- The line is the wrong color. In Borders and Shading, choose a color from the Color drop-down. Note that the default is black, but you can match your document theme.
- The line moves when I edit text. That's normal—it's attached to the paragraph above. If you want the line to stay at a fixed position on the page, you'd need a shape, but that's rarely what you actually want.
- I can't delete the line by pressing Backspace. Because it's a border, not a character, you must use the No Border option or Ctrl+Q.
Frequently Asked Questions
How do I make a line that is not the full width of the page?
Use a table with a single cell, set the cell width to the desired length, and apply a bottom border to that cell. Or use a shape line and drag it to the exact length—but remember it won't move with text.
Can I make a vertical line the same way?
Yes, but not with the AutoFormat trick. Use the Borders command and select Left Border or Right Border. That will put a vertical line along the edge of the paragraph.
Why does my line disappear when I convert to PDF?
Borders usually convert fine. If it disappears, it may be a color issue (white border) or the PDF viewer is not rendering the border. Try changing the border color to black and re-export.
Does this work in Word for Mac?
Yes, the same AutoFormat shortcuts and Borders commands exist in Word for Mac. The menu names are the same, though the keyboard shortcut for removing formatting is Cmd+Q instead of Ctrl+Q.
Can I save a custom line style for reuse?
Yes. Create a paragraph with the border you like, then select the paragraph and go to Home → Styles → Create a Style. Name it “Separator Line” and it will appear in your Styles gallery for one-click reuse.