Skip to content
Processing locally — files never leave your device

Add Page Numbers to PDF Online

Add page numbers to a PDF. Pick position, font size, format, and starting number — instantly.

How to use Add Page Numbers

  1. Select the PDF you want to number; it is parsed on your device so the total page count is known.
  2. Choose a position for the numbers: any of the six corners or centres, top or bottom.
  3. Pick a format: plain "1", "Page 1", "1 of N", or a custom template using {n} and {total}.
  4. Set the font size and the starting number (handy when a cover page should stay unnumbered).
  5. Click "Add page numbers" — the numbered PDF downloads automatically.

How to add page numbers to a PDF

Page numbers turn a loose stack of pages into a navigable document. They make printed reports easy to reference in a meeting, let reviewers cite "see page 7", and keep a printout in order if it's ever dropped. This tool stamps clean, consistent numbers onto every page of a PDF in a few clicks — and does it entirely inside your browser.

How the numbering works

The tool loads your PDF, embeds the standard Helvetica font, and walks through each page drawing the number text at the position you selected. Because it draws on top of the existing page rather than re-rendering it, the original text, images, links, and form fields all stay exactly as they were — only the new number is added.

Positions and formats

You can place numbers in any of six spots: top or bottom, paired with left, centre, or right. Bottom-centre is the traditional choice for reports and books; bottom-right suits documents that will be bound on the left. For the format, a plain number is cleanest, "Page 1" is explicit, and "1 of N" reassures readers they have the whole document. The custom template, using {n} and {total}, lets you build anything from "- 1 -" to "Page {n} / {total}".

Starting number and cover pages

The "Start numbering at" setting offsets the count. To leave a cover page unnumbered you can't skip the first page directly, but you can begin at 0 or a number that matches your intent, or remove the cover with the Delete Pages tool, number the rest, and merge the cover back in. For a document that continues a series, set the start value to where the previous part ended.

Stamped in the tab, never uploaded

Numbering is an additive, lossless edit — the existing page is untouched and a short string is layered on top — so it runs comfortably in pdf-lib inside your browser. The file is read into memory, each page is stamped, and the numbered copy is offered for download with no server in the loop, which is what lets you paginate a legal filing or a financial report without handing the draft to a third party.

Tips for clean results

Keep the font size between 9 and 12 points for a professional look; larger sizes draw too much attention. If a number lands on top of existing footer text, switch corners or nudge the size down. Preview the downloaded file before printing a large batch, especially if your pages have unusual margins or mixed orientations.

Related PDF tools

  • Merge PDF — combine documents first, then number the whole thing consistently.
  • Delete PDF Pages — drop a cover page before numbering.
  • Split PDF — break a long numbered document into sections.
  • Rotate PDF — fix page orientation so numbers sit the right way up.

Frequently asked questions

What number formats can I use?
Four styles: a bare number (1, 2, 3), "Page 1" style, "1 of N" which shows the total, and a custom template. In the custom field, {n} is replaced with the current page number and {total} with the total page count, so "Page {n} of {total}" renders as "Page 3 of 12".
Can I start numbering at a number other than 1?
Yes. Set the "Start numbering at" value. This is useful when the first physical page is a cover or title that you don't want counted, or when the PDF continues a larger document and should begin at, say, page 47.
What font is used for the numbers?
pdf-lib's built-in Helvetica. Sticking to a standard font keeps the output file small and avoids any font-licensing complications that come with embedding custom typefaces.
Where exactly do the numbers appear?
In the page margin at the position you choose — for example bottom-centre or top-right — drawn on top of the existing page content. If your PDF has very tight margins, a number could overlap text near the edge; in that case pick a different corner or reduce the font size.
Will adding page numbers cover up my content?
Numbers are drawn over whatever is already on the page, so on documents with content running right to the edge there can be slight overlap. Most documents have enough margin that the number sits in clear space. Choosing a less crowded corner usually solves any collision.
Does this keep the rest of my PDF intact?
Yes. Unlike tools that rasterize pages, this one only draws text on top of your existing pages, so all original text stays selectable and searchable, images stay sharp, and links and form fields are preserved.
Where does the numbering actually take place?
In the tab, not on a server. pdf-lib draws each number directly onto the page in memory and returns the stamped file for download — no round-trip. That means a confidential set of board minutes can be paginated for distribution without the draft ever being uploaded anywhere.

More tools you might find useful in the same flow.

Built by Muhammad Tahir · About