Header and Footer
Add a header and footer to every page, with the page number, total pages, date or file name filled in for you.
Header and Footer adds a line of text to the top and bottom of every page of a PDF, with the page number, total pages, date or file name filled in for you. Choose the position, size and colour, and skip the first page if you like. It runs in your browser.
What can a header or footer contain?
Fill-in codes
Type plain text and add any of four codes: {page} for the page number, {total} for the page count, {date} for today's date and {file} for the file name without .pdf. The footer starts as Page {page} of {total}, which prints Page 3 of 12 on the third page of a 12-page file.
Running header
A running header repeats the same text, such as a report title, client name or Confidential, at the top of every page. It tells a reader which document a loose page belongs to, which matters once pages are printed and shuffled.
Why add a header and footer to a PDF?
- Page X of Y. Readers and reviewers can tell at once if a page is missing, and refer to a page precisely in comments.
- Label every page. Put the project name, a draft label or a confidentiality line on each page without opening the original file.
- Text stays as text. The header is real text added on top of each page. The original content is not redrawn, so it keeps its quality.
How to add a header and footer to a PDF

- Open Header and Footer and add your PDF. Nothing is uploaded; the text is added in your browser.
- Type the Header text and Footer text. Use {page}, {total}, {date} and {file} where you want them. Leave either box empty to skip it.
- Choose positions, Text size and Colour. Headers go top left, centre or right and footers bottom left, centre or right. Text size runs from 6 to 24 pt.
- Pick the pages and click Add header and footer. Tick Leave the first page clean for a cover page, or type pages such as 2-10 in Pages. Then download the result.
Frequently asked questions
If I skip the cover, does numbering start at 1 on page 2?
No. {page} is the page's position in the file, so the second page shows 2. That matches what PDF readers show in their page box.
Can I use any language or symbol?
The text uses a built-in Helvetica font that covers Western European letters. Other scripts and emoji are replaced with a question mark.
I only need page numbers. Is there a simpler tool?
Yes: Page Numbers does just that. For legal numbering that continues across files, use Bates Numbering.
Looking for the long version? The guides cover each of these jobs in depth.