Add a header and footer to every page of a PDF
By the getPDF team · Published 11 October 2026
The short answer
Open Page numbers, drop the PDF, type your text in Header (top centre) and Footer (bottom centre), and click Add numbers; set Where to No numbers if you want the header and footer alone. {file}, {date}, {page} and {pages} are filled in on every page. The text is written into each page as real, searchable text, on your device; nothing is uploaded.
Try it here, nothing is uploaded
Header, footer, page number or watermark?
4 kinds of mark go on every page. Pick by what it is for:
| Mark | Sits where | Typical content | Tool |
|---|---|---|---|
| Header and footer | Top centre and bottom centre, in the margin | Title, case or reference number, date, file name | Page numbers: Header and Footer boxes |
| Page numbers | 1 of 6 places: top or bottom, left, centre or right | 1, Page 1, 1 of 12, Page 1 of 12 | Page numbers |
| Watermark | Across the middle of the page, see-through | DRAFT, CONFIDENTIAL, COPY | Watermark PDF |
| A note on 1 page | Wherever you put it | “Received 10 October 2026”, initials | The editor, Add text |
Headers, footers and numbers come from the same tool, so you can add all 3 in 1 pass.
Step by step: a header and footer on the lease
Say Jana Čermák wants every page of lease.pdf (4 pages, page 1 a cover) to carry the reference at the top and the file name with the date at the bottom, plus page numbers.
- Drop
lease.pdfon the tool above. - Where: Bottom right. Format: Page 1 of 12.
- Cover page: turn it on, so page 1 stays clean.
- Header:
Lease agreement, ref. 2026-114 - Footer:
{file}, printed {date} - Click Add numbers and download
lease-numbered.pdf.
We ran exactly this. Pages 2 to 4 each got “Lease agreement, ref. 2026-114” at the top, “lease.pdf, printed 2026-10-11” at the bottom, and “Page 1 of 3” to “Page 3 of 3” in the corner; page 1 got nothing. The result line read “Added page numbers, a header, a footer to 3 pages, as real text” and “Left the first page as it was”. The 4-page file grew by 1.3 KB.
Notice 2 things in that result. The total counts only the numbered pages, so a skipped cover makes it “of 3”. And {file} is the name with .pdf; if you would rather not show it, type the title yourself.
What can go in the header and footer?
Any text you type, plus 4 placeholders that are filled in page by page:
| Type | Becomes | Example |
|---|---|---|
{page} |
the page’s number | 3 |
{pages} |
the last page’s number | 12 |
{date} |
the day you add it, by your device’s clock, year first | 2026-10-11 |
{file} |
the PDF’s file name | lease.pdf |
So Case 4711, page {page} of {pages} in the header numbers the pages there instead of in a corner; set Where to No numbers so they do not appear twice. If you want the date written out (“10 October 2026”), type it instead of using {date}.
Size and margin set the text size (5 to 48 pt, 10 by default) and the distance from the page edge (10 mm by default) for the numbers, header and footer alike.
Headers, footers and numbers without collisions
The header always sits at the top centre and the footer at the bottom centre. When the numbers share an edge with them, the tool makes room: numbers at the bottom push the footer up a line, numbers at the top push the header down a line. Pages that are turned (a landscape table in a portrait report) get their header at the top as you see the page, reading left to right.
There are no left and right slots for the header or footer. If you need “Confidential” top left and a reference top right, put 1 of them in the header and add the other as a text box in the editor on each page, or put both in 1 header line.
Only some pages: the cover, an appendix, the last page
Cover page is the only exception the tool has: it leaves page 1 without a number, header or footer. For anything else, split the file, stamp the part you want, and put it back together:
- Cut the file with Split PDF, Ranges, for example
1-20, 21-for a 20-page body and an appendix. - Run the appendix through Page numbers with its own header, say
Appendix A. - Combine both parts again in Merge PDF, with Bookmark per file off.
A different footer on the last page is the same pattern with ranges such as 1-11, 12. The document’s bookmarks survive the round trip: each part keeps those to its own pages, and Merge with Bookmark per file off puts them back at the top level. What does not survive is a link that crosses the cut, such as a contents line in the body pointing into the appendix, and the title in the file’s properties, which Split and Merge do not set.
The honest part
It stamps; it does not replace. The header is drawn on top of the page. If the page already has a header in that spot, the new one lands over the old one, and there is no detect-and-replace. To change an existing header, edit it in place: Edit a PDF header or footer walks through that, and Edit a PDF covers the editor. If the margin is tight, raise the margin or pick another edge before you stamp, and check page 2 of the result.
Western European letters only. The text is drawn in Helvetica, 1 of the standard PDF fonts, so nothing is embedded and the file barely grows. That font has no ł, ř or Cyrillic; the tool says so and refuses rather than printing gaps. Add such text with Add text in the editor, which embeds a font that has the letters.
A header is not a lock. Anyone with an editor can remove a stamped line, as with any watermark. If the mark must not be removed, add it and then protect the file with Protect PDF, which can stop editing in viewers that respect it.
Questions
Where do I add a header and footer?
In the Page numbers tool. It has a Header box (top centre) and a Footer box (bottom centre). Set Where to No numbers if you want only the header and footer, then click Add numbers.
Can I put the file name or today's date in the footer?
Yes. Type {file} for the file name and {date} for today's date where you are, written like 2026-10-11. {page} and {pages} give the page number and the total, as in Page {page} of {pages}.
Can the header go on the left or right?
Not in this tool: the header is always top centre and the footer bottom centre. Page numbers can go in any of 6 places. For a line in a corner, add it as a text box in the editor.
Can I leave the cover page without a header?
Yes. Turn on Cover page, and page 1 gets no number, header or footer. Other exceptions, such as only the appendix, take a split and a merge, explained on this page.
Why does it refuse my header?
The header is drawn in Helvetica, a standard PDF font that covers Western European letters. Letters such as ł, ř or Cyrillic need the editor, which embeds a font that has them.
The tools for this job
Keep reading
- Add a page 1 of 12 header or footer to a PDFAdd a page 1 of 12 header or footer to every PDF page, with the total counted for you.
- Add page numbers that skip the cover pageAdd page numbers to a PDF that skip the cover, start at any number and sit where you want.
- Add a DRAFT watermark to a PDF, one that shows on screen and on paperAdd a DRAFT or CONFIDENTIAL watermark to a PDF that shows on screen and on paper.
- Edit a PDF: change text, images and layout, free in your browserHow to edit a PDF free in your browser: change the text in place, add images and notes, and save a file that opens right in Acrobat.
- Edit a PDF header or footer on every page, in 1 passFix a wrong header or footer on every page of a PDF in 1 pass with find and replace, free and on your device.
- Organise PDF pages: merge, split, reorder and stamp, all in one placeMerge, split, reorder, rotate, delete and number PDF pages free, with no file limits.