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. That's the quickest method for most people.
If you need the line in a specific position within text, click at the end of the line above where you want it, then press Enter to create a new line. Then use Insert > Horizontal line. This keeps your text organized and prevents the line from pushing paragraphs around unexpectedly.
Key Takeaways
- The Insert menu's Horizontal line option adds a simple line in one click, and it works the same way every time.
- You can change a line's color and thickness by right-clicking it and selecting Line color or Line weight.
- Drawing lines with the drawing tool gives you more control over placement and angle, but takes more steps than the Insert menu.
- Lines placed inside a table cell may behave differently than lines in regular text, so test before using them in complex layouts.
Changing the line's color and thickness
A horizontal line from the Insert menu starts as a thin gray line, but you can customize it. Right-click the line and a menu will appear. Select Line color to change it to black, blue, red, or any color you choose. Select Line weight to make it thicker or thinner — the options range from a hairline to a bold stroke.
These changes apply only to the line you clicked on. If you add another line later, it will revert to the default thin gray unless you customize that one too. There's no way to set a default line style for the whole document, so you'll repeat this step for each line if you want them all to match.
Using the drawing tool for more control
If you need a line at an angle or in a very specific spot, the drawing tool gives you more precision. Click Insert, then Drawing, then New. A drawing canvas will open. In the toolbar at the top of the canvas, click the line tool (it looks like a diagonal line) and drag to draw your line at any angle you want.
When you're done, click Save and close and the line will appear in your document as an image. You can move it around by clicking and dragging, and resize it by pulling the corners. The downside is that a drawn line doesn't flow with your text the way an inserted line does — if you add or delete text above it, the drawn line stays in the same spot on the page.
Lines inside tables and text boxes
Horizontal lines work differently depending on where you place them. A line inserted into a table cell will stay inside that cell and won't extend across the whole table. If you want a line that spans the entire width of your table, you may need to merge cells first or use the drawing tool instead.
Lines inside text boxes behave like lines in regular text — they sit on their own line and push surrounding content up or down. If you're working with a complex layout that uses multiple text boxes, test your line placement before finalizing the document, because moving text boxes can shift where lines appear.
Removing or replacing a line
To delete a line, click it once to select it (you'll see small squares at the corners), then press Delete or Backspace. The line disappears and text above and below it closes the gap. If you accidentally delete a line, press Ctrl+Z (or Cmd+Z on Mac) to undo.
To replace a line with a different style, delete the old one and insert a new one with your preferred color and thickness. There's no way to edit a line in place — you have to remove it and start over if you want to change its appearance significantly.
Why your line might not look the way you expect
Lines in Google Docs sometimes behave unexpectedly because of how the document handles spacing. If you insert a line and it appears too close to text above it, click the line and use the spacing controls in the toolbar to add space before and after it. You can also press Enter before or after the line to create manual spacing.
If a line disappears when you print or download your document as a PDF, check that the line color isn't set to white or a very light shade that won't show on paper. Also verify that your printer settings aren't set to skip images or drawings, since some lines may be treated as graphics depending on how they were created.
Frequently Asked Questions
Can I make a vertical line in Google Docs?
The Insert menu only offers horizontal lines. To create a vertical line, use the drawing tool: go to Insert > Drawing > New, select the line tool, and drag vertically. Save and close when done. The vertical line will appear as a drawn object that you can move and resize.
What's the difference between a horizontal line and a page break?
A horizontal line is a visual element that sits on the page and doesn't change where your text flows. A page break forces all text after it onto a new page. Use a line when you want to separate sections visually but keep them on the same page. Use a page break when you need a new page to start.
Can I copy a line and paste it somewhere else in the document?
Yes. Click the line to select it, press Ctrl+C (or Cmd+C on Mac) to copy, then click where you want it and press Ctrl+V (or Cmd+V on Mac) to paste. The new line will have the same color and thickness as the original. This is faster than inserting and customizing a new line each time.
Why does my line disappear when I add text above it?
This usually happens if the line is anchored to a paragraph that gets deleted or moved. Click the line and check the spacing settings. You can also try deleting the line and reinserting it, or moving it slightly by clicking and dragging to a new position on the page.