Google Docs tasks · Layout
Add headers and footers in Google Docs
A document title at the top of every page and a page number at the bottom should not mean typing the same line thirty times. In Google Docs a header and a footer are typed once and repeat on every page for you. This guide covers adding both from the Insert menu, giving the first page a clean header of its own, and putting page numbers inside the footer so they count themselves.
Add a header or footer
Google describes the same job in its help on how to use headers, footers, page numbers and footnotes: headers and footers add content to every page of the document, and you type that content once. One condition comes first — the document has to be in Pages format. Headers and footers belong to pages, so in a pageless document they are not available at all.
- Open the Headers & footers menu. In the document, choose Insert > Headers & footers. In current versions of Docs the same commands also sit under Insert > Page elements; either route leads to the Header and Footer choices.
- Choose Header or Footer. Pick Header and the cursor lands in the space at the top of the page, above the body text. Pick Footer and it lands in the space at the bottom. You can have both — most documents that need one end up using the header for a title and the footer for the page number.
- Type the text once. Type the document title, your name, a date, or whatever belongs on every page. Format it like ordinary text — font, size, bold and alignment all work in a header or footer — and keep it short: one line is the norm.
- Click back into the body. Click in the main text, or press Esc, to leave the header. Scroll to page two: the same text is already there, and on every page after it. Edit it on any one page and it changes on all of them, because there is only the one header being repeated.
You can also open the header or footer directly: double-click in the space at the very top or bottom of any page and the cursor goes straight in, no menu needed. That is the fastest route for a quick edit later.
Make the first page different
A title page usually should not carry the running header — the document's name is already on it in large type, and a page number on page one looks untidy. Docs handles this with one checkbox, which Google's headers and footers help covers under using different headers or footers per page or section.
- Click into the header or footer on the first page. Double-click at the top or bottom of page one so you are editing that page's header or footer.
- Tick Different first page. The checkbox appears alongside the header and footer options while you are editing. Tick it and page one gets its own separate header and footer, apart from the rest of the document.
- Decide what page one shows. Leave the first page's header and footer empty for a clean title page, or type something that belongs only there. Then click into the header on page two and confirm the running text for the rest of the document is set there — with Different first page on, pages two onward share their own header, and page one no longer follows it.
Different first page applies per section. In a document split by section breaks, each section has its own header and footer, and headers can be linked to the previous section or unlinked so a new part of the document can carry different running text. If a header changes stop partway through the document, a section break — not a typing error — is almost always why.
Add page numbers inside the footer
Page numbers live in the footer, and the footer is where you place them: put the cursor in the footer, and the number that appears is a live count, not typed text, so it is right on every page without any upkeep from you.
- Click into the footer. Double-click at the bottom of a page, or use Insert > Headers & footers > Footer, so the cursor sits where the number should go. Set the alignment first — page numbers usually sit centered or at the right — because the number lands at the cursor.
- Use the page number option in the footer. While you are editing the footer, use its Options and page number controls to insert the page number, and choose where numbering applies. Docs also offers the same insertion from the main menu — Insert > Page elements > Page number — where you can pick the number's position, ask for the total page count as well, or open More options to apply numbering to specific pages or sections and change its alignment.
- Add the total if it helps the reader. The page count choice inserts the document's total — the familiar “Page 3 of 12” — and it updates itself as the document grows or shrinks. Type the words “Page” and “of” around the two inserted numbers yourself; only the numbers are automatic.
- Check the first page. If you ticked Different first page, decide whether page one is numbered. Leaving its footer empty gives an unnumbered title page while pages two onward carry the count — and note the count itself still includes page one, so the first numbered page will read 2 unless you change the starting number in the page number options.
Edit, align and remove a header or footer
- Edit by double-clicking. Double-click the header or footer text on any page, type the change, and click back into the body. The edit applies everywhere that header or footer is used, not just on the page you clicked.
- Align and format as normal text. Use the ordinary alignment buttons and text formatting while the cursor is in the header or footer. A common tidy layout is the title aligned left in the header, and the page number centered or aligned right in the footer.
- Remove through Options. To take a header or footer out, double-click into it and use Options > Remove header or Remove footer on the right. That clears it properly; simply deleting the visible text on one page leaves the empty header space — and any page number field sitting in it — still in place.
End state
- The header text you typed once appears at the top of every page it should, and the footer at the bottom, with no page carrying a hand-typed copy.
- If the first page is different, page one shows its own header and footer — or none — while pages two onward share the running header.
- Page numbers sit in the footer, placed and aligned where you chose, and each page shows its own correct number without anything typed by hand.
When it goes wrong
- There is no Header or Footer choice to pick. The document is in pageless format, where headers, footers and page numbers do not exist. Switch it back to Pages — Google explains the two formats and what each one allows in its page setup help on pages and pageless documents — and the menu choices return.
- The header appears on some pages but not others. The document has section breaks, and each section carries its own header. Click into the header on a page where it is missing and either type the text there or link that section's header to the previous section so it inherits it.
- The first page still shows the header you removed. You edited the running header, but with Different first page ticked, page one has a separate header of its own. Click into page one's header itself and clear it there.
- Every page shows the same page number. The number was typed as ordinary text, not inserted. Delete it, click into the footer, and insert the number with the page number option so Docs fills in each page's own count.
- The header pushes the body text too far down the page. A multi-line header, or a large font in it, eats into the page. Keep the header to one short line; if the spacing still feels deep, the header margin can be adjusted in Format > Headers & footers > More options.
Related document tasks
-
Add page numbers starting at a number other than 1 in Google Docs
Add page numbers starting at a number other than 1 in Google Docs: use More options in the Page number menu to set Start at for the whole document, and use a section break when the body must restart at 1 after a cover or front matter.
-
Add a caption under a picture in Google Docs
Add a caption under a picture in Google Docs: put the picture in line and type the caption beneath it, or hold picture and caption together in a borderless two-row table so they move as one block.
-
Add a watermark in Google Docs
A watermark marks every page as DRAFT, CONFIDENTIAL or yours — without getting in the way of the words on the page.
-
Add alt text to an image in Google Docs for screen readers
Add alt text to an image in Google Docs for screen readers: right-click the image, open Accessibility, write a title and description that carry the meaning, and handle charts, logos and decorative pictures correctly.
Sources
- Google Docs Editors Help, Use headers, footers, page numbers and footnotes — adding headers and footers, using a different header or footer on the first page or per section, inserting page numbers and the total page count, and removing a header or footer.
- Google Docs Editors Help, Change a document's page setup: pages or pageless — headers, footers and page numbers are available in Pages format and not in pageless format, and how to switch between the two.