Add Headers and Footers to a PDF
Add a line of text to the top margin, the bottom margin, or both, on every page or a range. Placeholders fill in the page number for you.
- Free, unlimited
- 100% on-device
- No sign-up
Add Headers and Footers to a PDF
Drop a PDF here
Or choose a file from your device
One PDF at a time · max 50 MB
Pages are copied or edited as PDF objects in this tab — nothing is uploaded.
No PDF added yet.
Three steps — nothing to install
Add a PDF
Drop one PDF or pick it from your device, up to 50 MB. The page count is shown before you add anything.
Write the lines
Type a header and a footer. Use {page}, {total} and {file} where the values should be filled in.
Add and download
The new PDF carries the header and footer on the pages you chose, in the alignment and size you set.
Placeholders fill in the values
The footer field accepts three placeholders. {page} becomes the page's position in the document, {total} the number of pages, and {file} the file name without its extension. “Page {page} of {total}” is the usual footer; “{file} — {page}” is useful when several documents are printed and mixed on a desk.
Placeholders are replaced once, when the file is written. The result is plain text: it does not update if pages are added later, and it does not link to bookmarks. Add the footer as the last step, after merging or reordering, so the numbers match the final document.
Margins, covers and existing content
The header and footer are drawn in the margin measured from the paper edge, with the size you choose. Nothing is reserved for them: a page whose content already reaches the edge will have the new line on top of it. Check page one before sending a batch, and increase the margin if the document has a tight layout.
“Leave the first selected page bare” keeps a cover clean while the rest get the footer. Selecting a page range does the same job more precisely — for example, add the header only to the body pages 3-40, leaving the cover and contents page untouched.
Fonts and honest limits
Text is drawn with Helvetica, a standard PDF font covering Latin letters, digits and common punctuation. “Page 3 of 12”, “Confidential” and a date all work; a footer in Japanese or Arabic is refused with a message rather than written as broken glyphs.
A header added here is page content, not a running header tied to section titles. It will not change from chapter to chapter, and it can be selected or deleted in a PDF editor. For a repeating mark across the middle of the page, use Add watermark; for numbers only, Add page numbers is a smaller panel.