Header and footer

Put a running title, a date or "Page 3 of 12" at the top and bottom of every page.

or drop it here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.

Header
Footer
Alignment
Type size9pt
Processed on this device
  • Runs on your device
  • No sign-up or watermark
  • No fixed file size cap

The short answer

To add a header and footer to a PDF, open it in damnfiles Header and footer, type the text for each, and use {page}, {pages} and {date} where the page number, total pages and today's date should appear. Pick left, centre or right alignment. pdf-lib stamps every page in your browser; nothing is uploaded.

How to add a header and footer to a PDF

  1. STEP 1

    Choose the PDF

    Drop it on the page or pick it from your device. One document at a time.

  2. STEP 2

    Write the header

    Type a line such as Confidential, {date} in Header, or leave it empty for footer only.

  3. STEP 3

    Write the footer

    Footer starts as Page {page} of {pages}. Edit it freely; any placeholder can go in either line.

  4. STEP 4

    Align, size and save

    Pick Left, Centre or Right and a type size from 7 to 16pt, then press Add header and footer.

Running headers and footers, and the Page X of Y format

A running header repeats the same line at the top of every page: a document title, a client name, or a classification such as Confidential. A footer usually carries the page number. Together they keep a printed document identifiable even when pages get separated.

"Page X of Y" tells the reader both where they are and whether anything is missing, which is why it is common on contracts, submissions and reports. Here the total is counted from the file, so it is always right for the document you stamp.

What survives, and what does not

Three placeholders are replaced on every page: {page} with the page number, {pages} with the total page count, and {date} with today's date in YYYY-MM-DD form. The header sits about half an inch from the top edge and the footer slightly less from the bottom, both in grey Helvetica.

What you keep

All existing page content, unchanged underneath

Selectable, searchable text, with the new lines added as real text

Page sizes and links

What you lose

Header and footer share one alignment; left header with right footer is not possible

Every page is stamped, including the cover

The built-in font covers Western European characters only

Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.

Header and footer at a glance

InputOne PDF
OutputPDF (-headed)
Placeholders{page}, {pages}, {date}
AlignmentLeft, centre or right
TypeHelvetica, grey, 7 to 16pt
Runs onYour device, in the browser

If something goes wrong

The footer overlaps text at the bottom of the page

The document already uses its lower margin. Reduce the type size, or move the content into the Header line instead.

The {date} shows the wrong format

The date is always written as year-month-day, such as 2026-11-25, which reads the same in every country. Type a date by hand if you need another style.

Header and footer questions

How do I add "Page X of Y" to a PDF?

Leave the Footer as Page {page} of {pages}, or type your own wording around those two placeholders, and press Add header and footer. Each page gets its own number and the document's total.

Can I add a header to a PDF without Acrobat?

Yes. This runs in any modern browser on Windows, Mac, Linux or a phone, with nothing to install and no subscription.

Is my PDF uploaded to add the header and footer?

No. The text is drawn onto each page by pdf-lib in your browser tab and the result is saved to your device.

Can I put the date in a PDF footer?

Yes. Type {date} anywhere in the header or footer and it becomes today's date, written as YYYY-MM-DD.

Can I edit or remove the header later?

Not with this tool. The text becomes part of each page, so keep your original file if you might want a different header later.

One of 153 file tools and planned additions. Built and tested by Arin Prajapati, last checked against the code on . canonical: https://damnfiles.com/pdf-header-footer
Analytics preferences

Help us understand which tools and file types people use. File contents always stay on your device.

Filename sharing is optional and off by default. Names can contain personal information. Changes apply to future events; disabling sharing does not delete earlier records.

Read our privacy policy