# Add Header and Footer to PDF Online - Page Numbers, Date & File Name

> Free online tool to add headers and footers to a PDF: text left, centre or right with {page}, {total}, {date} and {filename} variables, plus a separator line.

- URL: https://qilingtools.com/en/pdf/header-footer
- Category: PDF Tools (https://qilingtools.com/en/pdf)
- Tags: [PDF](https://qilingtools.com/en/tags/pdf), [Documents](https://qilingtools.com/en/tags/document), [Printing](https://qilingtools.com/en/tags/print)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Add a consistent header and footer to every page of a PDF in one go. Both the header and the footer have left, center and right slots, and each supports variables: {page} for the page number, {total} for the page count, {date} for today’s date and {filename} for the file name — for example “Page {page} of {total}” or “{filename} · Internal”. Adjust the font size, color and side and top/bottom margins, limit it to certain pages, skip the first page (cover) and optionally draw a thin rule below the header and above the footer. A live preview shows exactly what you will get. The original pages stay vector; Latin text is written with a standard font and remains searchable, and Chinese is embedded as high-resolution images. Everything runs in your browser and files are never uploaded.

## How to use

1. Upload a PDF file
2. Fill in the left, center or right slots of the header and footer, inserting {page}, {total}, {date} or {filename} as needed
3. Tune size, color, margins and page range against the preview, then click Add header & footer

## Features

- Six slots: header and footer, left, center, right
- Page number, total, date and file name variables
- Skip cover, choose page ranges, optional separator line
- Live preview; original pages stay vector

## FAQ

### How do I get “Page 1 of 10”?

Type “Page {page} of {total}” in the footer’s center slot. {page} and {total} are replaced with the right numbers on every page.

### How do I leave the cover page blank?

Tick “Skip the first page (cover)”, or choose Specific pages and enter a range such as 2-20.

### Will it cover the existing content?

Headers and footers are overlaid on the page and nothing is deleted. If the page already has text near its edges, increase the top/bottom margin to avoid overlap.

### Are my files or data uploaded?

No. Everything runs locally in your browser with no network upload, and is discarded when you close the page.

## Related tools

- [Merge PDF](https://qilingtools.com/en/pdf/merge): Free online PDF merger: combine several PDF files into one in the order you choose, with reordering. Processed locally in your browser, no upload, no sign-up.
- [Split / Extract PDF](https://qilingtools.com/en/pdf/split): Free online PDF splitter: extract a page range into a new PDF, or split every page into its own file and download them as a ZIP. Processed locally.
- [Rotate PDF](https://qilingtools.com/en/pdf/rotate): Free online PDF rotator: rotate all or selected pages by 90°, 180° or 270° to fix scanned documents. Processed locally, no upload.
- [PDF to Image](https://qilingtools.com/en/pdf/to-image): Free online PDF to image converter: render every page as a high-resolution JPG or PNG at 72/150/300 DPI, download all as a ZIP. Processed locally, no upload.
- [Image to PDF](https://qilingtools.com/en/pdf/from-image): Free online image to PDF converter: combine JPG, PNG and WebP images into one PDF in order, with A4 or image-sized pages. Processed locally, no upload.
- [Compress PDF](https://qilingtools.com/en/pdf/compress): Free online PDF compressor: re-render pages with compressed images to shrink scanned and image-heavy PDFs, with adjustable quality. Processed locally.
- [Watermark PDF](https://qilingtools.com/en/pdf/watermark): Free online PDF watermark tool: add text watermarks to every page, tiled or centred, with opacity and angle controls. Any language, processed locally.
- [Delete PDF Pages](https://qilingtools.com/en/pdf/delete): Free online tool to delete PDF pages: remove pages by number or range and keep the rest, then download. Processed locally, no upload.
