Add Header & Footer to PDF Online - Free
Reports, handbooks and exam papers look finished when every page carries the document's name at the top and a page reference at the bottom. Add both here in one pass - with placeholders, so page numbers fill themselves in per page.
Placeholders: {page} = this page's number, {total} = total pages. Use them in either box - for example a footer of Page {page} of {total}.
Only need page numbers, with more positions and styles? Use the dedicated Add Page Numbers tool - this page is about header and footer text.
How to use this tool
- Choose the PDF to stamp.
- Type your header and/or footer text - use {page} and {total} where numbers should appear.
- Choose alignment and font size, and tick Skip first page if the document has a cover.
- Download the stamped PDF and check the first and last pages.
Popular PDF Tools
Frequently Asked Questions
How is this different from the Add Page Numbers tool?
That tool is dedicated to numbers alone, with more positions and number styles. This tool stamps free text at the top and bottom - document titles, school or office names, confidentiality lines - and page numbers are available inside that text through the {page} and {total} placeholders.
Can the header and footer say different things?
Yes - they are independent boxes. Leave either one empty to stamp only the other.
Do headers and footers appear on every page?
On every page except the first when Skip first page is ticked - the common choice for documents with a cover or title page.
Can I edit or remove the header later?
The text is drawn onto each page as real content, like the Add Page Numbers tool - it is not a separate removable layer. Keep your original if you may need an unstamped copy.
Related PDF Tools
Add Page Numbers
Stamp page numbers in your style and position on every page of a PDF.
Add Watermark
Stamp text like CONFIDENTIAL or your school name across every page.
Edit PDF Info
View and change a PDF's hidden title, author, subject and keywords.
Merge PDF
Combine several PDF files into one document, in the order you choose.
How it works
The tool opens your PDF with pdf-lib in your browser, embeds the standard Helvetica font, and draws your header and footer text onto every page (optionally skipping the first). Before drawing each page, it replaces the placeholders in your text: {page} becomes that page's number - counting from your chosen start number - and {total} becomes the document's page count. Horizontal position is calculated from the measured width of the finished string, so centered and right-aligned lines sit correctly on any page size, portrait or landscape.
Worked example
A teacher prepares a 12-page handout. Header: Science Notes - Chapter 5. Footer: Page {page} of {total}. With Skip first page ticked for the cover, page 3 of the download reads 'Science Notes - Chapter 5' at the top and 'Page 3 of 12' at the bottom - automatically.
Frequently asked questions
Where exactly are the stamps placed?
The header sits 24 points from the top edge and the footer 24 points from the bottom edge, inside the usual margin area, in a neutral dark gray that prints well in black and white.
What do the alignment choices do?
Center, Left and Right apply to both lines. The fourth option puts the header at the left and the footer centered - the classic report layout - and is a good default when your footer contains a Page X of Y line.
Which characters can I use?
Basic Latin letters, numbers and punctuation. The standard Helvetica font used for stamping does not include Urdu, Arabic, Chinese or emoji characters - those would not render, so the tool sticks to what prints reliably.
Will stamping change my pages or file much?
Pages, images and layout are untouched; only the two short text lines are drawn on each page, so the file grows only slightly.
Can I stamp different text on different pages?
No - the point of a header/footer is consistency across the document. For one-off text on a single page, a PDF editor is the right tool.