Add header & footer on your computer

Text at the top and bottom of every page with variables: {page}, {total}, {date} and {file}. Free, no uploads.

100% private: everything runs on your computer, your files never leave your device.

Tools

  1. Upload your PDF - it opens locally on your computer
  2. Type the header and footer texts with their alignment
  3. Download the stamped PDF

What Add header and footer does

Add header and footer writes a line of text at the top of every page of a PDF, a line at the bottom, or both, on your own computer. You type the texts, choose where each one sits and pick a size, and the text is drawn into the pages.

Both texts can contain four variables that are filled in page by page: {page} becomes the number of the page, {total} the number of pages, {date} the date on which you create the file, and {file} the name of the PDF without its extension. A footer such as Page {page} of {total} shows Page 1 of 12 on the first page.

The text is real text, not a picture or an annotation: it prints, it can be selected and searched, and its font is embedded in the file.

How to add a header and footer to a PDF

  1. Add the PDF. It opens locally and the setup screen shows its name and its number of pages.
  2. Type the header text, the footer text, or both. A field left empty is not drawn, but at least one of the two must contain text.
  3. Add variables with the buttons under each field and combine them with your own words.
  4. Choose the alignment of each line, left, centre or right, and the text size: Small, Medium or Large.
  5. Press Add header & footer. The new PDF is downloaded with the suffix _header and a timestamp, and the original on your disk is not changed.

What you can set and what is fixed

What is kept in the document

The text is added to the existing pages and the document is not rebuilt. Text, images and vector graphics keep their quality, and bookmarks, links and form fields stay in place. Only the Creator and Producer fields of the metadata change, to olepdf.com.

The new text is drawn on top of the page, so if the original already has content near the edge, such as an old page number, the two can overlap.

Several documents in one run

With the 7-Day Pass or Pro you can add several PDFs, type the texts once and get a ZIP file with one PDF per document. {page} and {total} are counted inside each document, and a password-protected PDF in the batch is reported as failed while the others are still processed.

Privacy: the text is added in your browser

The PDF is read and written by a library running inside your browser tab. It is never uploaded and no page is sent anywhere. The only download is OléPDF's own code from its own domain, which makes the tool suitable for contracts and internal reports.

Typical uses

Frequently asked questions

Is adding a header and footer free?

Yes, the free tools include 5 PDFs a day in total. Adding a header and footer to one PDF at a time is free, with no account and no watermark. Stamping several documents in a single run requires the 7-Day Pass or Pro.

Which variables can I use?

Four: {page} for the page number, {total} for the number of pages, {date} for the date on which the file is created and {file} for the file name without its extension. They work in both lines.

Will the header and footer print?

Yes. They are drawn into the page as text, not attached as comments, so they print and they stay in place when the file is merged or converted.

Can I leave the first page without a header?

Not in this tool, because every page gets the same lines. Separate the cover with Split PDF, add the texts to the rest and join the parts again with Merge PDF. {page} then counts from the first page of the part you stamped.

Which alphabets can the text use?

The embedded font covers Latin letters with their accents, Greek and Cyrillic, so names and titles in those alphabets are written correctly.

Is my document uploaded?

No. Everything runs on your computer, inside the browser tab, and the PDF never reaches a server.

PDF Editor

All tools

Photos rather than PDFs? Try OléPIC, our image tools.

Videos rather than PDFs? Try OléVIDEO, our video tools.