To insert a line in Microsoft Word, type three hyphens (---) on a blank paragraph and press Enter; Word usually turns them into a horizontal border. For a line you can position or resize, choose Insert > Shapes > Lines > Line and drag across the page.
Choose the right kind of line
Word offers several ways to make something that looks like a line, but they behave differently. Picking the right method matters when you later edit text, change the layout, or try to move the line.
- Automatic horizontal border: A quick divider that spans the paragraph area. It is attached to a paragraph, not an independent drawing object.
- Line shape: A graphic object that you can move, resize, rotate, and style. Use it when its position or length needs to be precise.
- Paragraph border: A rule above, below, or around a paragraph. This is useful for structured sections and headings.
- Underline or tab leader: A line that belongs with text, often used for a form field or signature space.
A line break is different: it moves the insertion point to another line but does not draw anything. Likewise, typing a row of hyphens without triggering AutoFormat leaves ordinary characters in the document. The sections below explain how to make each kind of line and when to use it.
Insert a quick horizontal line with hyphens
For a simple divider between sections, click in an empty paragraph and type three hyphens in a row. Press Enter, and Word may replace the hyphens with a horizontal rule. The rule generally runs across the available text width, between the document margins. It is fast, but it is a paragraph border rather than a free-floating line.
- Place the cursor in a new, otherwise empty paragraph where you want the divider.
- Type
---using the regular hyphen key, not an em dash or a long row of underscores. - Press Enter. If AutoFormat is enabled, Word converts the characters into a border.
This behavior comes from Word’s AutoFormat As You Type feature. If the three hyphens remain visible, open File > Options > Proofing > AutoCorrect Options, then select the AutoFormat As You Type tab and check Border lines. The wording or location may differ slightly in some releases. On Word for Mac, look under Word > Preferences (or Settings) > AutoCorrect > AutoFormat As You Type, then enable the border-lines option if it is available.
Because this method makes a paragraph border, it may appear to stretch or shift when you change the paragraph width, indentation, or page margins. It is a good choice for an uncomplicated full-width separator, but not for a short line that must sit at an exact point on the page.
Draw a line with the Shapes tool
Use a shape when you want control over a line’s length, placement, or appearance. In Word for Microsoft 365 on Windows, select Insert > Shapes, then choose Line from the Lines group. The pointer changes to a crosshair. Click where the line should begin, drag to its endpoint, and release.
To make the line exactly horizontal or vertical, hold Shift while dragging. After drawing it, select the shape to display the Shape Format tab. Use Shape Outline to choose a color, weight, or dash style. You can also drag an endpoint or a selection handle to adjust the line; the rotation handle changes its angle.
A shape can overlap text or other objects, so its wrapping setting matters. With the shape selected, use the Layout Options button beside it, or open Shape Format > Wrap Text. In Line with Text, the object behaves more like a large character in a paragraph. Other wrapping choices let text flow around or behind it. For a plain divider in a document, a paragraph border is often easier to keep aligned; for a diagram, annotation, or short rule, a shape is usually more flexible.
On Mac, the corresponding route is Insert > Shapes > Line, followed by dragging on the page; hold Shift to constrain the angle. Ribbon labels can vary by Word build. Word for the web has a more limited set of drawing and formatting controls than the desktop app, so if a shape’s placement or styling is unavailable, open the document in the desktop version.
Add a line using paragraph borders
Paragraph borders are useful when you want a line tied to a particular paragraph, such as a heading, note, or section label. Click in the paragraph, then on Windows choose Home > Paragraph > Borders and open the Borders menu. Choose Bottom Border to add a rule beneath the paragraph. Depending on the ribbon layout, the Borders button may appear as a small square icon with a dropdown arrow.
The border belongs to the paragraph, not just the words in it. If the paragraph wraps onto multiple lines, the border still appears at its bottom. It also follows paragraph alignment and indentation. For a border above the paragraph, choose Top Border. The menu includes other border options, but avoid selecting outside or inside borders unless you want lines around or between multiple selected paragraphs.
For more control, open the Borders and Shading dialog from the Borders menu. There you can select a line style, color, and width, and use the preview to specify which sides receive a border. The Apply to setting lets you apply formatting to a paragraph or, where relevant, selected text. On Mac, use the Home tab’s Borders control; the exact dialog arrangement can differ, but the same principle applies. A border is often more stable than drawing a shape when the line should track a paragraph as the text is edited.
Make a line for a form or signature
A full-width divider is not always the best way to create a blank to fill in. For a short signature line or a name field, consider what users will do with the document. A row of underscore characters is simple, but it can look uneven when the font changes, and typing over it may push or erase the underscores.
For a fixed printable form, a line shape is one option: draw a short horizontal line where the signature belongs, then add a label such as “Signature” in a separate paragraph. Another option is a bottom border on a paragraph or table cell. A table with its other borders turned off can keep a label and a writing line aligned more reliably than spaces or repeated underscores, particularly if the document may be edited or printed at different sizes.
For a line that a person types on, use a tab stop with a leader rather than manually inserting many periods or underscores. In Word’s Paragraph dialog, choose Tabs, set a tab-stop position, select an underline-style leader, and set the tab. The exact dialog route may vary with the ribbon, but the key is to use a tab stop instead of a string of characters: the leader adjusts more predictably as the text changes. For a fillable electronic form, a content control or form field may be more appropriate than a visual line alone.
Format, select, and remove a line
How you edit or delete a line depends on how it was created. A shape is selected by clicking its edge; selection handles appear when Word has selected the object. You can then move it, resize it, change its outline, or press Delete. If clicking selects text instead, try clicking directly on the line or use the Selection Pane from the Shape Format tab to locate the object.
A paragraph border is selected indirectly: click in the paragraph that owns it. To remove it in Word for Windows, choose Home > Paragraph > Borders > No Border. This removes the paragraph’s borders, so check whether it also has other sides you meant to keep. If the line was just created by the hyphen shortcut, Ctrl+Z on Windows (Command+Z on Mac) immediately undoes the conversion. Undo is convenient right away, but the No Border command is more useful after other editing has taken place.
To change an existing border, put the cursor in its paragraph and reopen the Borders menu or Borders and Shading dialog. A common source of confusion is trying to click and drag a paragraph border as if it were a shape: it cannot be dragged independently because it is formatting on the paragraph. Conversely, changing paragraph borders will not alter a line shape. Identify the object type first, then use the matching controls.
Common problems and practical fixes
- The hyphens do not turn into a line: Confirm that you typed three regular hyphens in a blank paragraph and pressed Enter. If they remain characters, enable Border lines in AutoFormat As You Type, or insert a border from the Home tab.
- The line is longer than expected: A paragraph border normally spans the paragraph’s text area. Use a shape for a deliberately short line, or adjust the paragraph indentation if the border should follow a narrower text block.
- The line will not move: It is likely a paragraph border. Click in its paragraph and change the border settings. If you need to position it freely, insert a line shape instead.
- The line shifts when text is edited: A shape may be anchored to a paragraph and move with it. Review its text-wrapping and positioning options, or use a paragraph border if the line should remain attached to the text section.
- A line appears under the wrong paragraph: Word assigns a border to paragraph formatting. Check which paragraph contains the cursor and whether an extra paragraph mark is present. Turning on formatting marks with Home > Paragraph > Show/Hide can help identify paragraph breaks.
One useful distinction is between a horizontal rule and a page border. A horizontal rule divides content within the page’s text area. A page border surrounds the page and is configured separately through the design or page-border controls. If you want a frame around the whole sheet, inserting a line is not the right tool.
Frequently Asked Questions
How do I insert a straight line in Word?
Choose Insert > Shapes > Line and drag across the page. Hold Shift while dragging to keep the line horizontal or vertical.
How do I make a line that goes across the page?
Type three hyphens in an empty paragraph and press Enter, with Border lines enabled in AutoFormat As You Type. You can also select Home > Paragraph > Borders > Bottom Border.
How do I remove a horizontal line in Word?
If it is a paragraph border, click in the paragraph and choose Home > Paragraph > Borders > No Border. If it is a drawn shape, select its edge and press Delete.
Can I change the color or thickness of a line?
For a shape, select it and use Shape Format > Shape Outline to set color or weight. For a paragraph border, open Borders and Shading and choose the line color and width.
Why does Word add a line when I press Enter after hyphens?
AutoFormat As You Type recognizes three hyphens as a border-line shortcut. Turn off the Border lines option in AutoCorrect Options if you prefer the hyphens to remain ordinary text.
Related
- Insert a Table of Contents in Word and Keep It Updated
- Insert a Virtual Signature in Word: Steps and Options
- Insert a Section Into a Table of Contents in Microsoft Word
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Make a Flowchart in Word From Excel: Steps and OptionsYes. Use the steps or decisions in your Excel sheet as a plan, then build the diagram in…
- How to Mail Merge in Word: Step-by-Step GuideTo mail merge in Word, prepare a recipient list in Excel, open Word and choose Mailings > Start…
- Google Sheets IFERROR: How It Works and When to Use ItIn Google Sheets, IFERROR returns a chosen fallback when a formula produces an error; otherwise, it returns the…
- Excel Day and Month Reversed? Fixing Date FormatsExcel usually does not swap the day and month in a date that is already stored correctly; a…
- Current Date in Google Sheets: Formula, Settings & TipsTo show the current date in Google Sheets, enter =TODAY() in a cell. It displays today’s date according…
- How to Do Columns in Microsoft Word: A Practical GuideTo make columns in Microsoft Word, place the cursor where you want them, choose Layout > Columns, and…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.