Add a header or footer to a PDF

Titles, dates and page numbers on every page.

Drop your PDF hereor click to choose — up to 50 MB free

This tool prints one line of text at the top of every page, one at the bottom, or both. The line can be fixed wording, such as a title or a confidentiality notice, and it can include placeholders that are filled in for each page: the page number, the total number of pages and the date. Choose whether the text sits at the left, the centre or the right.

How to use it

  1. Drop your PDF on the page, or click to choose it.
  2. Type the Header text, the Footer text, or both.
  3. Add placeholders where you want a page number, a page count or the date.
  4. Choose a Position: Left, Centre or Right.
  5. Change First page to stamp, Text size or Distance from the page edge if the defaults of 1, 10 and 28 do not suit.
  6. Click Add header and footer and download the result.

Placeholders for page numbers and the date

A placeholder is a word inside curly braces, typed with no spaces. When the file is processed, each one is replaced on every page.

For a footer reading "Page 3 of 12", type the word Page, then page in curly braces, then the word of, then pages in curly braces. The example shown inside the Footer text box on this page has exactly that form.

  • page in curly braces: the number of the current page, counting from 1.
  • pages in curly braces: the total number of pages in the document.
  • date in curly braces: the date the file is processed, written year-month-day, such as 2026-03-09. It is taken in UTC, so close to midnight it can differ from your local date.

How the text is placed

Header and footer are set in Helvetica for Latin text and a sans-serif for other scripts, in dark grey. Text size is 10 points unless you change it, between 5 and 36. Distance from the page edge is 28 points, about one centimetre, and can be set from 8 to 120; a value outside either range is moved to the nearest limit. The Position you choose applies to both lines, and the side margin equals the distance from the edge.

Each is a single line. Long text is not wrapped, so it runs off the page instead of dropping to a second line. The text is drawn on top of the page as it is: nothing is moved to make room, and if the document already has something in that strip, the two overlap.

Every page is stamped unless First page to stamp says otherwise: set it to 2 to leave a cover clean. Page numbers still count from the first sheet, so page 2 shows 2. A file can have up to 2000 pages.

Limits, and the related tools

The text can be in any script. Arabic and Hebrew are shaped and run right to left. A character that no font on the server covers, which can happen with emoji, is refused with a message that names it.

If all you want is a plain number at the bottom centre, Add page numbers needs no placeholders. For a prefix with zero-padded numbers in a corner, use Bates numbering. For a logo or a designed letterhead instead of a line of text, use Stamp PDF.

Questions

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

Put it in the Footer text box using two placeholders: the word page in curly braces for the current page and the word pages in curly braces for the total, with your own words around them. Each page then shows its own number.

Can I leave the header off the first page?

Yes. Set First page to stamp to 2 and the cover stays as it is. The page placeholder keeps counting from the first sheet of the file. To skip pages in the middle or at the end, split the file, stamp one part, and merge the two files again.

Can I have different text on the left and right, or on odd and even pages?

No. There is one header line and one footer line, both at the position you choose, and they are the same on every page.

Can I change the font, size or colour?

The size, yes: Text size takes 5 to 36 points and starts at 10. The typeface and the dark grey colour are fixed.

Why was my header text rejected?

It contains a character that none of the fonts on the server can draw, and the error message tells you which one. Emoji and rare symbols are the usual cause; ordinary text in any major script is accepted.

Can I remove the header again afterwards?

No. The text becomes part of each page, so keep the original file if you may need a clean copy. The upload and the stamped result are deleted from the server within one hour.