Add page number X of Y to your document

Check one checkbox to include the total number of pages with the page number in your document’s header or footer in Word Online.

  1. If you’re not already in Editing view, click Edit Document > Edit in Word Online.

  2. Click Insert > Page Numbers. You’ll see a gallery of page number layout options.

  3. Check the Include Page Count box just above the gallery.

    Image of the check box to select to include the page count with the page numbers in a doc (page X of Y).
  4. Click the page number layout option you want.
    Word Online will add the total page count to each page of your document in a Page X of Y format, such as Page 3 of 10.

More about page numbers

  • If you don’t want page numbers after all, click Remove Page Numbers at the bottom of the gallery.

  • To show the document title, author’s name, or some other text with the page number, or to hide the page number on the first page, start by using Insert > Header & Footer instead of Insert > Page Numbers. For more info, see Add page numbers to headers or footers.

  • For more options—if, for example you want different page numbering in different sections—edit the document in Word instead of editing it in Word Online. If you don’t have Word, you can try or buy it now.

Connect with an expert
Contact us
Expand your skills
Explore training

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×