Skip to content

How to add page numbers, a header and a footer to a Word document

Add a header and footer to a .docx in DocFila, choose Current page or Current and total page numbers, and set paper size and margins in Page setup.

Open DocFila free

The short answer

In DocFila's Word editor, click Add a footer or page number at the bottom of a page, type the footer text and choose Page numbers: Current page or Current and total. For a header, click Add a header at the top. Margins and paper size sit under Layout and Page setup.

Works on: The Word editor is in the DocFila app on macOS, Windows and Linux, in the web app, and on phones, where the toolbar becomes one row that scrolls sideways. It edits .docx files. A free account is enough; creating a new document in the web Workspace asks guests to sign up first.

What do you need?

What are the steps?

  1. Open the document for editing. Press Edit document. Scroll to any page; the header area and the footer area appear at its top and bottom edge.
  2. Add a header. Click Add a header, type your text in the Header text box, for example a title or a client name.
  3. Add a footer. Click Add a footer or page number and type the Footer text. Leave it empty if you want the number alone.
  4. Choose the numbering. Open Page numbers and pick No page numbers, Current page (7) or Current and total (7 / 12).
  5. Check other pages. The header and footer apply to the whole section, so look at a later page to confirm the number counts up.
  6. Set margins. Open the Layout tab, choose Margins and pick a preset, or choose Page setup to type the Top margin, Bottom margin, Left margin and Right margin yourself.
  7. Set paper size. In Page setup, choose Paper size from the list or Custom size. If the margins leave no room for text, DocFila says so.

What is worth knowing?

What DocFila does not do here

Numbering formats beyond the three offered, such as roman numerals, and a different first page, may not be editable in every file. A complex existing header is preserved as is rather than rebuilt, which means it is also not editable here.

Where to go next

More word, excel and powerpoint how-to guides

Questions

How do I show page 7 of 12 in the footer?

Open Page numbers in the footer and choose Current and total (7 / 12). DocFila inserts the page and total-page fields, so the numbers update as the document grows.

Can I change the margins for the whole document?

Yes. On the Layout tab choose Margins for a preset, or Page setup to set the top, bottom, left and right margins exactly and to pick the paper size.

Why can I not edit my header?

Either Track my changes is on, which blocks header edits, or the header already contains pictures, tables or formatting that DocFila keeps untouched. Turn tracking off or edit that header in the app that created it.

Try it in DocFila

Free to start, no card needed.