A header and footer in a Word-style PDF are short, centered text lines stamped at the top and bottom of every page, used for titles, confidentiality notices, filenames, dates, and page numbers. A direct way to add them to a PDF in your browser is the Header Footer PDF tool: choose a local PDF up to 25 MiB, type one or both lines, pick a font size from 6 to 36 points, set an edge margin from 0 to 200 points, and download a new copy with -header-footer.pdf appended to the filename. The browser handles everything locally — loading the source file, embedding standard Helvetica, drawing each line on every structural page, measuring the actual text width, centering it horizontally, and saving the result — so the source and generated bytes never leave the device. Page numbering uses two lowercase tokens: {page} expands to the current one-based page number and {pages} expands to the total structural page count, so a footer like Page {page} of {pages} renders as 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, such as {report}, is left untouched.

how to do header footer in word
How to Add a Header and Footer in a Word PDF

The word "header" originally came from running heads in printed books — a short title at the top of every page to remind readers what they were looking at. The word "footer" is its mirror at the bottom of the page. In a Word document these lines are usually inserted through the Insert tab on the ribbon: Insert > Header or Insert > Footer, then choosing a built-in style or Edit Header / Edit Footer to type custom text. The Header Footer PDF tool produces the same visible result on a PDF by drawing one optional header line and one optional footer line onto each structural page using the embedded standard Helvetica font.

Common labels include the document title, an author or company name, a confidentiality notice such as "Internal use only — not for distribution," a filename, a project or revision tag like "v3.2 draft," and page identifiers such as "Page 3 of 12." Each label is short on purpose: long lines run off the page on narrow formats, and headers compete for attention with the body content. The Header Footer PDF tool caps each text field at 120 Unicode characters after trimming leading and trailing whitespace, which is plenty for any of the labels above and most compliance footers.

Most Word documents leave the application as PDFs, not as .docx files. Recipients open them in Preview, Acrobat, a phone browser, or a print queue, and the layout is preserved exactly as the author designed it. Headers and footers that worked in Word travel inside the PDF, but they only stay there if the author added them before exporting. If the labels were forgotten, dropped during a copy-paste into another document, or only became necessary after the file was shared — for example, a "Confidential" footer that legal adds once a draft leaves the team — the author is left editing a PDF instead of a Word file.

The Header Footer PDF tool is built for exactly that situation. Concrete steps for a Word author who has finished editing and only now needs the labels:

  1. In Word, choose File > Save As and pick PDF as the file type, or use File > Export > Create Adobe PDF / Create XPS Document. Use the smallest file option that keeps the content readable.
  2. If the document needs to be a specific paper size, open the Page Setup dialog first and pick the final page dimensions, because the PDF will carry those dimensions through.
  3. Open Header Footer PDF in the same browser, click the file picker, and choose the PDF you just exported.
  4. Enter the header text, footer text, or both; include {page} and {pages} wherever a page number should appear.
  5. Choose a font size and an edge margin, click Add header and footer, then download the new file.
  6. Open the result in Preview, Acrobat, or your phone to confirm that the labels sit where you expect before sending the file on.

The original .docx is untouched throughout, and the exported PDF is the only file that is changed.

The tool is browser-based, so there is nothing to install. The full step list, as the product confirms:

  1. Choose a local PDF no larger than 25 MiB. The file picker rejects empty, encrypted, damaged, oversized, or incorrectly labeled files with a visible error rather than a silent failure.
  2. Enter header text, footer text, or both in the two text boxes. Each box accepts up to 120 Unicode characters after trimming. Leave one box empty if you only want a header or only want a footer.
  3. Optionally use the two lowercase tokens anywhere in either line: {page} for the current one-based page number and {pages} for the total structural page count of the source document.
  4. Set the font size as a whole number from 6 to 36 points. The size applies to both the header and the footer.
  5. Set the edge margin as a whole number from 0 to 200 points. The header text is positioned below the top edge by that margin, and the footer text begins above the bottom edge by the same margin.
  6. Click Add header and footer. The browser loads the source file, embeds standard Helvetica once, measures each line's real width, centers it within the existing page box, and serializes a new PDF. The drawing step uses the standard PDFPage drawText method from the open-source pdf-lib library.
  7. Download the new file. The download keeps the source filename base and adds -header-footer.pdf, so report.pdf becomes report-header-footer.pdf. Any previous download from the same session is revoked the moment a setting changes, so the latest file cannot be mistaken for an older one.

The source page boxes, page order, existing visible content, and original page count remain in place; only the new text is drawn on top.

Page Numbers with {page} and {pages} Tokens

Page numbering is the most common reason for opening the tool. Two exact lowercase tokens drive it: {page} becomes the current one-based page number on the page where the text is drawn, and {pages} becomes the total structural page count of the source document before any text is added. The total is always the structural count from the source, so it matches whatever page count you would see if you opened the original PDF in Acrobat or Preview.

Other brace text is left unchanged, which is useful when the document already mentions terms in curly braces: a footer like Report {page} of {pages} ({client}) renders as Report 2 of 5 (Acme Co) and never touches the {client} token. The replacement is deterministic: every {page} on every page becomes that page's number, and every {pages} on every page becomes the same total.

Footer textRenders on page 2 of 5 as
Page {page} of {pages}Page 2 of 5
{page}2
Confidential — page {page}Confidential — page 2
{client} — {pages} pages{client} — 5 pages
Total: {pages} — current: {page}Total: 5 — current: 2

The token vocabulary is intentionally narrow: there is no cover-page exclusion, no Roman-numeral mode, no starting-number offset, no separate odd/even content, and no Bates numbering. Headers and footers are applied uniformly to every structural page, with numbering always beginning at one. Those fixed rules keep the output predictable and easy to verify against the original document.

Limits, Margins, and What to Check After Downloading

The Header Footer PDF tool is designed to be predictable, which means a small number of fixed limits. Knowing them up front prevents wasted trial-and-error on a 200-page document.

SettingAccepted range or rule
Source fileNon-empty PDF, up to 25 MiB
Font sizeWhole numbers from 6 to 36 points
Edge marginWhole numbers from 0 to 200 points
Header text lengthUp to 120 Unicode characters (trimmed)
Footer text lengthUp to 120 Unicode characters (trimmed)
Token vocabulary{page}, {pages}, lowercase only
FontEmbedded standard Helvetica
Page scopeEvery structural page; numbering starts at 1
Output filenameSource base + -header-footer.pdf
Network behaviorSource and output never uploaded

The new text is drawn as additional PDF content on top of the existing page box, not as a viewer-only overlay, so existing content near an edge can overlap the chosen line. The tool does not automatically create white space, detect a safe margin, move body content, read the document language, or avoid logos and crop marks. If a line would exceed the usable page width, the tool reduces its font size one point at a time down to the 6-point floor — it does not stretch, wrap, or silently delete the text. Very narrow pages or excessive margins can still leave little usable space, so the result should be opened and skimmed before distribution or printing.

Standard Helvetica covers a practical Latin character set but not every writing system or emoji. If the embedded font cannot encode a character that was entered, file creation fails visibly instead of producing a PDF with missing glyphs. For multilingual branding, custom fonts, hyperlinks, images, dynamic dates, archival-conformance claims, or precise typography, the standard advice is to use a desktop publishing application that can embed the required licensed font.