Skip to content
ToolsOnDuty - free online tools
PDF Tools

Add Header and Footer to PDF

Add custom headers and footers with page, total, filename and date tokens to selected PDF pages.

Free foreverRuns in your browserNo sign-up
Drop a PDF here, or click to choose
Your file is processed in your browser and never uploaded.

About the Add Header and Footer to PDF

Add Header and Footer to PDF places independent text labels at the top and bottom of selected pages. Each label can use its own left, centre or right alignment.

Dynamic tokens insert the current page number, total pages, source filename or current date. The first-page overlay previews placement before download.

Key features

  • Independent header and footer text
  • Page, total, filename and date tokens
  • Alignment, colour, size and margin controls
  • Custom page ranges

How to use

  1. 1Upload a PDF and enter header or footer text.
  2. 2Use tokens such as {n}, {total}, {filename} or {date}, then adjust placement in the preview.
  3. 3Choose target pages and download the labelled PDF.

Examples

Label a client report
Input: Header {filename}; footer Page {n} of {total}; pages 2-12
Output: Report labelled after its cover page

Adjust the margin when the original document already uses the page edges.

Frequently asked questions

Can I leave the header or footer empty?
Yes. Leave either field empty to add only the other label.
Can I skip a cover page?
Yes. Enter a range such as 2-10 to leave page 1 unchanged.
Does this replace existing page content?
No. It adds text over the existing page near the selected margin, so check the preview for sufficient space.