To insert a quick horizontal line in Microsoft Word for Microsoft 365 on Windows, type three hyphens (—) on an empty paragraph and press Enter; Word usually turns them into a paragraph border. For a line you can position and resize, choose Insert > Shapes > Line, then drag in the document.
Choose the kind of line you need
Word offers several things that look like a line but behave differently. Choosing the right one makes editing easier later. A horizontal rule separates sections across the page; a drawn line is a shape you can move or angle; a paragraph border belongs to a paragraph; and an underline sits beneath text. These options are not interchangeable. For example, pressing Enter to make an empty paragraph creates vertical space, not a visible divider.
- Use a paragraph border for a full-width divider that should stay attached to a paragraph or heading.
- Use a line shape when you need to control its length, location, angle, color, or endpoints.
- Use an underline for a line beneath a word, heading, or blank space intended for someone to fill in.
- Use blank paragraphs only when you need extra vertical spacing and do not want a visible mark.
The most common request, inserting a line between sections, is usually best handled with a paragraph border. It can span the text area consistently and is less likely than a drawn shape to drift when surrounding text changes.
Insert a horizontal rule with AutoFormat
The three-hyphen shortcut is quick, but it relies on Word’s AutoFormat feature. Click in a blank paragraph where the divider should go, type three hyphens, and press Enter. Word converts the characters into a horizontal border along the paragraph. In many configurations, three underscores create a heavier line, while three equal signs create a double line. These shortcuts may not work if automatic border formatting has been turned off, and the exact styles can vary by settings.
- Place the insertion point in an empty paragraph at the desired location.
- Type three hyphens with no spaces between them.
- Press Enter once to trigger the automatic formatting.
- Continue typing in the paragraph below the line.
If Word changes the characters but you did not want it to, use Ctrl+Z immediately on Windows to undo the automatic conversion. On a Mac, use Command+Z. If you want to keep the line but stop future automatic conversions, open File > Options > Proofing > AutoCorrect Options, then review the AutoFormat As You Type settings and the border option. The wording or availability can differ between Word versions.
Add a border from the ribbon
The ribbon method is more deliberate than typing hyphens and is useful when you want to add or change a border after writing the surrounding text. Click in the paragraph where the line should appear, then select Home > Paragraph > Borders. Use the arrow beside the Borders button to open its menu. Depending on the Word build, the menu includes a Horizontal Line command; choosing it inserts a rule. The same menu also offers paragraph border choices such as Bottom Border.
A bottom border is often the most predictable choice for a divider beneath a heading. Select the heading paragraph and choose Home > Paragraph > Borders > Bottom Border. The border follows the paragraph’s available width, including changes to its indentation. It is not a separate line object, so you cannot drag just one endpoint to shorten it. For a line above a paragraph, use Top Border instead.
On Word for Mac, the Home tab also has paragraph border controls, though the layout and labels can differ by version and window size. Look for the Borders control in the Paragraph group rather than assuming the Windows menu appears in exactly the same place. In both versions, selecting the relevant paragraph before applying a border helps avoid formatting the wrong paragraph.
Draw and format a line shape
For a line with a specific length or position, use a shape. In Word for Microsoft 365 on Windows, choose Insert > Shapes, then select Line from the Lines group. The pointer changes to a crosshair. Click where the line should begin, drag to its endpoint, and release. If you hold Shift while dragging, Word constrains the line to common straight angles, including horizontal and vertical. The line is an object that can be selected and adjusted independently of the text.
To change its appearance, select the line and use the Shape Format tab. Shape Outline lets you choose a color, weight, and dash style; the tab may appear only while a shape is selected. Drag an endpoint to change the length or angle, and drag the line itself to move it. When placing a shape close to text, use the Layout Options button or the Wrap Text controls to choose how text flows around it. A floating shape can overlap text, while an in-line object occupies a position within the text flow.
On Word for Mac, use Insert > Shapes and choose the line tool, then draw in the document; select the resulting shape to access formatting controls. The available commands and their arrangement can vary by release. If you cannot position a line precisely, check its text-wrapping setting and zoom level. A shape that is anchored to a paragraph can move when that paragraph moves, even if the line appears visually separate.
Which method works best?
Consider what should happen when you edit the document. A paragraph border is generally best for a divider that should remain aligned with text and extend across the paragraph. A shape is better for a short line, a diagram, a signature area with fixed placement, or a line that needs a distinctive style. An underline is best when the mark belongs directly beneath characters. The choice matters in longer documents because shapes and borders respond differently to edits and page layout.
- Section break in a report: apply a bottom border to a short heading paragraph. The divider will move with the heading if text is inserted above it.
- Short fill-in blank: use a bottom border on a table cell or a line shape if the blank must have a fixed length. Repeated underline characters can shift as fonts or spacing change.
- Diagram connector: use a line shape, and consider arrow options in Shape Outline if the line needs to show direction.
- Decorative full-width separator: use a paragraph border or horizontal rule rather than drawing by eye, which can leave uneven margins.
For a form that needs dependable alignment, a table with borders often works better than a collection of floating lines. You can keep only the borders needed for the visible rules and use the table structure to align labels and blank spaces.
Remove a line or fix common problems
A frequent surprise is that a line made with three hyphens is not ordinary text. It is usually a border attached to the paragraph. Clicking the line itself may not select it as a shape. To remove it, click in the paragraph directly above or associated with the border, then choose Home > Paragraph > Borders > No Border. If the menu is difficult to identify, place the cursor in the paragraph and inspect the border preview in the Borders menu.
If you inserted a line shape instead, click its edge until selection handles appear, then press Delete or Backspace. Clicking nearby text may select the text rather than the shape, so try clicking directly on the line. If the line is hard to select because it sits behind or in front of other content, use the Selection Pane when available from the Shape Format or Home tab controls to locate and select objects.
When a border appears in the wrong place or covers an unexpected width, check which paragraph is active and whether that paragraph has indentation or a different style. Borders belong to paragraphs, so a paragraph that wraps over several lines can still have one border along its edge. If a shape moves when text is edited, its anchor and wrapping behavior are likely responsible; adjust the layout settings rather than repeatedly dragging it back into place.
To prevent the three-hyphen conversion, you can undo it as soon as it happens or turn off automatic border creation in AutoCorrect Options. Turning off that option affects automatic formatting, not the ability to add a line through the ribbon or Shapes menu. This is useful if you often type hyphens as text or need a sequence of hyphens to remain literal.
Word on Mac and Word for the web
Most line choices are available in Word for Mac, but ribbon placement and dialog labels are not always identical to Windows. Use the Insert tab for shapes and the Home tab for paragraph borders. Keyboard undo differs: Command+Z is the usual Mac shortcut, compared with Ctrl+Z on Windows. If a menu item is not where expected, search Word’s command help or inspect the relevant ribbon tab rather than assuming a Windows-only path.
Word for the web supports common document editing, but some advanced drawing, layout, or formatting controls may be limited or presented differently from the desktop app. If a line needs precise wrapping, layering, or detailed shape formatting, open the document in the desktop version of Word. A document that contains shapes or borders can also look slightly different across apps or devices, so check the final layout in the version and format used to share or print it.
Frequently Asked Questions
How do I insert a straight horizontal line in Word?
Type three hyphens in an empty paragraph and press Enter to create an automatic paragraph border. For a line you can resize independently, choose Insert > Shapes > Line and drag while holding Shift.
Why does typing three hyphens make a line?
Word’s AutoFormat As You Type feature recognizes certain character sequences and converts them into paragraph borders. Use Ctrl+Z on Windows or Command+Z on Mac to undo the conversion, or disable automatic border formatting in AutoCorrect Options.
How do I delete a horizontal line in Word?
If it is a paragraph border, click in the paragraph associated with it and choose Home > Paragraph > Borders > No Border. If it is a drawn shape, select the line itself and press Delete or Backspace.
How do I make a line shorter?
A paragraph border normally spans the paragraph’s text area, so it is not shortened by dragging. Insert a line shape and drag an endpoint, or use paragraph indentation to change the area across which a border appears.
How do I put a line under only one word?
Select the word and apply underline from Home > Font > Underline, or use Ctrl+U on Windows and Command+U on Mac. This formats text, rather than inserting a separate divider across the page.
Related
- How to Create a Business Email Signature in Outlook
- How to Compute a Percentage in Google Sheets
- How to Create an Automatic Email Signature in Outlook
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Outlook Address Book Cache: How to Clear It SafelyTo clear Outlook’s saved recipient suggestions in classic Outlook for Windows, go to File > Options > Mail…
- How to Change Focused Inbox View in OutlookTo change the Focused view in Outlook, switch between the Focused and Other tabs at the top of…
- How to Make a Time Schedule in Google Sheets: Step by StepTo make a time schedule in Google Sheets, set up a time column, add a column for each…
- Debt Snowball Spreadsheet: Build a Payoff Tracker in ExcelBuild a debt snowball spreadsheet in Excel by listing each debt from smallest to largest balance, setting a…
- Track Changes in Word: How to Turn It Off and FinishTo get out of Track Changes in Word, open the Review tab and turn off Track Changes. This…
- Excel Column Difference Between Two Columns ExplainedIn Excel, “column difference” can mean comparing values in two columns, finding items that appear in one list…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.