Can You Insert a Horizontal Line in Word?

How-to basics · Updated November 3, 2026

Can You Insert a Horizontal Line in Word?

Yes. In Microsoft Word for Microsoft 365 on Windows, you can insert a horizontal line from Home > Paragraph > Borders > Horizontal Line, type three hyphens and press Enter to create an automatic rule, or draw a line with Insert > Shapes. The best method depends on whether you want a line that follows a paragraph, a decorative divider, or a freely positioned graphic.

These options can look similar on the page, but Word treats them differently. That distinction matters when you need to change the line’s appearance, keep it in place as text moves, or remove it later.

Use the Horizontal Line command

For a quick divider across the text area, put the insertion point where the line should go. On Windows, open the Home tab, find the Paragraph group, open the Borders drop-down, and choose Horizontal Line. The line appears in the document, usually spanning the available text width. It is useful between sections, beneath a heading, or as a visual break in a form.

The command’s position can vary slightly with Word’s window size and ribbon layout. If you do not see Borders as a labeled button, look for the small drop-down arrow beside the borders icon in the Paragraph group. The menu may show small square border symbols; hovering over an item can reveal its name.

This command is distinct from applying a paragraph’s bottom border. The Horizontal Line item inserts a line that can generally be selected and formatted as a line object. A paragraph border, by contrast, is attached to a paragraph. If the command is unavailable or you want precise placement, a shape is another option.

Make a line by typing hyphens

Word can turn a short sequence of characters into a horizontal rule when you press Enter. In a blank paragraph, type three hyphens (—) and press Enter. In many Microsoft 365 desktop configurations, Word converts them into a horizontal border. Other repeated characters can create different border styles, depending on the AutoFormat settings and Word version.

This is convenient when drafting because you do not need to open a ribbon menu. However, the result is usually a paragraph border, not three typed hyphen characters or a movable drawing. The border belongs to the paragraph above it, which can make it seem as if Word inserted a line in the wrong place.

If Word does not convert the hyphens, the AutoFormat feature may be switched off, or the characters may not have been entered in the expected way. To check the setting on Windows, open File > Options > Proofing > AutoCorrect Options, then select the AutoFormat As You Type tab and look for Border lines. The exact labels can differ in some editions.

If the automatic rule appears when you did not want it, press Ctrl+Z immediately to undo the conversion. To prevent future conversions, clear the Border lines option in AutoFormat As You Type. On a Mac, use Word > Settings or Word > Preferences, open AutoCorrect, and check the AutoFormat As You Type options; names and locations can differ by release.

Understand paragraph borders

A horizontal rule created by AutoFormat is commonly a border on a paragraph. It may extend across the text column even though the characters that triggered it were only at the left margin. It moves with that paragraph as text is added or rearranged, and it is affected by paragraph formatting such as indentation and alignment.

That behavior can be helpful for a document separator that should stay with nearby text. It can also be confusing: clicking directly on the visible rule may not select it, because it is not a separate object. To remove an automatic border, click in the paragraph immediately above the rule, open Home > Paragraph > Borders, and choose No Border. If that removes more than the intended rule, undo and check which paragraph is selected before trying again.

Paragraph borders are often the better choice for consistent, text-aligned rules in reports, letters, and templates. They are less suitable when a line must stop at a custom point, angle, or position on the page. For that kind of layout, use a shape instead.

Draw a line with Shapes

To create a line that you can position independently of a paragraph, choose Insert > Shapes > Lines, then select the straight-line option. Drag across the page to draw it. Holding Shift while dragging constrains the line to a straight horizontal or vertical direction in many desktop versions of Word. After drawing, select the line to show the Shape Format tab, where available formatting options appear.

A shape is useful for diagrams, forms, callouts, and designs where the divider should have a specific length or location. You can adjust its endpoints, change its color and weight, and set its wrapping or position relative to nearby text. The exact choices depend on the selected shape and Word version.

Shapes can move when text is edited because they are anchored to a paragraph, even when they appear to sit elsewhere on the page. If a line shifts unexpectedly, select it and inspect the layout or wrapping options on the Shape Format tab, or use Layout Options near the object. For a simple full-width document rule, a paragraph border may be more stable and easier to manage.

Format or remove the line

Formatting depends on how the line was made. Select a drawn line to use the Shape Format controls for options such as Shape Outline, color, weight, and dashes. A Horizontal Line inserted from the Borders menu may support a context menu: right-click it and look for Format Horizontal Line. Available controls can include its width, height, color, and alignment, though the dialog differs among Word releases.

For a paragraph border, place the cursor in the paragraph that owns the border and use Home > Paragraph > Borders. The Borders and Shading dialog, when available from the menu, can provide more control over border style, color, width, and which sides of the paragraph receive a border. A bottom border is often the clearest choice when you want a rule immediately below a heading or paragraph.

To delete a selected shape or standalone horizontal-line object, click it so its handles appear, then press Delete. To remove a paragraph rule, use No Border instead. If Delete removes text rather than the rule, the line was probably a paragraph border, or the object was not selected. Undo with Ctrl+Z on Windows or Command+Z on Mac and use the appropriate removal method.

Choose the right method for the job

Before adding a line, decide whether it should behave like text formatting or like an illustration. A full-width divider between two sections usually works well as a paragraph border or Horizontal Line command. A short signature line, a custom-length underline, or a connector in a diagram is better made with a shape.

  • Quick divider while typing: use the three-hyphen AutoFormat shortcut if automatic border conversion is enabled.
  • Rule that follows a paragraph: apply a bottom border to that paragraph.
  • Independent graphic with adjustable length: draw a line through Insert > Shapes.
  • Simple inserted rule: choose Horizontal Line from the Borders menu when that command is available.

For example, if a report needs the same separator under every section heading, a paragraph bottom border is easier to reproduce consistently than drawing a separate shape each time. If a worksheet-style form needs a line that ends before the right margin, a shape gives you more control over length. In a letter, a signature line may be made with a shape or a bottom border, depending on whether it needs to move with the surrounding text.

Word for Mac and Word for the web

On Word for Mac, the equivalent tools are generally on the Home tab in the Paragraph Borders menu, and the Shapes tool is on Insert > Shapes. Ribbon organization and AutoCorrect settings can vary by version, so look for the Borders drop-down in the Paragraph area if the Windows instructions do not match your screen. Common editing shortcuts also differ: use Command+Z to undo on Mac rather than Ctrl+Z.

Word for the web has a more limited ribbon and may not show every desktop command or formatting dialog. If you cannot find Horizontal Line under the paragraph borders, try Insert > Shapes and choose a line, or open the document in the desktop app for the full set of controls. A document may display a line created on desktop even when the web version offers fewer options for changing it.

Common problems and fixes

  • Three hyphens stay as hyphens: check Border lines in AutoFormat As You Type, or insert the rule with Borders or Shapes instead.
  • The line will not select: it may be a paragraph border. Put the cursor in the paragraph above it and use Borders > No Border.
  • The line appears too long: a paragraph border normally spans the paragraph’s available width. Use a shape for a shorter rule, or adjust paragraph indentation if appropriate.
  • The line moves after editing: a shape may be anchored to text. Adjust its wrapping or position, or replace it with a paragraph border if it should remain tied to the text flow.
  • Removing it also changes nearby formatting: undo, then confirm the cursor is in the paragraph that owns the border. Borders are paragraph formatting, so selecting a different paragraph can affect a different rule.

A frequent misconception is that every line visible in Word is a typed character or a drawing object. It may instead be a paragraph border, which explains why clicking it does not select it and why changing paragraph formatting can change the line. Identifying the line type first is usually the fastest way to fix it.

Frequently Asked Questions

Can I insert a horizontal line in Word with a keyboard shortcut?
There is no single universal shortcut that inserts every kind of line. Typing three hyphens and pressing Enter can trigger AutoFormat as You Type, if Border lines is enabled. Otherwise, use the Borders menu or Insert > Shapes.

How do I insert a line that does not move with text?
Word shapes are anchored to text, so they can move as the document changes. You can adjust the shape’s wrapping and position settings, but a line that remains fixed regardless of edits may require careful page-layout settings or a header/footer placement.

How do I make a line shorter than the page width?
Draw a line using Insert > Shapes > Lines and drag its endpoints to the desired length. A paragraph border typically follows the paragraph width, so it is not as convenient for an arbitrary short divider.

Why does a line appear when I type three hyphens?
Word’s AutoFormat As You Type feature recognizes certain repeated characters and converts them into borders. Undo with Ctrl+Z on Windows or Command+Z on Mac, or turn off Border lines in AutoCorrect settings.

How do I delete a horizontal line in Word?
If it is a shape or selectable line object, click it and press Delete. If it is an automatic paragraph border, click in the paragraph above it and choose Home > Paragraph > Borders > No Border.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.