The fastest way to add a line
Open your Google Doc and click where you want the line to appear. Go to the Insert menu at the top, then select Horizontal line. Google Docs will place a thin gray line at that spot. If you want to move it, click the line and drag it to a new location. If you want to delete it, click it and press Delete or Backspace.
That is the standard method and works for most situations — a line between sections, a line under a heading, or a line to separate content on a page. The line stretches across the full width of your document margins.
Key Takeaways
- Insert a horizontal line by clicking Insert, then Horizontal line — no special formatting needed.
- You can also type three hyphens (---) or three underscores (___) and press Enter to create a line automatically.
- Lines in Google Docs are their own objects, so you can click and drag them to reposition or delete them without affecting text.
- If you need a line within text rather than between paragraphs, use the table borders method or draw a line with the drawing tool.
Using keyboard shortcuts to create a line faster
If you type three hyphens in a row (---) and then press Enter, Google Docs automatically converts that line into a horizontal line. The same works with three underscores (___) or three asterisks (***). This is faster than using the menu if you are already typing and do not want to reach for the mouse.
The automatic line appears on its own line in your document. If you want to add text right after it without a gap, press Backspace once after the line is created, then type. This pulls your text up to sit directly below the line.
Drawing a custom line with the drawing tool
The Insert menu also has a Drawing option. Click it, then select the line tool (it looks like a diagonal line in the toolbar that appears). You can draw a line at any angle, any length, and place it anywhere on the page — not just horizontally across the full width.
After you finish drawing, click Save and close to insert the line into your document. You can then click the line to move it, resize it by dragging the corners, or change its color and thickness by clicking it and using the toolbar options. This method takes longer but gives you full control over the line's appearance and position.
Adding lines inside tables or text boxes
If you need a line that sits within a table cell or runs alongside text rather than across the full page width, insert a table first. Create a table with one row and one column, then use the Table menu to adjust borders. You can remove all borders except the bottom one, creating a line effect within the cell.
Alternatively, use the drawing tool to place a line exactly where you need it. This works well when you want a line under a single word or phrase rather than under an entire paragraph. The drawing tool lets you position the line with precision that the standard horizontal line cannot match.
Changing the appearance of a line
The standard horizontal line that appears when you use Insert > Horizontal line is a fixed gray color and thickness. To change how it looks, use the drawing tool instead. Draw a line, then click it to reveal formatting options: you can change the color, adjust the thickness (called the weight), and choose whether the line is solid or dashed.
If you have already inserted a standard horizontal line and want to modify it, delete it and use the drawing tool to create a new one with the appearance you want. This takes an extra step but gives you access to all the styling options Google Docs offers for lines.
Removing a line from your document
Click the line once to select it — you will see a small box appear around it. Then press Delete or Backspace. The line disappears and the text above and below it moves together. If you accidentally delete a line, press Ctrl+Z (or Cmd+Z on Mac) to undo.
If a line was created using the three-hyphen method and you want to remove it, click the line and delete it the same way. The text that was above and below the line will not be affected.
Frequently Asked Questions
Can I make a line that is not gray?
The standard horizontal line from the Insert menu is always gray. To use a different color, use the drawing tool instead. Draw a line, click it, and look for the color option in the toolbar — usually a paint bucket or color square icon. You can choose any color you want.
Why did my three hyphens not turn into a line?
Google Docs only converts three hyphens to a line if they are on their own line with nothing else typed on that line. If you have text before or after the hyphens, they will not convert. Delete any extra text, make sure the hyphens are alone, and press Enter.
Can I make a vertical line?
The standard horizontal line tool only creates horizontal lines. Use the drawing tool to create a vertical line instead. Click Insert, then Drawing, select the line tool, and draw a line pointing up and down. You can adjust the angle and position however you need.
What if I want a line with a specific thickness?
Use the drawing tool. After you draw a line, click it and look for a line weight or thickness option in the toolbar — it usually shows as a line with a number next to it or a dropdown menu. Select the thickness you want from the options available.