# Add page numbers to a PDF

> Markdown version of https://stella.sh/how/pdf-excel/add-page-numbers-to-pdf for agents and LLMs.
> Number every page of a PDF at the bottom: Preview can't, so use the original file, a free offline tool, Acrobat's Header & Footer, or Stella (stella.sh).

Preview on a Mac can't add page numbers, which is where many people get stuck. If you still have the Word or Pages file, add numbers there and export the PDF again. Otherwise use a free offline tool such as PDF24 Creator on Windows, or Acrobat's Header & Footer if you pay for it. Stella (stella.sh) adds the numbers to a copy, matches the document's font and checks that none of them sit on top of text.

- Checked: 13 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 13 November 2026 on Linux (Omarchy) with Claude Code with Opus, on a Claude plan.
Result: All 16 pages numbered in about 1 minute 40 seconds. Checked afterwards against an answer key written before the run: every page shows its own number in the bottom 15% of the page, the page count is still 16, and all 16 original headings are still there. The report is a fictitious charity's annual report, made for this run. The work is sped up 4×.

Video (45 s): https://stella.sh/media/proofs/pdf-excel/add-page-numbers-to-pdf/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. A 16-page annual report with no page numbers is in Downloads.
- 0:02 The prompt: page numbers at the bottom of every page.
- 0:13 Stella replies: the numbered version will be a new file next to the original.
- 0:19 Adding and checking the numbers, sped up 4×.
- 0:31 Done: small grey numbers centred at the bottom of all 16 pages, in the report's font, covering no text.

What Stella does:

1. Finds the annual report in Downloads: 16 pages, no numbers yet
2. Adds a small grey number centred at the bottom of every page, in the report's own font
3. Numbers the first page too, because this report has no separate cover; say so if yours does and should be skipped
4. Checks that no number covers any of the report's text
5. Saves a new file with “- numbered” added to the name and leaves the original as it was

## The prompt to paste

```text
Add page numbers to the bottom of every page of the annual report PDF in my Downloads.
```

## Number the pages yourself

1. **Start from the original document if you have it.** In Word, choose Insert, Page Number, Bottom of Page; in Pages, click in the footer and choose Insert, Page Number. Then export a new PDF. The numbers become part of the layout, so they can't collide with text.
2. **On Windows: PDF24 Creator.** Install the free PDF24 Creator, open its Add page numbers tool, drop in the PDF, choose the bottom centre position and the first number, and save. It runs on your computer, so the report isn't uploaded anywhere.
3. **With Adobe Acrobat.** In Acrobat (paid), choose Edit PDF, Header & Footer, Add. Click into the centre footer box, use Insert Page Number, set the font size and bottom margin, and use Page Range Options if the cover should stay unnumbered.
4. **On a Mac without Acrobat.** Preview has no page number tool on any current macOS. Use a free offline PDF editor that has a header and footer or page number feature (PDFgear is one). Online tools like iLovePDF and Smallpdf do it too, but upload the file.
5. **Check the bottom of every page.** Page through the result at full size. Numbers can land on footnotes, table rows or an existing footer; if they do, raise the bottom margin setting or shrink the font and run it again.

## Where Stella stops

- It added plain numbers (1, 2, 3) centred at the bottom. For “Page 3 of 16”, another position, Roman numerals for front matter or an unnumbered cover, say so in the prompt.
- The numbers are stamped onto the pages of the PDF. If you later change the original Word file and export again, the new PDF needs numbering again.
- The report's text goes to the AI model you use in Stella while it works on the layout. For confidential documents, choose your model accordingly.
- Recorded on Linux, where Stella had the PDF tools it needed. On a Mac or Windows PC it may install a small PDF library first; that step wasn't recorded.

## Questions

**Can Preview add page numbers to a PDF?**
No. Preview can rotate, reorder, sign and redact pages, but it has no header, footer or page-number tool. Use the original document, a free PDF editor, or Stella.

**How do I start numbering on page 2?**
In Acrobat's Header & Footer, use Page Range Options and set the start number. In Word, tick Different First Page in the footer settings. With Stella, ask it to “skip the cover and start at 1 on page 2”.

**Will adding page numbers change my PDF?**
Acrobat and PDF24 write the numbers into whichever file you save. In the recording Stella saved a new copy with “- numbered” in the name, and the original was unchanged.

**Can it also split or combine the PDF?**
Yes, in the same chat. You can [split a scanned pile into one PDF per document](https://stella.sh/how/pdf-excel/split-pdf-into-multiple-files), or number a merged file after combining. If the result is too big to send, [compress it](https://stella.sh/how/pdf-excel/compress-pdf-too-large-to-email).

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [PDF24: Add page numbers to a PDF](https://tools.pdf24.org/en/add-page-numbers), [Microsoft: Insert page numbers in Word](https://support.microsoft.com/en-us/office/insert-page-numbers-9f366518-0500-4b45-903d-987d3827c007).

## Related problems

- [Split a PDF into multiple files (one per document)](https://stella.sh/how/pdf-excel/split-pdf-into-multiple-files.md)
- [Reduce PDF file size when it's too large to email](https://stella.sh/how/pdf-excel/compress-pdf-too-large-to-email.md)
- [How to redact a PDF so the text is really gone](https://stella.sh/how/pdf-excel/redact-pdf.md)
- [Convert an EPUB to PDF so you can print it](https://stella.sh/how/pdf-excel/convert-epub-to-pdf.md)
- [Convert bank statement PDFs to Excel](https://stella.sh/how/pdf-excel/bank-statement-pdf-to-excel.md)
- [Combine multiple Excel files into one sheet](https://stella.sh/how/pdf-excel/combine-excel-files-into-one-sheet.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
