How to add a header and footer to a PDF on a Mac
Put a title, a date or "Page 2 of 10" at the top and bottom of every page — in Safari, in the original document, or by hand in Preview
By Metin Ersoy · Updated November 2, 2026
Preview has no header option
Preview, the app that opens PDFs when you double-click them, can add a text box to a page, but it cannot repeat the same text on every page. There is no header, footer or page number setting in it.
That leaves three routes:
- A finished PDF — add the header and footer in Safari with PDFVela. This is the fastest way for long files.
- A document you wrote yourself — add the header in Pages, Word or Google Docs and export the PDF again.
- Two or three pages — place a text box by hand in Preview.
Add a header and footer in Safari
Add header and footer works in Safari or Chrome on the Mac.
- Open the tool and choose the PDF. A preview of the first page appears next to the form.
- Type your text into any of the six spots: left, centre or right, under Header (top of the page) or Footer (bottom of the page). Empty spots stay empty.
- Use the placeholders where you need them:
{n}for the page number,{total}for the number of pages and{date}for today's date. "Page{n}of{total}" in the footer centre is a common choice. - Pick a Text size. Tick Leave the first page (cover) empty if the first page is a title page.
- Click Add header and footer and download the new PDF.
A typical report gets the document title on the top left, the date on the top right and the page numbers at the bottom. The PDF is processed in the browser and is not uploaded, which matters for contracts and reports that are not yet public.
Add it in the original document
If you made the document yourself and can still edit it, a header in the original moves with the text and looks the most natural.
- Pages: click Document in the toolbar, then tick Header and Footer on the Document tab. Click inside the header area at the top of a page to type, and choose Insert → Page Number for numbers. Export with File → Export To → PDF.
- Word for Mac: choose Insert → Header or Insert → Footer, type your text, and tick Different First Page to skip the cover. Save with File → Save As and choose PDF.
- Google Docs: choose Insert → Headers & footers, then download with File → Download → PDF document.
A few pages by hand in Preview
For a short PDF, Preview's text box is enough.
- Open the PDF in Preview and choose Tools → Annotate → Text.
- Type the header, then drag the box to the top margin. Use the A button in the markup toolbar to set the font and size.
- Select the box, press Command + C, go to the next page and press Command + V. Drag the copy to the same place.
- Repeat for every page, then save.
The text stays a separate note that some programs show differently or not at all. To fix it onto the page, make a flat copy as shown in flattening a PDF on a Mac. Preview cannot number the pages this way — adding page numbers on a Mac covers that.
Before you add the header
- Merge first. If the document is made of several files, join them with Merge PDF or as shown in merging PDFs on a Mac, so the page numbers run through the whole document.
- Look for an old header. PDFs exported from Word often already have a line at the top or bottom. If your new text lands on it, use a free corner or a smaller size.
- Keep it short. The margin is narrow. A short title or the client's name reads better than a full sentence.
- Keep the original. The header becomes part of the page. Save the file without it in case you need another version.
When something goes wrong
The header overlaps the text. The page has a very small margin. Choose Small for Text size or move the text to a spot where the page is empty.
The date is wrong. {date} writes the day you run the tool. To show a fixed date, such as the day a contract was
signed, type it yourself instead of the placeholder.
Turkish or other accented letters look wrong. PDFVela embeds a font that supports them automatically. In Preview, choose a font such as Helvetica or Arial for the text box.
Preview will not save the file. The PDF is protected. If you know its password, see how to remove a PDF password on a Mac, add the header to the unlocked copy, and protect it again with how to password-protect a PDF on a Mac if needed.
Need legal page labels such as SMITH-000001? See adding Bates numbers to a PDF.
On a Windows PC instead? Follow how to add a header and footer to a PDF on Windows.
Ready to try it? It is free and your file stays on your device.
Open Add header and footer