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.Choose a local PDF no larger than 25 MiB.
- 2.Enter header text, footer text, or both; optionally use {page} and {pages}.
- 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.
Related tools
- Add Page Numbers to PDFStamp page numbers onto every page of a PDF right in your browser — pick the corner, format, and starting number, with nothing uploaded.
- Add Watermark to PDFStamp clear, adjustable text watermarks onto PDF pages without uploading your file.
- PDF Metadata EditorRead and update PDF document metadata privately in your browser.
- Sign PDFAdd a handwritten signature to any PDF for free, right in your browser — draw your signature, place it where you want, and download the signed file. Your PDF and signature never leave your device: no upload, no account, no watermark.
- Alternate Mix PDFInterleave two local PDFs in A1, B1, A2, B2 order and append any remaining pages without uploading either document.
- Blank PDF GeneratorCreate a one-to-100-page blank PDF at exact user-supplied point dimensions and background color entirely in the browser.
PDF Tools guides
View all- Convert JPG to PDF for Free in Your Browser
- How to Flatten PDF Form Fields in Your Browser
- How to Extract PDF Pages as Images in Your Browser
- Delete PDF Pages in Adobe Acrobat Without the Hassle
- Create a Blank PDF at Any Page Size in Your Browser
- Add a Watermark to PDF in Foxit Without Uploading Your File
- Add Page Numbers to an Existing PDF in Your Browser | Lizely
- How to Extract PDF Pages Into a New File
- How to Extract Pages From a PDF in Your Browser
- Edit PDF Metadata Free: A No-Upload Browser Method | Lizely
- Get a Paper Size Chart in Inches as a PDF Instantly
- How to Combine PDF Files in Your Browser Without Uploading
- How to JPG to PDF Converter: Quick Browser Method
- How to Flatten a PDF Without Losing Quality
- Delete PDF Pages in Adobe Without Installing Software
- Crop and Paste in a PDF: Trim Pages Right in Your Browser
- Free Way to Add a Watermark to Any PDF Without Uploads
- How to Put Page Numbers on a PDF in Your Browser
- Split a PDF into Smaller Files Without Uploading
- Rotate a PDF by Any Degree Without Uploading