To edit a header in Google Docs on a computer, double-click the existing header and change its text. To add one, select Insert > Page elements > Header, then enter your text. Headers require Pages format, and you can also edit them in the Google Docs mobile app with Print Layout turned on.
The short version
- Edit existing text: Double-click the header in the web editor and change its contents.
- Add a header: On a computer, select Insert > Page elements > Header.
- Make headers visible: Use Pages format and enable Show print layout on a computer or Print Layout on mobile.
- Change selected pages: Use first-page, odd-and-even, or section controls in the web editor.
| Task | Where | Control or method |
|---|---|---|
| Add a header | Web editor | Insert > Page elements > Header |
| Edit an existing header | Web editor | Double-click the header |
| Open a header by keyboard | Web editor | Hold Ctrl + Alt on Windows or ChromeOS, or Ctrl + Command on Mac, then press O, followed by H |
| Find header actions | Web editor | Help > Search the menus |
| Enable Pages format | Web editor | File > Page setup > Pages |
| Show headers | Web editor | View > Show print layout |
| Separate the first page | Web editor | Different first page |
| Create a section | Web editor | Insert > Break |
| Edit a section independently | Web editor | Uncheck Link to previous |
| Alternate page headers | Web editor | Different odd and even |
| Adjust header spacing | Web editor | Format > Headers & footers > More options |
| Remove a header | Web editor | Options > Remove header |
| Add numbering or totals | Web editor | Page number or Page count |
| Format header text | Web editor | Select text and use formatting shortcuts |
| Edit an Android header | Android app | Edit > More > Print Layout |
| Enable Android pages | Android app | Edit > More > Page setup |
| Edit an iPhone or iPad header | iPhone and iPad app | Edit > More > Print Layout |
| Enable iPhone or iPad pages | iPhone and iPad app | More > Page setup |
| Add mobile page numbers | Android, iPhone and iPad apps | Edit > Insert > Page Number |
| Insert a header by voice | Web editor | Tools > Voice typing |
Add or edit a header on a computer
Open your document in the Google Docs web editor, then select Insert > Page elements > Header. Enter the text you want in the header, then press Escape to return to the document body. These controls apply to repeating page headers rather than heading styles or table column headers.
For a header that already contains text, double-click it and edit directly. Press Escape when you are finished.
Fix hidden headers and switch to Pages
If your document uses Pageless format, select File > Page setup, choose Pages, then click OK. You can also select Format > Switch to Pages format. Once the document is in Pages format, use the header insertion menu.
When a document already uses Pages but its headers are hidden, open View and enable Show print layout. Double-click the visible header to edit its text.
Edit headers on Android or iPhone and iPad
In the Android app, open your document and tap Edit > More. Turn on Print Layout, then tap the header and enter or edit its text. The document must use Pages format.
If the Android document is pageless, tap Edit > More > Page setup and turn off Pageless. Then enable Print Layout to access the header. Tap the header once it is visible to make your changes.
On iPhone or iPad, open the document in Google Docs and tap Edit > More. Turn on Print Layout, then tap the header to enter or edit text. If the document is pageless, open More > Page setup, turn off Pageless, and then enable Print Layout.
Format header text and adjust its spacing
In the web editor, select the text inside your header before applying text formatting. On Windows or ChromeOS, press Ctrl + B for bold or Ctrl + I for italics. On Mac, use Command + B or Command + I.
To center the header on Windows or ChromeOS, press Ctrl + Shift + E. For left or right alignment, use Ctrl + Shift + L or Ctrl + Shift + R. On Mac, the corresponding shortcuts are Command + Shift + E, Command + Shift + L, and Command + Shift + R.
For header spacing, click inside the header and open Format > Headers & footers > More options. Choose the document or section scope under Apply to, enter the margins, and click Apply. Entering 0 removes the header-margin space. For margins elsewhere on the page, follow the steps to change margins in Google Docs.
Use different first page and alternating headers
In the web editor, click the header and check Different first page to give the first page its own header. Edit the first-page header separately. This setting applies to the first page of a document or section in Pages format.
For alternating headers, click the header, then click Options. Under Apply to, select Whole document, select Different odd and even, and click Apply. Edit the odd-page and even-page headers individually.
Create independently editable section headers
To change the header for a separate part of your document in the web editor, create a section at the intended boundary. Place the cursor there and select Insert > Break, then choose Section break (next page) or Section break (continuous). After creating the section, open its header.
Uncheck Link to previous before entering the section's independent header text. Then edit that header as needed. If you already have a section break but its header remains linked, open that section's header and uncheck Link to previous before making separate changes.
Add page numbers or a page count
In the web editor, select Insert > Page elements > Page number. Choose a header placement to insert automatic page numbering at the top of the page. For a total page count, position your cursor in the header and choose Page count.
On Android, iPhone, or iPad, open the document and tap Edit > Insert > Page Number. Choose a top-of-page placement and whether numbering should skip the first page. These page-number controls require Pages format on both computers and mobile devices.
Open a header with shortcuts search or voice
For keyboard access in the web editor on Windows or ChromeOS, hold Ctrl + Alt and press O, then H. On Mac, hold Ctrl + Command and press O, then H. Enter or edit the header once it opens.
Some keyboard layouts or languages can affect these shortcuts. If the shortcut fails, select Insert > Page elements > Header instead.
Another route is to click Search in the toolbar or choose Help > Search the menus. Type header, then select Insert or move to header. You can open the same search with Alt + / on Windows or ChromeOS, or Option + / on Mac.
Voice insertion works in the web editor with the latest Chrome, Edge, or Safari, a working microphone, and a document in Pages format. Both your account language and document language must be English for voice commands. Open Tools > Voice typing, click the microphone, and say Insert header. Dictate the header text, then click the microphone again when finished.
Your organization's administrator can disable voice typing. If that restriction applies to your account, use Insert > Page elements > Header and type your header text.
Remove a header you no longer need
Removing a header removes its contents from that header area. To remove it in the web editor, double-click the header, then choose Options > Remove header.
Frequently Asked Questions
Does switching to Pageless delete an existing header?
Switching to Pageless hides existing headers without deleting them. Switching back to Pages restores their visibility.
Can you make Pages the default for new documents?
Yes, you can make Pages the default in the Google Docs web editor. Open File > Page setup, select Pages, and click Set as default.
Does turning on Show print layout change what collaborators see?
Turning on Show print layout changes only your view of the document in the web editor. It does not change collaborators’ views.
Can menu search find other header actions?
Yes, searching for header in the web editor also exposes Remove header and header page-number actions. You can use the search results to find those controls in a document using Pages format.