Skip to content
100% local · 0 KB uploadedCompress PDF

Header & Footer PDF

Add custom headers and footers with page numbers and dates to any PDF locally in your browser. Your files never leave your device.

Private by design
Your files never leave your device. All processing happens locally in your browser — no uploads, no servers.

Drop your PDF here

or click to choose a file

Your files never leave your device.

Header text (top of page)
Footer text (bottom of page)

Tokens: {page} = page number, {total} = total pages, {date} = YYYY-MM-DD.

Uses standard Helvetica (WinAnsi characters only) stamped into page content.

Share this tool

Shares only the public page link — never your files.

XWhatsApp

Header & Footer PDF stamps custom running text across up to six zones on every page — top left, top center, top right, bottom left, bottom center, and bottom right. Insert dynamic {page}, {total}, and {date} tokens, control font size and margins, skip cover pages, and choose your starting page number. All stamping happens locally with pdf-lib.

How it works

How to use Header & Footer PDF

  1. 1
    Drop your PDF. Select or drag and drop the PDF you want to label with headers or footers.
  2. 2
    Fill in header and footer slots. Enter text in any of the six slots and optionally include {page}, {total}, or {date} placeholders.
  3. 3
    Adjust typography and cover options. Set font size (8–18 pt), edge margin (18–72 pt), starting number, and whether to skip the first page.
  4. 4
    Run and download. pdf-lib draws the headers and footers into the page content stream locally and builds your download.

Features

What this tool does

  • Six independent zones: Header Left/Center/Right and Footer Left/Center/Right
  • Dynamic {page}, {total}, and {date} placeholder substitution
  • Skip first page toggle for title/cover sheets and custom starting page number
  • Configurable font size (8–18 pt) and edge margin (18–72 pt)
  • 100% browser-local execution with zero file uploads

Limitations

Things to know

  • Uses standard Helvetica (WinAnsi encoding): non-Latin scripts such as CJK, Cyrillic, or emoji are rejected with a clear error
  • Text is stamped directly into the page content stream (not editable Acrobat header/footer metadata)
  • Very long strings near adjacent slots are not auto-wrapped and may overlap if combined in the same row

FAQ

Frequently asked questions

Which dynamic tokens are supported?

Use {page} for the current page number (shifted by Starting number), {total} for total document pages, and {date} for today’s YYYY-MM-DD date.

Why are non-English characters rejected?

Standard PDF Type-1 Helvetica supports WinAnsi (Western Latin) characters only, avoiding multi-megabyte font embedding in the browser.

Can I leave the cover page blank?

Yes. Enable "Skip first page" so page 1 receives no header or footer while subsequent pages are stamped.

Do my PDF contents leave my device?

No. Stamping runs entirely inside a local Web Worker on your device.