Add page numbers to a header or footer

Add page numbers to a header or footer

If you already have a header or footer in your document and want to add page numbers without losing any information in your header or footer, use the Page field code. If you don't have an existing header or footer, go to Add page numbers to learn how to insert page numbers using the style gallery.

Note: If you're using your browser to edit a document in Word Online, see Add page numbers to headers or footers in Word Online, later in this article.

Use the Page field code to insert page numbers

Tip: You might find it helpful to view not only the contents of your header or footer area, but also the formatting marks in those areas. On the Home tab, in the Paragraph group, choose Show/Hide (¶) to turn on the display of formatting marks. Choose the button again to turn off the display.

  1. Double-click in the header (top of page) area or the footer (bottom of page) area to open the Design tab under Header & Footer Tools.

    The options available on the Design tab under Header & Footer Tools are shown.
  2. In the Position group, choose Insert Alignment Tab, and under Alignment, accept the default setting of Center, or choose Left or Right, and then choose OK.

  3. In the Insert group, choose Quick Parts > Field and the Field dialog box opens.

  4. In the Field names list, choose Page, and under Field properties, choose the numbering format you want to use, and then choose OK.

    Under Header & Footer tools, on the Design tab choose Quick Parts, and then choose Field to open the Field dialog box.
  5. To return to the body of your document, choose Close Header and Footer.

    The Close Header and Footer option is highlighted on the Header and Footer Tools tab.

If you’d like to learn more, see Field codes in Word.

Change where and how your page number appears

After you add page numbers, you can change where they appear on the page, and how they look.

  1. In your header or footer area, select the page number, choose Insert Alignment Tab, and under Alignment, make a different selection.

  2. In the Header & Footer group, choose Page Number > Current Position.

  3. Select a style in the gallery for the page number.

    Note: Scroll through the list of style options in the gallery to find one you like. You can select a Page Y style for a simple number (1) format, for example, or select a Page X of Y style to get a more defined number (Page 1 of 7) format. Experiment to find the style that best meets your needs.

You also can change the appearance of a page number.

  • On the Home tab, press Ctrl+D to open the Font dialog box to change the font family, style, size, and color.

Add page numbers to headers or footers in Word Online

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

    Edit in Word Online

  2. Click Insert > Header & Footer to open the header and footer areas of your document.

    Image of Header & Footer button in Word Online

  3. Click Page Numbers and then, in the gallery, click the page number location you want, such as the upper left corner.

    Image of UI to insert page numbers in a header or fooder.

    Don’t worry if there’s already some header or footer text in the same area. Word Online places the page number next to that text.

    Tip:  If you want to show the total number of pages too, such as page 3 of 10, check the Include Page Count box.

  4. To see how the document will look, click View > Reading View.

See also

Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!