Skip to content

PDF Header and Footer

Add a running header, a footer or both to the pages of a PDF. Type the text once and use {n} for the page number, {total} for the page count and {date} for the current date, then align it left, center or right, set the font size and the distance from the edge, and apply it to all pages or a range. Ideal for document titles, confidentiality notes and dated print copies.

Choose files or drag and drop them into the upload field. Maximum file size: 5 MB.

Reset

Frequently asked questions

Which tokens can I use?

{n} becomes the page number within the document, {total} the total number of pages and {date} the current date in the form 2026-11-12, taken in UTC when the file is processed. Tokens can appear anywhere in the text and as often as you like, and everything else is printed as typed.

Do I have to fill in both the header and the footer?

No. Fill in either one or both, but at least one is required. Each can hold up to 300 characters, and line breaks are turned into spaces because headers and footers are single lines.

How is the text aligned?

Left, center or right, applied to both the header and the footer. The margin, from 0 to 200 points, sets the distance from the top and bottom edges and, for left and right alignment, from the sides. The default of 28 points is about 1 centimeter.

Does {n} restart when I select a page range?

No. {n} is always the real page number in the document, so a header on pages 3 to 5 shows 3, 4 and 5. Use the PDF Page Numbers tool when you need numbering that starts at a chosen value.

What happens with long text?

If the text is wider than the page minus both margins, it is drawn at a smaller size so it fits on one line. Very long text on narrow pages can therefore come out small.

Which fonts are used?

Helvetica in dark gray at 6 to 48 points. Text with characters outside Helvetica, such as Greek or Cyrillic, is set in an embedded subset of Inter instead. Characters neither font supports, for example Chinese, are refused with a message.

Are rotated pages handled?

Yes. The header and footer follow the page as it is displayed, using its crop box and rotation, so a landscape page that is stored with a rotation still gets its header at the visible top.

Is existing header text replaced?

No. The new text is added on top of the page content, and text that already exists on the page is not detected or removed. Adjust the margin if the document already has headers, so the two do not overlap.

Can I use it on password protected PDFs?

Enter the password in the password field to open a protected PDF. The result is saved without the password, which is never echoed back in the response.

What are the limits?

Files up to 10 MiB and 200 pages, 30 seconds per job and a result below 32 MiB. Links, form fields and bookmarks are kept.

About OneClick Pro

OneClick Pro is a free collection of more than 150 web tools for everyday work: converting images and units, formatting and validating code, checking domains and SEO, and working with text, dates and numbers. Every tool runs without registration or subscription, and what you enter is only used to calculate your result and is never stored. Use it as a quick toolbox for one-off tasks, or bookmark the tools you rely on every day.