The report is final, the PDF has been exported, and now someone asks for "Confidential" at the top of every page, today's date and the file name in the header, and "Page 3 of 12" at the bottom. The original Word or design file is on a colleague's laptop, or it no longer exists. Re-creating the document to add three lines of text is out of the question.
You can add headers and footers directly to the finished PDF. This guide covers what belongs in a header or footer, how placeholder tokens save you typing every page number, a step-by-step method in your browser, and the layout and font issues that cause most problems.
What headers and footers are for
Headers and footers are running text: the same information repeated on each page, usually in small type near the edge. They answer three questions for a reader who picks up a single loose page:
- What is this? Document title, file name, project or client name.
- Which version? Date, draft number or status such as "Draft" or "Final".
- Where am I? Page number, ideally with the total, so a missing page is obvious.
Classic layouts use up to six slots: left, centre and right in the header, and the same three in the footer. A common business pattern is:
| Position | Left | Centre | Right |
|---|---|---|---|
| Header | Document or file name | (empty) | Date |
| Footer | Company name | Confidentiality notice | Page X of Y |
Legal and academic documents often have their own rules, so check any style guide before choosing.
Tokens: text that changes on every page
Typing a different page number on every page would defeat the purpose. Instead, you type placeholders, called tokens, that are replaced per page:
| Token | Replaced with | Example output |
|---|---|---|
{page} |
The page number | 7 |
{total} |
The total number of pages | 20 |
{date} |
Today's date in your chosen format | 29 September 2026 |
{filename} |
The PDF's name without ".pdf" | Q3-board-report |
Tokens can be mixed with ordinary text, so Page {page} of {total} becomes "Page 7 of 20", and {filename} – Draft becomes "Q3-board-report – Draft".
Add a header and footer step by step
Add Header & Footer to PDF works in your browser and shows an exact preview before you download.
- Open Add Header & Footer to PDF and drop your PDF onto the box.
- Fill the six boxes, Header left/centre/right and Footer left/centre/right. By default the header shows
{filename}on the left and{date}on the right, and the footer showsPage {page} of {total}on the right. Clear any box you do not want. - Choose the Font (Helvetica, Times or Courier), Date format (your locale, a long written date, or ISO such as 2026-09-29), Font size (6 to 24 pt), Margin from edge and Text colour.
- To skip a cover page, enter a range in Pages (leave empty for all), for example
2-end. - If page 2 of the file should display as page 1, tick Count {page} and {total} within the selected pages only.
- Check the preview, which is generated with the same code as the download, then click Add header & footer & download.
Rotated and landscape pages are handled automatically, so the text reads upright as you see the page.
Choosing size, font and margin
- Size: 8 to 10 pt is typical for running text. It should be clearly smaller than body text so it does not compete with the content.
- Font: Helvetica is neutral and matches most modern documents. Times suits traditional reports and legal text. Courier looks like typewriter or code and is useful when you want the header to look like a clerical stamp.
- Colour: a mid-grey keeps headers readable but unobtrusive. Use red or black for statements like "Confidential" that must stand out.
- Margin: most documents already have white space at the top and bottom. Measure it by eye in the preview and set the margin so the new text sits inside that space, not on top of existing content.
Other ways to add headers and footers
Edit the source document
If you have the original Word, Google Docs or InDesign file, adding headers and footers there is the best option. They become part of the layout, the text reflows around them, and page fields update automatically. Export to PDF again afterwards.
Paid PDF editors
Professional PDF suites include a header and footer command with similar tokens, plus features like saving templates and updating existing headers later. If you add the same header to hundreds of documents every month, that workflow may be worth it.
Single page numbers only
If all you need is a number, Add Page Numbers to PDF is simpler: it places one number in one position. The header and footer tool is for combinations of free text and tokens in several positions.
Watermarks for status
For a large diagonal "DRAFT" across each page rather than small text at the edge, use Add Watermark to PDF.
Pitfalls and troubleshooting
The header overlaps existing text
The new text is drawn on top of the page. If the original content runs close to the edge, you have three options: increase the margin, reduce the font size, or create room first with Add Margins to PDF, which can enlarge the page or shrink the content to make space.
Some characters show an error
Headers are written with the standard PDF fonts Helvetica, Times and Courier, which cover Latin characters only. Chinese, Arabic, Hindi, Cyrillic, Greek or emoji, including in the file name or a localised date, cannot be encoded. Rename the file or choose the ISO date format to avoid non-Latin characters.
Page numbers are off by one
You probably excluded the cover with a page range but did not tick the option to count within the selected pages. Tick it, and the first selected page becomes page 1 and {total} counts only selected pages.
The document already has a header
The tool adds text; it does not remove existing headers. If the old header is wrong, cover or remove it in Edit PDF first, or regenerate the PDF from its source.
Merged documents with mixed numbering
When you combine files with Merge PDF, each part keeps its own old page numbers. Add a single consistent "Page X of Y" footer after merging, placed where the old numbers are not, or cover them first.
Frequently asked questions
How do I add "Page X of Y" to a PDF?
Type Page {page} of {total} into one of the footer boxes. The tokens are replaced with the correct page number and total on every page.
Can I skip the cover page?
Yes. Enter a range such as 2-end and, if you want numbering to start at 1 after the cover, tick the option to count within the selected pages only.
Can I add different text to odd and even pages?
Not in a single pass. Run the tool twice with page lists covering odd and even pages respectively, using the output of the first run as the input for the second.
Will the header be editable later?
It is added as normal page content, so it is not a special header object. You can change it later with a PDF editor, but it will not update automatically.
Does adding a header change the page size?
No. The text is drawn within the existing page at the margin you set. To make extra room, add margins first.