Skip to content

Header Footer PDF

Add centered header and footer text to every page of a local PDF with page-number tokens, controlled size, and edge margin.

Privacy: your files never leave your device. All processing happens locally in your browser.

How to use

  1. 1.Choose a local PDF no larger than 25 MiB.
  2. 2.Enter header text, footer text, or both; optionally use {page} and {pages}.
  3. 3.Set font size and edge margin, create the file, and download the new PDF.

About Header Footer PDF

Header Footer PDF adds one optional header line and one optional footer line to every page of a local document. Choose a PDF, enter either or both text fields, set a font size and edge margin, then select Add header and footer. The browser opens the source, draws the expanded text on each page, and saves a new PDF. The source and generated bytes are not uploaded to Lizely.

Two placeholders support simple numbering. The token {page} becomes the current one-based page number, and {pages} becomes the total structural page count. A footer such as Page {page} of {pages} therefore becomes Page 2 of 5 on the second page of a five-page document. Replacement is deterministic and applies everywhere the exact lowercase token appears. Other brace text is left unchanged.

Font size accepts whole values from 6 to 36 points. Edge margin accepts whole values from 0 to 200 points. Header text is positioned below the top edge by the selected margin and requested font size, while footer text begins above the bottom edge by the selected margin. Both lines are horizontally centered from the real text width measured with the embedded standard Helvetica font.

Each text field is trimmed and limited to 120 Unicode characters. If a line would exceed the usable page width, the tool reduces its font size one point at a time down to a 6-point floor. It does not stretch, wrap, or silently remove text. Very narrow pages or excessive margins can still leave little usable space, so the user should inspect the result before distributing or printing it.

The source page boxes, page order, existing visible content, and original page count remain in place. The new text is drawn as additional PDF content; it is not a viewer-only overlay. Existing content near an edge can therefore overlap the chosen line. The tool does not automatically create white space, detect a safe margin, move body content, read document language, or avoid logos and crop marks.

Files must be non-empty PDFs no larger than 25 MiB. Encrypted, damaged, unsupported, oversized, or incorrectly labeled files produce a visible error and are not bypassed. Changing any setting revokes the previous download and prevents it from being mistaken for the current configuration. A stale asynchronous job cannot replace a newer file or text choice.

Standard Helvetica supports a practical Latin character set but not every writing system or emoji. If the embedded standard font cannot encode entered text, file creation fails visibly instead of claiming success with missing glyphs. This boundary avoids silently substituting characters. For multilingual branding, custom fonts, or precise typography, use a desktop publishing application that can embed the required licensed font.

Headers and footers are applied uniformly to every structural page. There is no cover-page exclusion, starting-number offset, Roman-numeral mode, or separate left and right alignment. Numbering always begins at one and the total always reflects the source document before any text is added. Those fixed rules keep the output predictable and easy to verify.

The download keeps the source filename base and adds -header-footer.pdf. This tool does not create multi-line headers, images, different odd/even content, section-specific numbering, Bates numbering, dynamic dates, rich fonts, hyperlinks, or archival-conformance claims. Use it for straightforward centered labels, confidentiality notices, filenames, revision names, and page numbering where a private client-side workflow is appropriate.

Methodology & sources

Validate one bounded PDF and user text, expand exact page tokens per structural page, embed standard Helvetica once, measure each line, reduce size to a six-point floor when necessary, center it within each existing page box at the requested edge margin, serialize a new PDF, and revoke stale URLs.

Frequently asked questions

How do I add current and total page numbers?
Use {page} for the current page and {pages} for the total, for example Page {page} of {pages}.
Does the tool make room for the text?
No. It draws inside the existing page box, so content already near the edge can overlap.
What happens when a line is too wide?
The font size is reduced down to 6 points; text is not stretched or silently deleted.
Is my PDF uploaded?
No. Loading, font embedding, drawing, saving, and download creation run locally in the browser.

PDF Tools guides

View all