To insert a horizontal line in Microsoft Word, place the cursor where you want it and choose Insert > Shapes > Line, then drag across the page; in Google Docs, choose Insert > Horizontal line. If you mean a line for handwriting or a drawn line at a particular angle, use a shape in either program instead of a divider.
Choose the kind of line you need
“Insert a line” can mean a few different things. A horizontal divider separates parts of a document, such as a contact block from the body of a letter. A drawn line is a graphic that you can position or angle, for example an arrow pointing to a label. A writing line is a rule people can write on, often used on a form. Picking the right type matters because each behaves differently when you edit the surrounding text.
For a simple section break, use the built-in horizontal-line feature in Google Docs or a paragraph border in Word. These are tied to the text flow and are usually the easiest to maintain. For a line that must sit in an exact place, use a shape. For multiple writing lines, consider a table or a series of paragraph borders rather than typing many underscore characters; those characters can wrap or shift when the page layout changes.
- Divider: separates sections and usually spans much of the text area.
- Shape: can be moved, resized, angled, recolored, or given arrowheads.
- Writing rule: provides a consistent place for someone to fill in information.
Insert a horizontal line in Microsoft Word
In Word for Microsoft 365 on Windows, the most predictable way to draw a line is to use a shape. Put the insertion point near the intended location, then go to Insert > Shapes > Lines and select the straight-line option. Drag on the page to set the start and end points. Hold Shift while dragging to constrain the line to a horizontal or vertical direction. Click away from the line when you are finished.
A quick alternative is Word’s automatic paragraph border. On a blank paragraph, type three hyphens and press Enter. If AutoFormat as You Type is enabled, Word converts the characters into a horizontal border beneath the paragraph. This is convenient for a plain divider, but it is not ordinary typed text once converted. If nothing happens, use the Shapes method, or check Word’s AutoFormat settings; organizations may also manage these settings centrally.
You can also add a bottom border to a paragraph: place the cursor in the paragraph where the rule should appear, then choose Home > Paragraph > Borders and select Bottom Border. This is useful for a clean divider that should follow the text width. The border belongs to the paragraph, so it can move as the text reflows. To remove it, put the cursor in that paragraph and choose Home > Paragraph > Borders > No Border. The precise ribbon layout can vary with window size, but the Borders control is in the Paragraph group.
Draw or format a line in Word
A shape is the better choice when the line must have a precise length or location. Select it to open the shape-formatting controls, then adjust its outline, weight, dash style, or arrowheads. To change its position, drag it; to resize it, drag an endpoint or selection handle. If dragging moves the line in awkward jumps, check its text-wrapping or layout options. A floating shape can be positioned independently of nearby text, while an inline object participates more directly in the text flow.
Lines can also be hard to select when they overlap text or sit close to a page edge. Click near the middle of the line, rather than on a nearby paragraph. If necessary, use Word’s Selection Pane from the shape-formatting options to choose an object by name. On Word for Mac, the same basic approach applies: use the Insert tab’s Shapes control to add a line. Ribbon labels and the location of formatting controls can differ slightly from Windows, but a line remains a selectable shape.
For a paragraph border, use Home > Borders or open Borders and Shading from the Borders menu to choose a line style, color, and width. These settings affect the paragraph border, not a separate drawn shape. If the document uses a theme or shared template, check that the rule remains legible when printed in black and white.
Insert a line in Google Docs
In Google Docs in a web browser, place the cursor where the divider should go and select Insert > Horizontal line. Docs inserts a horizontal rule in the document flow. It is a straightforward option for separating a heading from the text below it, dividing sections in a report, or marking a transition in a letter. It does not require drawing or measuring, and it generally follows the document’s text area as the page layout changes.
For a line that needs a custom angle, length, or placement, use Insert > Drawing > New. In the drawing window, choose the Line tool, draw the line, and use the available controls to change its appearance. Select Save and close to put the drawing into the document. This creates a drawing object rather than the simple in-flow divider. If you need to edit it later, select the drawing and use its edit control to reopen the drawing window.
Google Docs is collaborative, so other editors may see the divider as soon as the change syncs. If you are working in a document with carefully controlled formatting, use a suggestion or make a copy before redesigning a page. The menu names here refer to Docs in a browser; the mobile apps may arrange editing controls differently, and some desktop-style drawing options are less convenient on a phone or tablet.
Make a line for a form or signature
A long run of underscores looks like a line, but it is fragile. The underscores are text characters: changing the font, margins, or line length can make them wrap or leave an uneven gap. For a simple signature area, a bottom paragraph border is usually neater. In Word, click in the paragraph and apply a bottom border. In Google Docs, a one-cell table with only its bottom border visible can provide a stable writing area; adjust the cell width and row height to suit the form.
For a form with several fields, a table is often easier to align than separate drawn lines. For example, a two-column table can put “Name” in the first column and a writing area in the second. You can adjust column widths and hide borders that should not print. Before distributing the form, test it in print preview or export a PDF so you can confirm that the writing spaces have not split awkwardly across pages.
Choose between Word and Google Docs methods
Use the simplest method that matches the job. A horizontal divider in Docs takes one menu command. A Word paragraph border is convenient when a line should track a paragraph. A shape is appropriate when visual placement matters more than the line’s relationship to the text. These approaches may look similar on screen, but they are not interchangeable during editing.
- Use a Docs horizontal line for a quick, ordinary section divider in a browser-based document.
- Use a Word paragraph border when the rule should stay connected to a paragraph and span the text area.
- Use a shape for arrows, angled rules, short marks, or precise positioning in either program.
- Use a table or paragraph border for fill-in lines that should remain aligned as text changes.
If you share a file between Word and Google Docs, inspect the layout after converting or opening it in the other program. Simple paragraph borders and basic shapes are generally more portable than elaborate positioning, but conversion can still alter spacing, wrapping, or object placement. A PDF is often a better choice when recipients need to view or print a finished layout without editing it.
Fix common line problems
If the line appears in the wrong place, first identify whether it is a paragraph border or a shape. A border is attached to a paragraph; changing paragraph spacing or deleting that paragraph can affect it. A shape can be positioned independently and may have text-wrapping settings that influence nearby text. Selecting the object before changing layout settings helps prevent accidental edits to the document’s text.
- Word turns three hyphens into a line: this is AutoFormat, not a separate row of characters. Undo immediately if it was accidental. Otherwise, place the cursor in the paragraph above the rule and choose Home > Paragraph > Borders > No Border.
- The line will not stay where you put it: if it is a shape, review its layout or text-wrapping settings. If it is a border, check paragraph spacing and whether the border was applied to the intended paragraph.
- The line is too short or slanted: select the shape and adjust its endpoints. In Word, holding Shift while drawing helps keep a line horizontal or vertical.
- The line seems impossible to select: click directly on a shape, or use Word’s Selection Pane for overlapping objects. For a paragraph border, click in the associated paragraph instead of trying to select the border as an object.
- The divider is missing in a printout: check print preview, line color, and weight. A very pale or thin line may be visible on a monitor but difficult to reproduce on paper.
Keep dividers readable and accessible
A line is a visual cue, not a substitute for document structure. Use real heading styles to mark sections in a report, then add a divider only if it improves the appearance. This helps people navigate with a screen reader or Word’s navigation tools, because a decorative rule alone does not explain what the next section is about.
Choose enough contrast for the line to remain visible, and avoid using color as the only way to communicate meaning. A light gray rule may look understated on a bright screen but disappear in a low-quality print. If the line is decorative, keep it simple. If it is meant to show where someone should write, label the field clearly and leave enough room for a response.
Frequently Asked Questions
How do I insert a straight line in Word?
Choose Insert > Shapes > Lines, select the line, and drag across the page. Hold Shift while dragging to keep it horizontal or vertical. For a simple divider tied to a paragraph, use a bottom border instead.
How do I insert a horizontal line in Google Docs?
Place the cursor at the desired point and choose Insert > Horizontal line. Docs adds a divider in the text flow. Use Insert > Drawing > New if you need a line with custom placement or an angle.
Why does typing three hyphens make a line in Word?
Word can treat three hyphens followed by Enter as an AutoFormat shortcut and convert them into a paragraph border. If you want to keep the hyphens as text, undo the conversion or turn off the relevant AutoFormat as You Type option in Word’s settings.
How do I remove a line in Word without deleting text?
If it is a paragraph border, click in the paragraph associated with the rule and choose Home > Paragraph > Borders > No Border. If it is a drawn shape, select the line itself and press Delete.
Can I make a line for a signature?
Yes. In Word, a bottom paragraph border or a table cell with a visible bottom border is more stable than a row of underscores. In Google Docs, a table cell can provide an aligned writing space; check the page layout before printing or sharing.
Related
- Compress Pictures in PowerPoint: Step-by-Step Guide
- Compare Two Documents in Word: Create a Redline
- Compare Documents in Word and Create a Redline
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Outlook 2013 Rules by Sender: Setup and FixesYes. In Outlook 2013 for Windows, select a message from the sender, then choose Home > Rules >…
- How to Change Slide Size in PowerPointTo change slide page size in PowerPoint for Microsoft 365 on Windows, open the presentation and select Design…
- Monthly Budget vs Actual Excel Template: Free SetupYes—you can make a free monthly budget-versus-actual template in Excel with columns for category, budget, actual spending, variance,…
- Microsoft Word: Remove Formatting from Text QuicklyTo remove formatting in Microsoft Word, select the text, then choose Home > Clear All Formatting in the…
- Add a Page Break in Excel: Steps, Layout, and Print TipsTo add a page break in Excel for Microsoft 365 on Windows, select the cell where the next…
- Calculate Age in Excel From a Birth Date, Step by StepTo calculate someone’s age in completed years in Excel, put their birth date in A2 and enter =DATEDIF(A2,TODAY(),"Y")…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.