Skip to content

5 min read · Updated 2026-09-19

How to add page numbers to a PDF

Numbering is text stamped onto pages. The interesting part is making the printed number agree with what a reader expects on a document with front matter.

Page numbers matter as soon as a document is printed, circulated or cited — someone has to be able to say "see page 14". Stamping them writes text into each page at a position you choose, and the only genuinely tricky part is the offset between the number printed on a page and the position of that page in the file.

5 steps

The procedure

Steps for a MyPDFilles tool run in your browser tab. When a guide directs you to external software, its own privacy and security practices apply.

  1. 01

    Add the PDF

    Drop in the document. Numbers are written into the output pages, so the version without them remains your original.

  2. 02

    Choose the position

    Nine positions are offered, from top left through to bottom right. Bottom centre is the default and the safest convention; outer corners suit documents that will be bound, where the number should sit away from the spine.

  3. 03

    Choose the format

    The options are a bare number, Page 1, 1 of 12, Page 1 of 12, a dashed form, and lower-case Roman numerals. The "of total" forms are useful on documents that get printed and separated, since a reader can tell whether a page is missing.

  4. 04

    Set the starting number and restrict the pages

    Start numbering at decides what is printed on the first stamped page — this is how you continue a sequence from another document. The pages field limits where numbers are stamped, so a range like 3-40 skips front matter.

  5. 05

    Set size and margin, then stamp

    Font size defaults to 11 points, which matches most body text, and the margin from the edge defaults to 28 points — 72 points is one inch, so that is a little under half an inch. Run it and check that nothing collides with existing footers.

Beyond the steps

What is actually happening

01

Why the printed number usually differs from the PDF page index

The position of a page in the file starts at one for the very first sheet, whatever that sheet is. The number printed on a page is whatever the document’s own convention says it should be. These agree only when a document begins numbering on its first physical page, which formal documents rarely do.

Take a report with a cover, an inside title page and a two-page contents section. Conventionally the body starts at page 1, and that body page is the fifth page in the file. If you stamp every page starting at 1, the cover gets a 1 and the body page that should read 1 reads 5 — every cross-reference in the document is then wrong by four.

The fix is the two settings working together. Restrict the stamped pages to 5 onward so the front matter is left unnumbered, and set the starting number to 1 so the first stamped page reads 1. The printed sequence then matches the document’s own convention, and a reader asked for page 20 finds the page marked 20.

If you want the front matter numbered too, the conventional treatment is Roman numerals on those pages and Arabic from the body onward. That is two runs: one over the front matter with the Roman format, one over the body with the starting number reset to 1.

02

Continuing a sequence across documents

The starting-number setting exists mainly for packs assembled from separately produced parts. If section one ends on page 30, stamping section two with a starting number of 31 makes the pack read continuously even though it is several files, or was until you merged it.

Work out the numbers before stamping anything, because each part needs its own run with its own start value, and an error in one shifts every part after it. Counting pages per section first and writing down the start values takes a minute and saves redoing the whole pack.

If the parts will be merged anyway, the simpler route is to merge first and number the combined document once. Then the sequence is continuous by construction, and you only have the front-matter offset to think about. Numbering before merging only makes sense when the parts are produced by different people or must also stand alone.

03

Avoiding collisions and unreadable numbers

Numbers are drawn on top of the page, and the tool has no knowledge of what is already there. A document with an existing footer, a bottom-banner watermark, or a marginal note in the corner you chose will get a number overlapping it. Pick a corner that is empty across the whole document rather than empty on page one.

The margin setting is the other half of this. Too small and the number sits in the region a printer may not be able to reach or a binding may swallow — most desktop printers have an unprintable margin of a few millimetres. The 28-point default clears that comfortably. Increase it if the document will be bound or trimmed.

Mixed page sizes need a thought too. Positions are computed relative to each page’s own dimensions, so a merged A4-and-Letter document gets numbers correctly placed on every page but not at an identical distance from the top of the stack, since the pages differ in height. If uniformity matters, normalise the page size before numbering.

Finally, the stamped number becomes page content like any other text. It appears in text extraction and in search, and it does not renumber itself if pages are later added or deleted — a document you stamp and then edit will have numbers that no longer match, and the correct fix is to re-stamp from the unnumbered original.

While you follow this

MyPDFilles tools process files in this browser tab.

For a MyPDFilles tool, your document is read from your disk into this browser tab and the result is handed to your browser’s download mechanism. We do not make the same claim for external applications discussed in educational guides; check their own privacy and security information before using them.

Verify MyPDFilles requests in your Network panel

Questions about this task

How do I skip the cover and contents pages?

Restrict the pages field to the range where the body starts, such as 5-60, and set the starting number to 1. The front matter stays unnumbered and the first body page reads 1.

Can I use Roman numerals for the front matter and normal numbers for the body?

Yes, as two runs. Stamp the front-matter range with the Roman format, then stamp the body range with a numeric format and the starting number set back to 1.

Will the numbers overlap my existing footer?

They can, since they are drawn over the page without regard to what is there. Choose a position that is clear throughout the document, and check a few pages before distributing.

Do the numbers update if I add pages later?

No. They are static text stamped into the pages. If the document changes, re-stamp from the unnumbered original rather than adding a second set of numbers.