Add Header and Footer to PDF

Add a custom header and footer to every page of a PDF online, free and 100% in your browser. This PDF header and footer tool stamps your header text, footer text, or both onto each page using the built-in Helvetica font, and you can insert page numbers with the {page} and {total} placeholders. Pick any font size from 6 to 72, click Apply, and download your stamped PDF in seconds. Because everything runs client-side with pdf-lib, your document is processed locally and never uploaded to any server.

πŸ”’ 100% private β€” files never leave your device

Loading…

How to use

  1. Drop a PDF file into the box or click to select one from your device.
  2. Type your header text, footer text, or both. Use {page} for the current page and {total} for the page count.
  3. Set the font size (6 to 72) for the stamped text.
  4. Click Apply, then download your PDF with headers and footers added.

Frequently asked questions

Can I add only a header or only a footer?

Yes. Fill in just one field and leave the other blank. At least one of the two is required to stamp the PDF.

How do I add page numbers to my PDF?

Type {page} for the current page number and {total} for the total page count, for example "{page} / {total}" or "Page {page} of {total}". They are replaced automatically on every page.

Is my PDF uploaded anywhere?

No. Your PDF is processed entirely in your browser with pdf-lib and never leaves your device. Nothing is uploaded to any server.

Can I choose the font, color, or position of the text?

The text uses the standard Helvetica font in black and is centered at the top for the header and the bottom for the footer. You can adjust the font size from 6 to 72.

Are there limits on file size or page count?

There are no fixed limits. Since the work happens locally in your browser, very large PDFs are only bounded by your device's available memory.

Why did some special characters turn into a question mark?

The Helvetica font supports the Latin-1 character set. Common typographic quotes and dashes are converted automatically, but characters outside Latin-1 are replaced with a question mark.

About this tool

Free online PDF header and footer tool. Add header, footer, and page numbers to every page with {page}/{total} placeholders, 100% in your browser, no uploads.

Related tools