Skip to contentSkip to the inputSkip to the result

Add page numbers to a PDF

Number every page of a PDF

Loading tool

Instructions

Add page numbers to a PDF

How to use

  1. Choose a PDF, set the position, style and first number, then save.

Supported input

  • PDFs up to 100 MB.
  • Three places at the top and three at the bottom, three styles (1, 1 / 12, - 1 -) and sizes of 8–24 pt.
  • The pages to number can be set, such as 2- (skip the cover) or 3-20, and even pages can be mirrored for duplex printing.
  • The first number may be 0 or negative; left empty, it is 1.

Input example

report.pdf · 12 pages

Result example

report-numbered.pdf

Troubleshooting

  • Unsupported formats and oversized files are refused with a reason.
  • The original file is never changed.

Limitations

  • Password-protected PDFs cannot be opened.
  • Numbers sit 28 pt from the edge and may overlap existing content.
  • Roman numerals are not supported.

How it works

  • Writes a page number on each page of a PDF and saves a new file.

Numbering PDF pages: where the number goes, duplex, and carrying on

When numbers help

  • A bundle of certificates from different issuers, merged into one submission, so a reviewer can say “see page 7”
  • A dissertation or report numbered from the first page of the body, with the title page and contents left blank
  • Printed meeting papers in the “3 / 12” style, so anyone can tell at a glance whether a sheet is missing
  • A scanned contract copy with no page numbers of its own, numbered so a swapped page is easier to spot

Where the number lands

Numbers are set in Helvetica, one of the fonts every PDF viewer knows, in a dark grey at 90% of black. Since only digits and a few symbols are used, nothing needs embedding and the result looks practically the same in any viewer.

For “12” at 11 pt, bottom centre of an A4 page, the two digits are 12.232 pt wide, so the number starts at (595.28 − 12.232) ÷ 2 = 291.52 pt across and sits 28 pt above the bottom edge. On the right, the number is pulled left by its own width so that it ends 28 pt in from the edge.

Positions are measured on the page as you see it. If a page carries a rotation, the coordinates are mapped through it and the text is turned too, so the number always reads upright on screen. In a 12-page test file, page 5 was rotated 90°; its number went in at file coordinates (567.28, 786.37), which is bottom right as displayed.

Worked example: a 12-page report, cover unnumbered, printed double-sided

  1. 1Enter 2- as the pages to number, pick the “1 / 12” style, bottom right, and Even pages mirrored.
  2. 2Pages 2 to 12 get a number, eleven pages in all, so page 2 reads “1 / 11” and page 12 “11 / 11”.
  3. 3Mirroring follows the page’s position in the file, not the number printed on it. Page 2 is even, so its “1 / 11” goes on the left, 28 pt from the edge; page 3’s “2 / 11” goes on the right at 539.76 pt.
  4. 4With the cover as page 1 of a double-sided print, page 2 is the back of the first sheet, the left-hand page of the spread, so its number belongs on the outer, left edge.

Numbers go in as real text

The numbers are written as text, not pictures. Reading the numbered test file back with pdf.js returned “1 / 11” as text on page 2, so numbers can be selected, copied and searched, and stay sharp at any zoom.

Numbering a file that already has numbers from this tool prints the new ones on top of the old. To change the position or style, start again from the un-numbered original.

The original file is opened, the numbers are added and the whole file is saved again. Unlike the tools that copy pages into a new document, bookmarks, the title and form fields all survived. Because the file is rewritten, any digital signature becomes invalid and the producer field changes to pdf-lib.

What it will not do

  • Start at 0: a first number of 0 numbers from 0, for a cover counted as page 0 with the body starting at 1. Negative numbers are accepted too, so −2 numbers the pages −2, −1, 0, 1 and so on. An empty box starts at 1.
  • Remove existing numbers: a page number already printed in the footer stays. If the two clash, move the new one to the top.
  • Change the viewer’s page box: PDF has page labels that make a viewer show i, ii or A-1 in its page field. This tool draws on the page and leaves those labels alone.
  • Words in the number: there is no “Page 1” style. The built-in font covers digits and the / and - symbols used by the three styles, and nothing more.
  • Change font or colour: Helvetica in dark grey is fixed.
  • Run past the end: typing 3-20 for a 12-page file is refused because it names pages that do not exist. To go to the end, leave it open, as in 3-.

Checked

Frequently asked questions

How do I skip the cover and start at 1 on page 2?

Press Skip the cover, or enter 2- as the pages to number, and page 2 gets the first number (1). A range such as 3-20 numbers only the body, and the total in the '1 / 12' style counts only the numbered pages.

Can numbering continue from another file?

Yes, set the first number. If the previous file had 12 pages, enter 13 and the pages are numbered 13, 14, 15 and so on.

The number overlaps my content.

Numbers sit 28 pt (about 1 cm) from the edge. If they clash with a footer, move them to another of the six places or make them smaller. For a document printed on both sides, choose Even pages mirrored to keep numbers on the outer edge.