The simplest way to add a line

Open your Google Docs document and place your cursor where you want the line to appear. Go to the Insert menu at the top, then select Horizontal line. Google Docs will insert a thin gray line across the full width of your page at that spot. That's the fastest route if you just need a basic divider.

The line appears as its own paragraph, so it takes up a line of space on your page. You can click on it to select it, then delete it if you change your mind. You can also move it by cutting and pasting it elsewhere in the document, the same way you would move text.

Key Takeaways

  • The Insert menu has a Horizontal line option that creates a basic line in one click.
  • You can also draw custom lines using the drawing tool, which lets you choose thickness, color, and angle.
  • Tables with invisible borders can create lines that align with text in ways a straightforward horizontal line cannot.
  • Lines created in Google Docs stay in place when you share the document or read it as a PDF.

Drawing a custom line with more control

If you want a line that is thicker, colored, or at an angle, use the drawing tool instead. Click Insert, then Drawing, then New. A blank canvas opens in a popup window. On the left side of the toolbar, you'll see a line icon (it looks like a diagonal line). Click it to select the line tool.

Click and drag on the canvas to draw your line. The line will be straight if you hold Shift while dragging. Once you've drawn it, you can change its color and thickness using the toolbar at the top of the drawing window. The color square lets you pick any color you want. The line thickness dropdown (next to the color) controls how bold the line appears. When you're happy with it, click Save and close and the line will be inserted into your document.

This method takes a few more steps than the horizontal line option, but it gives you much more flexibility. You can make diagonal lines, curved lines, or lines in any color. The downside is that these lines are treated as images, so they don't flow with text the way a straightforward horizontal line does.

Using a table to create lines that align with text

Sometimes you need a line that sits next to text or aligns with specific content. A table with invisible borders can do this better than a drawn line. Click Insert, then Table, and create a table with one row and two columns. In the left column, type your text. In the right column, leave it empty or add more text.

Now remove the table borders so only the line you want shows. Click anywhere in the table, then go to Table in the menu and select Table properties. Set the border width to 0 for all sides except the one where you want the line. For example, if you want a line on the right side of the left column, set the right border to 1 pt and all others to 0. You can also change the border color here if you want something other than black.

This approach is more work than a straightforward horizontal line, but it's useful when you're creating forms, resumes, or documents where lines need to sit in specific places relative to your text.

Adjusting line appearance after you create it

A horizontal line inserted from the menu has limited options for customization. You can't change its color or thickness directly. If you need to modify it, your best option is to delete it and create a custom line using the drawing tool instead, which gives you full control over appearance.

If you've drawn a custom line using the drawing tool, you can edit it anytime. Click on the line to select it, then click the three-dot menu that appears and select Edit. This opens the drawing editor again, where you can change the color, thickness, or shape. When you're done, click Save and close.

What happens to lines when you share or read your document

Lines created with the horizontal line tool and lines created with the drawing tool both stay in place when you share your document with others. People viewing the document will see the lines exactly as you created them, whether they're viewing it in Google Docs, downloading it as a PDF, or downloading it as a Word document.

If you read your document as a Word file (.docx), horizontal lines convert to a Word format that Word recognizes. Custom drawn lines convert to images, which Word can display but cannot edit as lines. This matters if you plan to hand off the document to someone who will edit it in Microsoft Word.

Common reasons lines don't appear where you expect

If you inserted a horizontal line but it's not showing up, check whether your document has a background color or image. Sometimes a line is there but invisible against the background. Click where you think the line should be and press Delete to remove it, then try again.

If you drew a custom line and it's hard to see, it might be too thin or too light a color. Click on it to select it, then click the three-dot menu and select Edit. Increase the line thickness or change the color to something darker, then save and close.

Lines can also get hidden behind text or images if they're layered incorrectly. Click on the line to select it, then right-click and look for layering options like Send backward or Bring forward. Moving the line behind or in front of other elements can make it visible again.

Frequently Asked Questions

Can I make a vertical line in Google Docs?

Yes, but not with the horizontal line tool — that only creates lines that go across the page. Use the drawing tool instead. Click Insert, then Drawing, then New. Select the line tool, then draw a vertical line by clicking and dragging straight down while holding Shift. Adjust the color and thickness as needed, then save and close.

How do I make a dashed or dotted line instead of solid?

The horizontal line tool creates only solid lines. To make a dashed or dotted line, use the drawing tool. When you have the line drawn, look for a line style dropdown in the toolbar (it usually shows different line patterns). Select the dashed or dotted pattern you want, then save and close.

Can I change the color of a horizontal line?

The horizontal line tool doesn't offer color options — it always creates a gray line. If you need a colored line, delete the horizontal line and use the drawing tool instead. You'll have full control over color and can pick any shade you want from the color picker.

What's the difference between a line and a page break?

A line is a visual element that sits on your page and takes up space. A page break forces content to start on a new page without adding any visible element. Use a line when you want to divide sections visually. Use a page break when you want to move content to a new page. You can insert a page break by pressing Ctrl+Enter (or Cmd+Enter on Mac).

Do lines I create stay in the same place if someone else edits the document?

Yes. Lines are anchored to the document and stay in their position even when others add or remove text around them. If someone deletes the paragraph a line is attached to, the line may move or disappear depending on how it was inserted. Horizontal lines and drawn lines both behave this way.