How to add line numbers in Google Docs
Learn how to add line numbers in Google Docs from the Tools menu, turn on Show line numbers, and choose how the numbering runs through your document.

Quick answer
To add line numbers in Google Docs, open the Tools menu, choose Line numbers, and turn on Show line numbers in the side panel that opens. Then pick a numbering mode, such as Continue throughout document, so the numbers run through the whole file instead of restarting on each page.
Steps at a glance
- Open the document you want to number
- Open the Tools menu
- Choose Line numbers
- Turn on Show line numbers
- Pick a numbering mode
Interactive demo
Summary
Line numbers label each line of text down the side of the page. Google Docs keeps the setting in a side panel under the Tools menu, with options for how the numbering runs. They make long drafts easier to discuss and review.
Step-by-step guide
Step 1
Open the Tools menu
Open your document, then select Tools in the menu bar above the toolbar. The menu lists the document tools, including the line numbering option.
Step 2
Choose Line numbers
In the Tools menu, select Line numbers. A Line numbers panel opens on the right side of the document.
Step 3
Turn on Show line numbers
In the panel, tick the Show line numbers checkbox. The numbering options below it, Line numbering mode and Apply to, become available.
Step 4
Pick a numbering mode
Under Line numbering mode, choose Continue throughout document to number lines from the start to the end of the file. The other choices are Restart on each page and Restart on each section.
Why this matters
You are sending a long draft to a reviewer and they need to point at exact lines. Turning on line numbers lets them say 'line 12' instead of quoting a sentence, so feedback comes back faster and with less confusion.
Frequently asked questions
Where is the line numbers setting in Google Docs?
It is in the Tools menu. Selecting Line numbers opens a side panel with the Show line numbers checkbox.
What numbering modes can I choose?
The panel offers Continue throughout document, Restart on each page, and Restart on each section.
Related guides
Continue with more step-by-step guides for getting work done.
How to check word count in Google DocsLearn how to see word count in Google Docs quickly using the Tools menu, keyboard shortcut, or live counter while you write.
How to double space in Google Docs (2.0 spacing)Format > Line & paragraph spacing > Double, or pick 2.0 in the toolbar (2.0 is double spacing). Desktop, iPhone and iPad, with an interactive demo.
How to add page numbers in Google DocsAdd page numbers in Google Docs with Insert > Page numbers. Skip the cover page, start at any number, add Page X of Y, and fix a greyed-out menu.
How to add subscript in Google DocsLearn how to add subscript in Google Docs: select a character, open the Format menu, choose Text, then Subscript to lower it below the line.
How to do superscript in Google DocsRaise text above the line in Google Docs with the Format menu. Select the characters, choose Superscript, and get clean exponents, ordinals and formulas.
How to change the font size in Google DocsLearn how to change the font size in Google Docs by selecting your text and quickly typing a new size into the Font size box in the toolbar.
Create interactive demos like this one — free, no coding required.
Start for free →