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.

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

    1. 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.

    2. Write the lines

      Type a header and a footer. Use {page}, {total} and {file} where the values should be filled in.

    3. 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.

    Frequently asked questions

    Are my PDFs uploaded anywhere?No. The file is read in this tab, the text is drawn here, and the result is saved as a download.
    What can I put in the placeholders?Use {page} for the page number, {total} for the page count and {file} for the file name. Any other text is written as typed.
    Can I add only a header, or only a footer?Yes. Leave the other field empty; the tool refuses only when both are empty.
    Can I skip the cover?Yes. Tick “Leave the first selected page bare”, or select the pages you want in the page field.
    Will the header overlap the page content?It can, if the content reaches the margin. Increase the margin or reduce the font size, and check the first page before sending a large run.
    Does it work with non-English text?Only Latin characters, digits and common punctuation. The built-in font cannot draw other scripts, and the page says so instead of writing broken text.