Add Page Numbers to PDF

Put page numbers on a PDF. Choose the position, format and size, and the page the numbering starts on, for example after the cover.

Your PDF file is processed on this device and never uploaded to a server.

How to use it

  1. Choose a PDF file.
  2. Pick where the number goes (top or bottom; left, center or right) and its format.
  3. To skip a cover, set Start on page to 2. First number is the number printed on that page.
  4. Check the summary under the settings, press Add page numbers and download the result.

How the numbers are counted

Numbering starts on the page you enter in Start on page and goes up by one on every page after it. The formula: number on page p = first number + (p − start page). Pages before the start page get no number but stay in the file.

Example: a 12-page report with a cover. Set Start on page to 2 and First number to 1. Page 2 shows 1 and page 12 shows 11. In the 1 / N format, N is the number on the last page of the document, so page 12 reads "11 / 11".

The page choice (odd, even or specific pages) only decides where a number is printed; the count keeps running underneath. If the appendix on pages 11-12 should stay unnumbered, choose pages 2-10. When you type the pages yourself like this, N follows the last page you chose, so page 10 reads "9 / 9".

Where the number sits on the page

The distance from the edge is measured from the edge of the visible page to the edge of the digits. PDF measures in points (1 point = 1/72 inch), so 10 mm is 28.35 points. An A4 page is 595.28 × 841.89 points. The text "1 / 11" in 10 pt Helvetica is 25.02 points wide, so at the bottom center it starts at x = (595.28 − 25.02) / 2 = 285.13 points, with its baseline at y = 28.35 points.

Two things often make the real calculation less simple than that, and the tool handles both:

  • Rotated pages. A page can be stored as portrait but shown as landscape because of a /Rotate 90 entry. The number goes at the bottom of the page as you see it on screen, reading upright, not along the right edge of the original sheet.
  • Page areas that don't start at 0,0. The visible part of a page is set by its CropBox. Scans and PDFs that were trimmed often have a CropBox offset from the MediaBox. Positions are measured from the CropBox, so a number never lands in the trimmed-off part.

Limits

Numbers are set in Helvetica, one of the standard fonts every PDF reader already has, so the file grows by only a few KB. The number is drawn on top of the page content. If there is already text or an old page number in that spot, the two will overlap; pick another position or change the distance from the edge. Numbers are plain digits (1, 2, 3). Roman numerals for front matter are not available, but you can leave those pages out with Start on page.

Questions

How do I leave the cover page without a number?
Set Start on page to 2. Page 1 stays blank and page 2 gets the number in First number, usually 1. If the cover, title page and contents take 4 pages, enter 5.
Can the numbering start at something other than 1?
Yes. For a chapter saved as its own file that has to begin at page 25, set First number to 25. Zero is allowed too.
Can odd pages have the number on the right and even pages on the left?
Yes, in two passes, which is what you want for double-sided printing. Choose Odd and the right position, then download. Open that result here, choose Even and the left position, and download again. The sequence stays correct because pages you don't choose are still counted.
Why is the number upright on landscape pages?
The tool reads how each page is displayed, including its /Rotate entry, and writes the number in that direction. The number ends up at the bottom of the page as you see it on screen.
The new numbers overlap old ones. Can the old ones be removed?
No. This tool only adds text and never removes what is already on the page. Choose a position that is still empty, or change the distance from the edge.
Is my PDF uploaded?
No. Your browser adds the numbers on this device. Keep in mind that a digital signature on a PDF becomes invalid once the file changes, so number the pages before the document is signed.