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

  1. Open the document you want to number
  2. Open the Tools menu
  3. Choose Line numbers
  4. Turn on Show line numbers
  5. Pick a numbering mode

Interactive demo

Loading 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

  1. 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.

  2. Step 2

    Choose Line numbers

    In the Tools menu, select Line numbers. A Line numbers panel opens on the right side of the document.

  3. 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.

  4. 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.

Create interactive demos like this one — free, no coding required.

Start for free →