About this tool
Headers and footers carry the recurring context a document needs on every page — a title, a company name, a confidentiality notice, a filename, a date — without you having to retype it by hand. This tool draws up to six independent text slots (left/center/right in the header, left/center/right in the footer) onto every page of your PDF using pdf-lib, entirely inside your browser. Unlike a plain page-numbering tool, any text you like can go in any slot: a document title on the left, "Page {page} of {total}" on the right, a generation date in the center — nothing is uploaded, the PDF never leaves your device.
Three placeholder tokens make the text dynamic across pages: {page} is replaced with the current page's 1-indexed number, {total} with the document's total page count, and {date} with today's date. Combine them freely in any of the six slots — for example a footer center of "Confidential — {date}" alongside a footer right of "Page {page} of {total}" — and the text is measured and aligned precisely (left-aligned at the margin, centered, or right-aligned at the margin) so it lines up cleanly no matter how long the substituted values turn out to be.
Frequently asked questions
What placeholder tokens can I use?
`{page}` for the current page number, `{total}` for the total page count, and `{date}` for today's date in YYYY-MM-DD format — mix them freely with your own text, e.g. "Confidential — Page {page} of {total}".
Can I leave some of the six slots empty?
Yes — any of the 6 slots (header-left/center/right, footer-left/center/right) you leave blank is simply skipped; only the slots you actually fill in get drawn onto the page. Most documents only need 1-2 of the 6.