The three ways to insert a line in Google Docs
Google Docs gives you three distinct ways to add a line to your document, and which one you use depends on what you need the line to do. You can draw a line freehand using the drawing tool, insert a horizontal line using the menu, or create a line by typing special characters. Each method produces a different result and works better for different purposes.
The horizontal line method is fastest if you want a straightforward divider between sections. The drawing tool gives you control over thickness, color, and angle if you need something custom. The character method works when you want a line that stays perfectly aligned with your text and moves with it when you edit.
Key Takeaways
- The Insert menu has a "Line" option under "Drawing" that creates a straight horizontal line in seconds.
- The drawing tool lets you customize line color, thickness, and angle, but requires you to position it manually on the page.
- Typing three or more hyphens (---) or underscores (___) and pressing Enter creates an automatic line that behaves like regular text.
- Lines inserted through the menu or drawing tool float over your text, while character-based lines move with your paragraphs when you edit.
Using the Insert menu for a quick horizontal line
Open your Google Docs document and place your cursor where you want the line to appear. Click the Insert menu at the top, then hover over Drawing and select Line from the submenu. A line will appear on your page, and you can drag its endpoints to make it longer or shorter.
This line floats above your text rather than being part of it. If you add or delete text above the line, the line stays in the same position on the page — it does not move up or down with your paragraphs. You can change the line's color and thickness by clicking it and using the toolbar that appears. Double-click the line if you want to adjust it later.
Drawing a custom line with the drawing tool
Click Insert, then Drawing, then New. This opens a blank canvas where you can draw. Select the Line tool from the toolbar (it looks like a diagonal line), then click and drag to draw your line at any angle. You can make it thick or thin, and change its color using the color picker in the toolbar.
Once you finish drawing, click Save and Close and the line becomes part of your document as an image. This method gives you the most control over appearance, but the line is locked in place — if you edit text around it, the line does not reflow. Use this approach when you need a decorative or angled line that stays exactly where you put it.
Creating a line with keyboard characters
Type three or more hyphens in a row (---) or three or more underscores (___) on a line by themselves, then press Enter. Google Docs automatically converts this into a horizontal line. This line behaves like regular text — it moves with your paragraphs when you edit, and it stays in the flow of your document rather than floating above it.
This method is useful when you want a divider that stays attached to the content around it. If you delete the paragraph above the line, the line moves up with it. If you add text before the line, the line shifts down. The line itself cannot be customized — it always appears as a thin black line — but it requires no menu navigation and works the same way across different devices and browsers.
When each method makes sense
Use the Insert menu method when you need a quick, straightforward horizontal line and do not mind that it stays in one spot on the page. This is the fastest route if you are dividing sections and do not plan to add much text before or after the line.
Use the drawing tool when you need a line at an angle, or when you want to control its exact thickness and color. This method is slower but gives you design flexibility. Use the character method when you want the line to move with your text as you edit, or when you are working on a document that will be shared across different platforms and you want the line to behave predictably everywhere.
Removing or editing a line you have added
Lines created through the Insert menu or drawing tool can be clicked and deleted like any other object — just click the line and press Delete or Backspace. You can also right-click the line to access options like arranging it behind or in front of text, or changing its properties.
Lines created with hyphens or underscores are treated as text. Click at the beginning of the line and select the entire line, then delete it. If you want to keep the line but change what is around it, you can add or remove text above and below it normally — the line will move with your edits.
Frequently Asked Questions
Can I make a line a different color?
Yes, but only if you use the Insert menu or drawing tool. Click the line, then use the color picker in the toolbar to change it. Lines created with hyphens or underscores are always black and cannot be recolored.
What happens to my line if I edit the text around it?
Lines from the Insert menu or drawing tool stay in the same position on the page. Lines created with hyphens or underscores move up or down with your paragraphs as you add or delete text. Choose the method based on whether you want the line fixed or flowing.
Can I make a vertical line in Google Docs?
The Insert menu only creates horizontal lines. Use the drawing tool if you need a vertical or angled line — click Insert, Drawing, New, select the Line tool, and drag in the direction you want.
Do lines I add show up the same way in printed documents?
Yes. Lines created through any of these three methods will print the same way they appear on screen. Test by using File, Print Preview to see how your document looks before printing.