Add page numbers to a PDF
Put page numbers on a report, a thesis or merged scans. Your browser does the work on your device; the PDF is not uploaded to our servers.
Your files are processed in this browser. They are not uploaded to our servers.
No files selected yet.
One PDF file, up to 100 MB. You can also drop the file here.
Choose files and start. The result appears here.
Something went wrong. Your entries are still here.
What this tool does
The tool writes a number on every page of a PDF, or on every page but the first. You choose the position, the text ("1", "Page 1", "1 of 12" or "Page 1 of 12"), the first number and the font size.
The numbers are added on top of the existing pages. Nothing else changes: text stays selectable, pictures are not compressed again, and bookmarks, links and form fields keep working.
How to use it
- Choose a PDF, or drop it on the marked area, and wait until its number of pages is shown.
- Choose the position: bottom or top, left, centre or right.
- Choose the text. "1 of 12" and "Page 1 of 12" also show the last number.
- Enter the first number and the font size in points. 1 and 11 are preselected.
- Choose whether the first page gets a number. For a cover page, choose Leave it without a number.
- Press Add page numbers and download the file. Its name ends in -numbered.
How the position is calculated
PDF measures in points of 1/72 inch. At the bottom, the baseline of the number is 36 points (half an inch, 12.7 mm) above the edge; at the top, its capitals end 36 points below the edge; on the left or right, the text starts or ends 36 points from the side. Half an inch is a common footer distance in word processors; it is a convention of this tool, not a rule of the PDF format.
The edges are those of the visible page: its crop box, the part of the page a reader shows (ISO 32000-1, section 14.11.2), where it lies within the page. So a scan with a trimmed border gets its number inside the trimmed area, not in the cut-off part.
A page that is stored turned (its /Rotate entry, section 7.7.3.3) is handled as it is shown. On a page turned by 90°, the bottom of what you see is the right edge of the stored page; the tool places the number there and turns the text by the same angle, so it reads the right way up like the other pages.
Numbers are counted from the first numbered page. With the first page left out and a first number of 1, page 2 gets 1. "Of 12" shows the last number written, which is the number of numbered pages when you start at 1. The text is set in Helvetica, a font every PDF reader has, in black.
Worked example
A licence agreement of 310 pages and 2,896,912 bytes should get "Page 1 of 309" at the bottom centre, without a number on its title page. In Chrome the tool numbered pages 2 to 310 as 1 to 309 in less than a second; the file became 2,739,375 bytes, smaller than before because pdf-lib stores the objects more compactly.
Page 2 is US Letter, 612 × 792 points. The text "Page 1 of 309" in Helvetica at 11 points is 68.06 points wide, so it starts at (612 − 68.06) ÷ 2 ≈ 272 points from the left edge, with its baseline 36 points above the bottom edge.
A test page of 400 × 600 points, stored turned by 90° and with a crop box that starts 20 points from the left and 40 from the bottom, got its number at the bottom right of the page as shown, inside the crop box, reading upright.
Common mistakes
- Numbering before merging. Merge the files first; otherwise every part starts again at 1.
- Numbering a document whose footer already has text or old numbers. The new number is drawn on top; choose a top position instead, or remove the old numbers in the original document.
- Choosing a large font size with "Page 1 of 309". The text gets wide; 9 to 12 points suit most documents.
- Using a password-protected PDF. It cannot be read; remove the protection first with a program that knows the password.
Frequently asked questions
- How do I start page numbers on page 2?
- Choose Leave it without a number for the first page. Page 2 then gets the first number, 1 unless you change it. If page 2 should show 2, enter 2 as the first number.
- Can I start at a number other than 1?
- Yes. Enter any whole number from 0 to 99999 as the first number, for example 31 for a chapter that continues a document of 30 pages.
- Do the numbers show correctly on landscape and turned pages?
- Yes. Each page is numbered as it is shown, so a landscape page or a page stored turned by 90° gets its number at the bottom of what you see, upright.
- Can I remove the numbers again?
- Not with this tool; they become part of the page content. Keep the original file, and number it again if something needs to change.
- Is my PDF uploaded to add the numbers?
- No. The numbers are written by pdf-lib, a library loaded from this site that runs in your browser, so the PDF stays on your device and is not uploaded to our servers. When advertising is enabled and permitted, the page also loads third-party advertising scripts; the privacy policy explains this.
Last updated: September 29, 2026