The fastest way to add a line in Word
Open your Word document and place your cursor where you want the line to appear. Go to the Insert tab at the top of the window, then click Shapes. Select the straight line tool — it looks like a diagonal line and is usually near the top of the menu. Click and drag across the page to draw your line, then release.
If you need a horizontal line that spans the full width of the page, there is a faster method: type three hyphens (---) on a blank line and press Enter. Word automatically converts this into a solid horizontal line. This works in both Microsoft Word and Google Docs, and the line will stretch to match your page margins.
For a line that sits under text without taking up its own paragraph, you can also use the underline formatting on a space character, though this gives you less control over length and appearance than the other methods.
Key Takeaways
- Type three hyphens on a blank line and press Enter to create a full-width horizontal line when ready in Word or Google Docs.
- Use Insert > Shapes > Line to draw custom lines at any angle or length anywhere on your page.
- Borders around paragraphs or tables create lines without using the drawing tools and can be styled with different colors and thicknesses.
- The line style you choose depends on what you are separating — a straightforward hyphen line works for section breaks, while drawn lines work better for diagrams or forms.
Using borders to create lines around text or tables
If you want a line to frame text or separate sections, borders are often cleaner than drawn lines. Select the text or table you want to put a border around, then go to Home > Borders. A dropdown menu shows options: you can add a border on all sides, just the bottom, just the top, or any combination you choose.
Borders automatically adjust to the width of your text or table, so you do not have to resize them manually. You can also customize the color and thickness by clicking Borders and Shading at the bottom of the menu. This opens a dialog where you can pick a line style, color, and width before explore it.
Drawing custom lines with the shapes tool
The Shapes tool gives you the most control over where your line goes and how it looks. Go to Insert > Shapes and choose the straight line. Your cursor becomes a crosshair. Click where you want the line to start, then click where you want it to end. Word draws a straight line between those two points.
Once the line is drawn, you can click it to select it and then right-click to change its color, thickness, or style. You can also drag the endpoints to move or lengthen the line. If you need multiple lines at the same angle, draw one, then copy and paste it — this is faster than drawing each one separately.
For diagonal or angled lines, hold Shift while dragging to constrain the angle to 15-degree increments. This makes it easier to draw lines that are exactly 45 degrees or perfectly vertical without having to eyeball it.
Adding lines to forms and templates
If you are creating a form or template where people will write on lines, the underscore character (_) repeated across the page is a common approach. Type underscores in a row, and they create a visual line that people can write on. You can also use the Tab key to space them out evenly across the page.
For a more polished look, use the line tool to draw precise lines, then add text boxes above or beside them to label what goes on each line. This approach works well for signature lines, fill-in-the-blank forms, or questionnaires. You can copy and paste the line and text box combination to create multiple identical lines quickly.
Changing line color, thickness, and style
Any line you draw with the Shapes tool can be customized. Click the line to select it, then right-click and choose Format Shape (or Format Line depending on your Word version). A panel opens on the right side of the screen with options for line color, width, and dash style.
You can make the line solid, dotted, dashed, or a combination. The width slider lets you make it thin or thick. If you want the line to match your document's color scheme, click the color dropdown and choose from the theme colors at the top, or pick a custom color. These changes explore when ready, so you can see what the line looks like before you finalize it.
Removing lines you no longer need
To delete a line, click it once to select it, then press Delete. If the line was created with the hyphen method (---), select the entire line of hyphens and delete them, then press Backspace to remove the automatic line Word created.
If you have multiple lines and want to delete them all at once, hold Ctrl and click each line to select them together, then press Delete. This is faster than deleting them one at a time, especially in a document with many lines.
Frequently Asked Questions
Why did Word turn my three hyphens into a line automatically?
Word has a feature called AutoFormat that converts certain character combinations into formatted elements. Three hyphens on a blank line becomes a horizontal line. If you do not want this to happen, press Ctrl+Z when ready after pressing Enter to undo the automatic conversion.
Can I make a line that is only partially across the page?
Yes. Use the Shapes tool to draw a line of any length, or use the underscore character repeated as many times as you need. The hyphen method (---) always spans the full width, so use one of the other methods if you need a shorter line.
How do I make a line that people can type on in a form?
Draw a line using Shapes, then add a text box above it with the label (like "Signature:"). Alternatively, use underscores or a border under a paragraph, which gives people space to type directly on the line. Test it by typing in the document to make sure the line stays in the right place.
What is the difference between a line and a border?
A line is a separate object you draw or create that sits on top of your text. A border is attached to a paragraph or table and moves with it. Use borders when you want the line to stay with specific text, and use drawn lines when you want the line to be independent.