Home › PDF Tools › Add Header and Footer to PDF

Add Header and Footer to PDF

Stamp a running header and footer on every page of a PDF: a title on the left, the date in the middle, Page 3 of 12 on the right, or any mix. Smart tokens fill in the page number, total, date and file name, and a live preview shows each page before you download.

Header (top of page)
Footer (bottom of page)
Insert:
Style & position

Pages & numbering
Preview
Page 1
Choose a PDF to get started. The preview shows a sample page until then.
Advertisement
Advertisement

How to use the Add Header and Footer to PDF

  1. Open your PDF by dropping it on the box or clicking Choose PDF.
  2. Type the header and footer text into the left, center and right boxes. Click a token such as {page} to insert it where the cursor is.
  3. Adjust the style: font, size, color, margins and an optional separator line. Use the arrows above the preview to check other pages.
  4. Choose the pages: all pages, a range, or skip the first page, and set the first page number.
  5. Press Add header & footer and download to save the new PDF.

Tokens you can use

Tokens are replaced separately on every page. Mix them with any text you like.

TokenBecomesExample on page 3 of 12
{page}Current page number (starting at your First {page} number)3
{total}Last page number that is printed, or the total you enter12
{date}Today's date in the chosen format2026-10-20
{time}Current time (24-hour clock)14:05
{filename}File name without the .pdf extensionannual-report

Popular combinations: Page {page} of {total} in the footer, {filename} or a company name in the header, Confidential · {date} for drafts, and {page} alone on the outer edge for books.

Margins and sizes in points

PDF measurements use points: 1 pt = 1/72 inch ≈ 0.353 mm. The top margin is measured from the top edge to the top of the header text, the bottom margin from the bottom edge to the footer's baseline, and the side margin from the left or right edge to the start or end of the text.

PointsMillimetresInchesTypical use
18 pt6.4 mm0.25 inTight margin, slides and screenshots
28 pt9.9 mm0.39 inDefault, fits inside most printers' safe area
36 pt12.7 mm0.5 inCommon for reports and letters
72 pt25.4 mm1 inAligned with standard 1-inch body margins

Most office printers cannot print closer than about 4–6 mm (12–17 pt) to the edge, so keep margins above that if the document will be printed. Body text is usually 10–12 pt; 8–9 pt keeps headers and footers readable but unobtrusive.

Header and footer vs. page numbers only

If all you need is a page number, Add Page Numbers to PDF offers extra formats such as Roman numerals. To mark every page diagonally with DRAFT or CONFIDENTIAL, use Watermark PDF.

Frequently asked questions

How do I add a header or footer to a PDF?

Open the PDF, type your text into the header or footer boxes (left, center or right) and press Add header & footer and download. The text is drawn on every page at the margin you chose, and the preview shows exactly where it lands.

How do I add Page 1 of N to the footer?

Type Page {page} of {total} into a footer box. {page} becomes the current page number and {total} the last page number that is printed, so a 12-page document reads Page 1 of 12 through Page 12 of 12. If you skip the cover, the total adjusts automatically, or you can set it yourself.

Which tokens can I use?

{page} is the page number, {total} the total number of numbered pages, {date} today's date in the format you choose, {time} the current time and {filename} the PDF's file name without .pdf. Tokens can be mixed with normal text, for example Draft · {filename} · {date}.

Will the header cover existing text?

The text is drawn on top of the page, so if the PDF already has content near the edge it may overlap. Increase the top or bottom margin, reduce the font size or check the preview before downloading. 1 point is 1/72 inch, so the default 28 pt margin is about 10 mm.

Why do some characters turn into question marks?

The tool uses the 14 standard PDF fonts, which support Western European characters (the Windows-1252 set). Characters outside it, such as Chinese, Cyrillic or emoji, cannot be drawn with these fonts and are replaced by ? so the file stays valid.

Does it work with landscape and rotated pages?

Yes. Each page's size and rotation are read separately, so the header always appears along the top edge as the page is displayed, even in documents that mix portrait and landscape pages.

Is my PDF uploaded?

No. The PDF is edited in your browser with pdf-lib and previewed with pdf.js. The file never leaves your device.

Related tools

Add Page Numbers to PDFNumber PDF pages with your choice of position, format and font.Watermark PDFStamp a text or logo watermark on PDF pages with custom opacity.Insert Pages into PDFInsert blank pages or pages from another PDF anywhere in your document, privately in your browser.PDF EditorAdd text, whiteout, shapes, images and drawings to any PDF page, then save a new PDF.Merge PDFCombine several PDF files into one document.Compress PDFReduce PDF file size while keeping it readable.JPG to PDFCombine JPG photos into one PDF with page size, margins and orientation options.PDF to WordConvert PDF files to editable Word documents.PDF to ExcelExtract tables from PDF files into an Excel spreadsheet (XLSX) or CSV, right in your browser.PDF to JPGTurn PDF pages into high-quality JPG images.PDF to PNGConvert PDF pages to PNG images with custom DPI and transparent background.Word to PDFConvert Word DOCX documents to PDF.Image to PDFConvert JPG, PNG, WEBP and more into a PDF.Split PDFExtract pages or split a PDF into separate files.Delete PDF PagesRemove pages from a PDF using a visual thumbnail grid.Rotate PDFRotate one page or all pages of a PDF by 90, 180 or 270 degrees.Invoice GeneratorCreate professional invoices and save them as PDF.Sign PDFDraw, type or upload a signature and place it on any PDF page, free and private.Fill PDF FormFill in PDF form fields online: text boxes, checkboxes, radio buttons and dropdowns.PDF Metadata EditorView and edit a PDF's title, author, subject, keywords and dates, or clear them all.PDF to Text ConverterExtract the text from any PDF page by page, then copy it or save it as a TXT file.Text to PDF ConverterTurn plain text or a .txt file into a clean PDF with your font, size, margins and page size.HTML to PDF ConverterPaste HTML and CSS, preview it as pages and download a PDF, safely in your browser.Markdown to PDF ConverterWrite or paste Markdown, preview it with a clean theme and export a polished PDF in seconds.Excel to PDF ConverterConvert Excel and CSV sheets into tidy, paginated PDF tables with repeated headers.Flatten PDFFlatten PDF form fields and annotations into the page so they can no longer be edited.Grayscale PDFConvert a color PDF to grayscale or pure black and white for printing, right in your browser.PDF ViewerOpen and read PDF files in your browser with zoom, search, thumbnails and fullscreen.PDF Word CounterCount words, characters and lines in a PDF, page by page, with top words and CSV export.Organize PDFReorder, rotate, delete and duplicate PDF pages with drag-and-drop thumbnails.Crop PDFTrim PDF margins by dragging a crop box on the page, for all pages or selected ones.Resize PDFChange PDF page size to A4, Letter, Legal, A3 or custom and scale content to fit.Extract Images from PDFPull every embedded photo and graphic out of a PDF as PNG or JPG, or save pages as images.Redact PDFBlack out names, numbers and any text in a PDF for real: the hidden text is removed, not covered.Resume BuilderFill in a simple form, pick one of 3 clean templates and download your resume as a PDF.PDF to PowerPointTurn every PDF page into a PowerPoint slide (PPTX) in 16:9, 4:3 or the PDF's own size.PDF to MarkdownConvert PDF to clean Markdown with headings, lists, tables, bold, italics and links.PDF to HTMLConvert PDF to a clean, responsive HTML page or an exact positioned layout, in your browser.Compare PDFCompare two PDF files and see added, removed and changed text side by side, page by page.PDF Page CounterCount the pages of many PDFs at once, with totals, page sizes and a CSV export.Invert PDF ColorsTurn a PDF into dark mode: invert colors, keep hues or use a night sepia theme for easy reading.PDF N-UpPrint 2, 4, 6, 9 or 16 PDF pages per sheet with your own order, margins and borders.PDF Booklet MakerTurn a PDF into a print-ready folded booklet: pages imposed 2 per sheet in saddle-stitch order.PDF to Long ImageStitch all PDF pages into one tall PNG or JPG image, with gap, width and page range options.PNG to PDFConvert PNG images to one PDF, keeping transparency or filling it with white or any color.HEIC to PDFConvert iPhone HEIC photos into one PDF in your browser, with page size, margins and reordering.CSV to PDFTurn a CSV file into a clean, paginated PDF table with repeating headers.Add Stamp to PDFStamp APPROVED, PAID, DRAFT or custom text with a date onto any PDF page.Remove Blank Pages from PDFFind and delete empty or near-blank pages in a PDF automatically.