Add custom headers and footers with page numbers
Adding consistent headers and footers to a PDF gives it a professional, finished look. This tool lets you insert page numbers, dates, titles, or custom text at the top and bottom of every page. You can control fonts, alignment, and which pages receive the header or footer.
Initializing in your browser…
A report needs page numbers and a confidentiality line added to every page before sending.
Input
report.pdf · footer "Page {n} of {total}" + "Confidential"Output
report.pdf with consistent headers/footers and live page numbers
Dynamic tokens like page number and total are filled per page, so a 60-page document gets correct numbering without manual editing. Margins are respected so the added text never collides with existing content.
Adding consistent headers and footers to a PDF gives it a professional, finished look. This tool lets you insert page numbers, dates, titles, or custom text at the top and bottom of every page. You can control fonts, alignment, and which pages receive the header or footer.
Add "Page X of Y" footers to long documents for easy navigation.
Place the document title or section name in the header of every page for quick identification.
Add a fixed reference or version label to the header or footer so readers know which document they are viewing.
Add required disclaimers or reference numbers to every page of a contract or regulatory filing.
Insert a running header with the author name and paper title as required by many submission guidelines.
Headers and footers are rendered as text overlays on each page using pdf-lib with an embedded Helvetica font in black. The output substitutes two dynamic placeholders: {page} for the current page number and {total} for the total page count, so a footer like "Page {page} of {total}" becomes "Page 3 of 12". The header sits near the top of each page and the footer near the bottom, with left, center, or right alignment and an adjustable font size. The same header and footer are applied to every page.
The editor UI also offers additional tokens ({date}, {time}, {year}) and a text-color picker for the on-screen preview, but be aware that the generated PDF currently substitutes only {page} and {total} and renders the text in black, so those extra tokens and the color choice affect the preview rather than the final file.
Yes. Leave either field blank and only the one you fill in will be added.
Headers sit near the top edge and footers near the bottom edge. If your document already has content at the very edge, the preview shows where the text will land so you can adjust the wording or size.
The generated PDF substitutes {page} for the current page number and {total} for the total page count. Other tokens shown in the editor are reflected in the preview but are not substituted in the downloaded file.
No. The same header and footer are applied to every page. For different headers on different pages, process those page ranges separately.
PDF parsing and editing happen in your browser. Documents, and everything inside them, are never uploaded or stored remotely.