Skip to content
HappyPDFz

Add a Header and Footer to a PDF

Write a title, a date, or a page number at the top or the bottom of every page. You see the result on the page before you download. Your file stays on your device.

How to use it

  1. Choose your PDF file, or drag it onto the box.
  2. Write the texts you want in the header (top) and the footer (bottom), on the left, center, or right. Use {page}, {pages}, and {date} where you want them replaced.
  3. Choose the pages, then press “Add header and footer” and download the result.

How it works

Each text is drawn on every page you choose, in its own corner. {page} becomes the page number, {pages} the number of pages in the PDF, and {date} today’s date in the language of this page. For example, “Page {page} of {pages}” becomes “Page 3 of 12”.

Nothing is sent over the internet. Your original file is never changed: you get a new one. The preview shows the real result for the page you are looking at.

Good to know

  • For now this tool works with the Latin alphabet: letters A–Z with accents (á, ñ, ç, ü…), numbers, and common symbols. Cyrillic, Greek, Arabic, Chinese, and other alphabets can’t be drawn yet. If you type one, the tool tells you which character it is and doesn’t change your file.
  • The texts are drawn on top of the page. If the page already has content near the edge, they can overlap: increase the distance from the edge.
  • Each text is a single line. Long texts can run into their neighbors, so keep them short or use fewer places.
  • Password-protected PDFs can’t be edited. Remove the password first.
  • Closing or reloading the page discards your changes, so download the result before you leave.

Frequently asked questions

Is my file uploaded anywhere?

No. Everything happens in your browser, on your own device. We never receive your file, so we can’t see or keep it.

What do {page}, {pages}, and {date} do?

{page} is replaced by the number of each page, {pages} by the total number of pages, and {date} by today’s date. Write them exactly like that, with the curly brackets.

Can I put the same text on every page?

Yes. That is the default: the texts go on all pages. You can also choose only some pages, like 2-10.

Can I write in Russian, Greek, Arabic, or Chinese?

Not yet. If you type a character that can’t be drawn, a message tells you which one it is, and nothing is added to your file.

How is this different from adding page numbers?

Add page numbers is the quickest way to number pages. This tool lets you write other texts too, such as a title, a company name, or the date, and place them in up to six spots.