To insert a black line in Word, type three hyphens on a blank line and press Enter; Word usually converts them into a horizontal paragraph border. For a more dependable result, add a bottom border to a paragraph and set its color to black. If you need to move or resize the line independently, insert a line shape instead. The best method depends on whether the line should divide text, sit in a specific place, or behave like a graphic.
What You’ll Need
- Microsoft Word for Microsoft 365 on Windows, or Word for Mac. The ribbon labels are similar, but some dialog and preference locations differ slightly between platforms.
- A document where you can click the paragraph or location for the line. Save the document before making extensive layout changes, especially if it contains carefully formatted pages.
- For the automatic method, AutoFormat As You Type must allow border lines. If Word does not convert the hyphens, use the border or shape method below instead.
Step-by-Step
- Choose the kind of line you need. Use a paragraph border for a divider that should follow the text and span the paragraph width. It is usually the right choice for separating sections or creating a rule beneath a heading. Use a line shape when you need to position the line anywhere on the page, adjust its length, or layer it with other objects. The three-hyphen shortcut creates a paragraph border, not a freely movable drawing. Decide first so you do not spend time adjusting the wrong kind of object.
- Try Word’s quick automatic line. Click at the start of a new, empty paragraph and type three hyphens:
---. Press Enter. In many desktop Word installations, the hyphens change into a thin horizontal border along the paragraph. The line normally takes the text color or the document’s default border color, which is usually black. Type text in the paragraph below the line if you want the line to separate two blocks. If the characters remain hyphens, do not keep adding more; use the explicit border steps that follow. - Apply a bottom border to make a reliable divider. Click in the paragraph that should have the line beneath it. It can be an empty paragraph, a heading, or a line of text. On Windows, open Home, find the Paragraph group, and open the arrow beside the Borders button. Choose Bottom Border. Word draws a line across the paragraph area, between the left and right text margins. If you want the divider between two paragraphs, apply the border to the paragraph immediately above the desired line. Clicking at the end of a paragraph is not necessary; selecting the whole paragraph is usually unnecessary too.
- Set the border color to black if needed. With the cursor still in the paragraph, open the arrow beside Borders again and choose Borders and Shading. In the dialog, open the Borders tab. Choose a solid line style, select black in the Color list, and choose a suitable width. In the preview, make sure the bottom edge is switched on; click that edge if it is not. Check that Apply to is set to Paragraph, then choose OK. If your dialog shows a different initial color, selecting black here makes the result explicit rather than relying on the theme default.
- Adjust the line’s position or spacing. A paragraph border follows the paragraph, so you generally move it by moving that paragraph or changing its spacing. To create more breathing room, place the cursor in the paragraph and adjust spacing from Home > Paragraph dialog launcher, then change the spacing before or after as appropriate. Avoid repeatedly pressing Enter to push the line down: extra empty paragraphs can shift when text is edited or pages reflow. For a rule directly under a heading, applying a bottom border to the heading is often cleaner than inserting a separate blank paragraph.
- Draw a movable black line when the border method is too restrictive. Select Insert > Shapes and choose the straight line under the Lines group. Click and drag where you want the line. Hold Shift while dragging to constrain it to a horizontal or vertical direction. Select the line, open the Shape Format tab, choose Shape Outline, and select black. Use Shape Outline > Weight to make it thicker or thinner. A drawn shape can be repositioned and resized by dragging its handles, but it may move when surrounding text changes.
- Check how the line sits with nearby content. Click outside the line or shape and review the page at normal zoom. A paragraph border should line up with the paragraph margins; a shape may need its wrapping or position adjusted if it overlaps text. For a shape, use the layout options button beside it to choose how text wraps. If you only need a plain divider and the shape is awkward to select later, undo it and use a paragraph border instead. Save after you are satisfied.
Common Mistakes
Typing hyphens without pressing Enter: Word does not usually create its automatic border until you complete the sequence and press Enter. The automatic feature also depends on AutoFormat settings, so typing the characters is not a guaranteed method in every document.
Applying a border to the wrong paragraph: Word attaches a paragraph border to the paragraph containing the cursor. If the line appears above or below the wrong text, click in the intended paragraph and apply the correct border there. Remember that a bottom border belongs to the paragraph’s lower edge, not to a precise point between two selected words.
Expecting a paragraph border to be a shape: A border is tied to paragraph width and margins. You cannot drag one end of it to make it shorter. Use Insert > Shapes > Line if the rule must have a custom length or sit outside the normal text area.
Choosing a dark theme color instead of black: Theme colors can look nearly black on screen but may print or display differently. Set the color to black in Borders and Shading or Shape Outline when the line must be solid black. Also check that the selected line style is solid, not dotted or dashed.
Pressing Backspace and deleting nearby text: A paragraph border is formatting, not a character. Clicking the line and pressing Backspace may remove text or merge paragraphs instead of removing the border. Use the Borders menu to turn off the border on the relevant paragraph.
Tips
For a consistent divider throughout a document, use the same paragraph border settings each time rather than mixing shapes and automatic lines. You can copy a correctly formatted paragraph and replace its text, or use Format Painter to apply paragraph formatting to another paragraph. When you use Format Painter, check the destination carefully because it can copy more paragraph formatting than just the border, including spacing and indentation.
Keep the border width modest for a normal section divider. A very thick rule can look more like a box edge and may crowd the text. If the line appears too close to a heading, adjust paragraph spacing rather than adding several blank lines. For a line that should stretch only partway across the page, consider a shape; for a full-width divider aligned with text, a paragraph border is simpler and tends to remain aligned as margins change.
On Word for Mac, the same general options are available from the Home tab’s paragraph border controls, and lines can be added from Insert > Shapes. Depending on the Mac version and ribbon layout, the border settings dialog may be reached through the Borders menu or the Format menu. Look for the Borders and Shading controls rather than using a Windows-only shortcut. Undo is Command+Z on Mac; on Windows it is Ctrl+Z.
If you use the automatic hyphen method often, you can check whether the feature is enabled. In Word for Windows, go to File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type, then look for the option for border lines. In Word for Mac, check Word > Settings or Preferences > AutoCorrect > AutoFormat As You Type; names and availability can vary by release. You can leave the option off and still create the same effect with the Borders menu.
Troubleshooting
The hyphens stay on the page: Press Enter after typing three hyphens. If they remain, the automatic border feature may be disabled or unavailable in that setup. Undo the typed characters if needed, then use Home > Borders > Bottom Border. This method does not rely on AutoFormat.
The line is gray, colored, dotted, or too thick: Click in the paragraph with the border and open Borders and Shading. Set the line style to solid, set Color to black, and choose a smaller width. Confirm the bottom edge is active in the preview and apply the setting to the paragraph. For a shape, select it and make the change under Shape Format > Shape Outline.
The line is longer or shorter than expected: A paragraph border spans the paragraph’s text area, which is affected by margins and paragraph indents. Check the paragraph indentation settings if it does not align with nearby text. If you need a custom length, delete the border and draw a line shape. Drag the shape’s endpoint handles to set its length, and hold Shift while resizing to keep it straight.
The line will not select when you click it: A paragraph border is not an independent object, so clicking directly on the rule may not select anything. Put the cursor in the paragraph attached to it and use the Borders menu. A shape should show selection handles when clicked; if text or another object covers it, use the Selection Pane from the Shape Format or Home controls, where available, to locate and select the line.
You want to remove the line: If it was just created, use Undo. Otherwise, click in the paragraph with the border, open Home > Borders, and choose No Border. This can remove other borders on that paragraph too, so use Borders and Shading to turn off only the bottom edge when the paragraph has borders on multiple sides. For a shape, click its edge until its handles appear and press Delete.
Frequently Asked Questions
How do I insert a black line in Word with the keyboard?
On a blank paragraph, type three hyphens and press Enter. Word may convert them into a paragraph border if automatic border formatting is enabled. For a guaranteed black line, use the Borders and Shading dialog to set the border color explicitly.
Why does Word turn three hyphens into a line?
Word’s AutoFormat As You Type feature recognizes certain repeated characters as a request for a paragraph border. It is formatting on the paragraph, rather than a row of hyphen characters or a separate drawing object.
Can I make the line shorter than the text width?
Not with a standard paragraph border, which follows the paragraph’s available width. Insert a line shape if you need a shorter rule, then drag its handles to the length you want.
How do I make the line thicker?
For a paragraph border, open Borders and Shading and choose a wider value in the width list. For a drawn line, select it and choose Shape Format > Shape Outline > Weight.
Will a black line print black?
A line explicitly set to black should print black, though the final appearance depends on the printer and its settings. If it looks faint in print preview, verify that the border or shape outline is black and that the line width is not extremely thin.
Related
- How to Insert a Check Mark in Excel in 4 Easy Ways
- How to Insert an Image in an Excel Cell and Keep It in Place
- How to Insert a Background Image in Excel for a Worksheet
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- VLOOKUP Between Google Sheets and Excel: What You Can Do NowVLOOKUP works in both Google Sheets and Microsoft Excel, and its basic formula is nearly the same in…
- How to Extend a Dropdown in Google Sheets: Full GuideTo extend a dropdown in Google Sheets, edit its data validation rule: add choices to the rule or…
- Add a Watermark to Just the First Page in WordTo add a watermark to just the first page in Word, separate page one from the rest of…
- Google Sheets IFS: How to Handle Blank CellsIn Google Sheets, handle a blank in IFS by testing for it before your other conditions; for example,…
- Google Sheets British Date Format: Set Dates to DD/MM/YYYYTo use British date format in Google Sheets, set the spreadsheet’s locale to United Kingdom under File >…
- Google Sheets Duplicate Formula: Find or Flag RepeatsTo find duplicate values in Google Sheets, use =COUNTIF($A$2:$A$100,A2)>1 in a helper column, assuming the values are in…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.