UnQTools
PDF Runs in your browser

PDF Header & Footer Adder

Add custom headers and footers to PDF pages — page numbers, document title, dates, or any text. Variables ({page}, {total}, {title}, {date}, {author}, {filename}), 3 positions (left/center/right), first-page-different, page-range filtering, multi-format reports, history, shareable URL. 17 extra features. 100% client-side — your PDF never leaves your browser.

100% Private Works Offline Instant

About PDF Header & Footer Adder

Add custom headers and footers to PDF pages — page numbers, document title, dates, or any text. Variables ({page}, {total}, {title}, {date}, {author}, {filename}), 3 positions (left/center/right), first-page-different, page-range filtering, multi-format reports, history, shareable URL. 17 extra features. 100% client-side — your PDF never leaves your browser. Everything runs locally in your browser — your data never leaves your device.

How to use

  1. Enter your input in the tool above.
  2. Adjust any options to your preference.
  3. Use the Copy or Download buttons to save the result.
  4. Everything happens locally — your data never leaves your browser.

FAQ

How does the PDF Header & Footer Adder work?

Load a PDF, type your header/footer text, and choose positions (left/center/right), font size, color, and margins. The tool draws the text on each page using pdf-lib, substituting variables like {page}, {total}, {title}, {date}, {author}, and {filename} with their actual values. The modified PDF is saved and downloaded — 100% in your browser.

What variables can I use in the header or footer text?

Six variables: {page} (current page number), {total} (total page count), {title} (PDF Title metadata), {date} (today's date in your chosen format), {author} (PDF Author metadata), and {filename} (original file name without extension). The tool warns you if a variable requires metadata that's missing from the PDF.

Can I use different header/footer text on the first page?

Yes. Toggle 'First page different' and provide separate first-page header and footer text. This is useful for cover pages where you don't want a page number, or where you want a different title.

What extra features does this tool have compared to others?

(1) Page-range parser ('all' or '1-3, 5, 8-'). (2) Variable substitutor ({page}/{total}/{title}/{date}/{author}/{filename}). (3) 3 position presets (left/center/right) for header and footer independently. (4) Font size validator (6–72 pt). (5) Hex color parser. (6) Margin calculator. (7) Page number formatter (3 formats: '1', '1 of 10', 'Page 1 of 10'). (8) Date formatter (3 formats: YYYY-MM-DD, MM/DD/YYYY, DD/MM/YYYY). (9) First-page-different handler. (10) Text + CSV renderers. (11) Copy + Download. (12) History (localStorage, last 20). (13) Shareable URL. (14) Summary stats (pages with/without header/footer, by position). (15) Variable availability checker. (16) Header/footer collision detector. (17) Page count validator. Multi-line header/footer support included.

Is my data sent anywhere?

No. All PDF processing runs 100% in your browser using JavaScript and pdf-lib. Your PDF never leaves your device, and the tool works offline. History is stored in localStorage on this device only.

Search tools and actions

Search across all 458 tools, categories, and quick actions.