Add header to PDF document pages, plus a footer

To add a header and footer to a PDF, choose the file, type a line for the top, the bottom or both, and pick left, center or right for each. Page numbers and a date can fill in on their own. The tool saves a new PDF in your browser, ready to check and download.

Add a header and footer

Choose a PDF and customize the text on your pages.

Or drop one PDF here.

One PDF · Processed on your device

No PDF selected.

Page size increases. Existing content stays its original size.

Header alignment
Footer alignment

Use {page}, {pages} or {date}. Leave either line blank to omit it.

Page placeholders use physical page numbers, starting at 1, and the total document count. Margins follow visible page edges; 72 points = 1 inch.

Choose one PDF to begin.

Rendered output preview

Create the PDF to see the saved result. Changing settings clears the old result.

Your PDF will appear here after you create it.

Check placement on your pages before sharing. Added text stays selectable; existing scans remain images.

How to add a header and footer to a PDF

The text is added when you select Create PDF, and the preview then shows pages of the saved file. Changing any setting afterwards clears that result until you create the PDF again.

  1. Choose the PDF

    Select Browse files or drop one PDF into the file area.

  2. Choose the placement

    In Placement, keep Add space for header/footer, or pick Overlay on existing page.

  3. Write the header and footer

    Type in Header text and Footer text, then pick Left, Center or Right for each. Leave either line blank to skip it. Use {page}, {pages} or {date} for page details.

  4. Set the text appearance

    Choose Font, Font size (pt) and Text color. Set Horizontal margin (pt) and Vertical margin (pt), the gaps from the page edges.

  5. Pick the pages

    Keep All pages in Pages, or pick Selected pages and type Page numbers or ranges, such as 2, 4-7.

  6. Preview and save the PDF

    Select Create PDF, check the saved pages with Previous and Next, then select Download PDF.

A file named contract.pdf downloads as contract-header-footer.pdf. Reset clears the file and restores the default settings.

Page numbers, dates and your own text

Three placeholders fill in on each page. {page} becomes the page number, counted from the first page as 1, and {pages} becomes the number of pages in the whole file. The footer starts as Page {page} of {pages}, centered, so page 2 of a 5-page file reads Page 2 of 5.

A selection does not renumber pages. If you pick pages 2-4 of that file, they still print 2, 3 and 4 of 5. The numbers have no leading zeros, so ABC-{page} prints ABC-3, not the fixed-width numbers of Bates labels.

Type {date} and a Date for placeholder field appears, set to today's date on your device. The date prints as YYYY-MM-DD, such as 2026-03-14. Any other text in braces stays as you typed it.

Each header and footer is one line, and the same line is used on every selected page. Only the placeholders change from page to page.

Add space or overlay on the page

Add space for header/footer, the default, makes each selected page taller. It adds a blank band at the top for the header and one at the bottom for the footer, and the original content keeps its size and position. On a US Letter page, 612 by 792 points, the default 12 pt text and 24 pt vertical margin add a 61.97-point band. A footer alone makes the page 612 by 853.97 points; a header and a footer make it 612 by 915.94 points.

Overlay on existing page keeps the page size and prints the text on top of what is there. It can cover existing words, so choose a spot with space and check every selected page in the preview.

Margins use points, and 72 points make an inch, so the default 36 pt horizontal margin is half an inch from the side. Text that does not fit across a page stops the run with a message.

Original print trim settings remain unchanged and may exclude the added margins. Notes or links crossing a cropped edge may require Overlay instead. Cropped content stays hidden.

Fonts, characters and file size

Font offers DejaVu Sans, DejaVu Serif and DejaVu Sans Mono. All three print Latin, Greek and Cyrillic letters, and the added text stays selectable and searchable in the saved PDF.

When a font lacks a character, such as a Chinese one, the tool stops and names the character code instead of swapping in another symbol. Accents are combined into a single character where possible. Arabic, Hebrew and remaining combining marks stop the run, because the tool cannot join or place them correctly. Line breaks and tabs are refused as well.

The whole font file goes into the PDF, adding a similar amount regardless of the page count. In a test on a small 3-page file the output grew by about 420 KB with DejaVu Sans and by about 220 to 240 KB with DejaVu Serif or DejaVu Sans Mono. The summary under the preview shows the input and output sizes after each run.

What stays the same, and limits

The tool opens your PDF, draws the new lines on the selected pages and saves the document again. Pages are not turned into images: text stays text, form fields keep their values and scans stay images, with selectable header and footer text added. Rotated pages get their text upright as a reader sees them, and a file can mix page sizes.

Existing headers, footers and page numbers are not removed or edited. Saving breaks any digital signature, and the document properties, such as its title, are left as they were.

Forms, bookmarks and annotations are kept when possible. Complex interactive features may behave differently. Check the saved document before sharing it.

A password-protected PDF is refused, so choose an unlocked copy. A damaged file is reported as unreadable, a file that is not a PDF is refused, and the tool works on one PDF at a time. It sets no page or file-size limit of its own, but a very large PDF can need more memory than the browser tab has. Cancel stops a run, and each run starts again from the PDF you chose.

Questions

How can I add a header to a PDF for free?

Choose your PDF on this page, type the line in Header text and select Create PDF. There is no account, sign-in or price, and nothing to install. The page needs JavaScript and a browser that can run Web Workers. It sets no page or file-size limit of its own; the memory of your browser tab is the limit.

How do I add a header to every page of a PDF?

Keep All pages, the default in Pages, and every page gets the same header line in one run. Use {page} and {pages} in the text if each page should also show its own number. The header prints on every page at the size, font and margins you set, including rotated pages.

How do I skip the cover page?

Choose Selected pages in Pages and type a range that starts at 2, such as 2-12 for a 12-page file. The cover gets no header or footer, and page 2 still prints as 2, because numbers count every page in the file. A page typed twice gets the text once.

How do I add a title to a PDF document?

Type the title in Header text and it prints at the top of each selected page as visible text. That does not change the title stored in the document properties, which a PDF reader can show in its window bar. To change that stored title, use the PDF metadata tool listed below.

Can I change or remove a header that is already in a PDF?

No. The tool only adds new text, and existing headers, footers and page numbers stay where they are. Add space puts the new lines in fresh bands above and below the old page, so they do not overlap old text there. Overlay prints on the page itself, where it may cover old text.

What if the preview cannot render?

The download remains available. Open the PDF in a reader to inspect it. Browser rendering of complex PDF features can differ from other readers.

Are my files uploaded?

No. The PDF and the text you type are read and processed by a Web Worker in your browser. They are not sent to a server or saved in browser storage. Reset clears the file, the settings and the download link, and leaving the page does the same.