Home › File & PDF Tools › Add Page Numbers to PDF

Add Page Numbers to PDF

Use this free tool to add page numbers to a PDF in seconds. Choose the position, the style — plain, “Page 1”, or “Page 1 of 12” — the font size and even the number your first page should start from. The numbers are stamped onto real copies of your pages in your browser; nothing is uploaded, and the original text, images and links stay exactly as they were.

Drop your file here or click to browse your files

One point is 1/72 of an inch, so 24 points is about 8.5 mm from the edge — inside the margin on most documents.

No PDF selected yet
Add a PDF above, then choose how the numbers should look.

Nothing leaves your device. Your PDF is stamped locally in your browser with the pdf-lib library stored on this site — no upload, no server, no copy kept anywhere.

How to use this tool

  1. Click the drop box (or drag your PDF onto it). The box confirms your file name and size, and the tool counts the pages.
  2. Choose the position — bottom centre, bottom right, bottom left or top centre.
  3. Pick a style: a plain number, “Page 1”, or “Page 1 of 12” with the total included.
  4. Set the starting number (usually 1), the font size and the distance from the edge.
  5. Press Add Page Numbers. Your numbered PDF downloads automatically.

How it works

A PDF page has a fixed size measured in points, and text can be drawn at any exact position on it. This tool opens your file with the pdf-lib library — stored on this website, so it runs fully inside your browser — writes one short text item into the margin of every page, and saves the result as a new PDF. The number for each page is worked out from a simple rule:

Number on a page = starting number + (page position − 1)

So if you start at 1, the third physical page is stamped “3”; if you start at 41, that same page is stamped “43”. For the “of N” style the tool first counts all the pages in the file, then makes a second pass to stamp “Page 3 of 12” and so on — two passes are the only way every page can truthfully quote the same total. The stamp is placed by measuring the width of the text in the chosen font, so centre and right positions land correctly on both wide and narrow pages. Nothing else about the page is touched: the stamp is one extra text item laid over the original page, which is why your document's own text remains selectable and its file size barely grows.

PositionCommonly used for
Bottom centreBooks, reports, theses, exam papers — the default choice
Bottom rightBusiness documents and letters read quickly in a stack
Bottom leftDocuments bound or stapled on the right side
Top centrePages whose bottom edge carries signatures, stamps or seals

Page numbers sound trivial until they are missing: a printed assignment handed in without them can lose marks when pages are shuffled, and a long PDF shared in a WhatsApp group is painful to discuss — “help me, which page has the price list?” — until every page carries a number people can quote. Add them once, before you share, and nobody has to count pages by hand.

Worked example

Priya has a 12-page project report to print and submit. The file has no page numbers, and her teacher requires the number at the bottom of every page, with the total shown.

Step 1: She drops the report into the box and the tool reports 12 pages.
Step 2: She leaves the position on Bottom centre, chooses the style “Page 1 of 12”, keeps the start at 1 and the font at 11 pt.
Step 3: She presses Add Page Numbers.
Step 4: The downloaded PDF carries “Page 1 of 12” on the first page, “Page 2 of 12” on the second, and so on down to “Page 12 of 12” — ready to print.

Had this report been chapter two of a longer document whose first chapter ended on page 30, she would simply have started the numbering at 31, and the last page would read “Page 42 of 12” — the physical count and the printed number are deliberately separate things, which is exactly why the starting-number box exists.

FAQ

How do I add page numbers to a PDF?

Drop your PDF into the box, choose where the number should sit (bottom centre is the classic choice), pick a style such as plain “1” or “Page 1 of 12”, set the font size and the starting number, then press Add Page Numbers. Your new PDF downloads with the number stamped on every page. The whole job runs in your browser, so no file is uploaded.

Is my PDF uploaded to a server?

No. The file is read and stamped entirely in your browser using the pdf-lib library stored on this website. Your document never leaves your device, so it is safe for bank statements, exam papers and other private documents.

What does “Page 1 of 12” mean, and why does it need the total?

It shows the current page together with the total number of pages in the document, which helps a reader know how much is left. To print the total, the tool first counts the pages and then stamps each page in a second pass, so every page carries the correct “of N” figure.

Can I start numbering from a number other than 1?

Yes. The starting number box lets the first page carry any number you type. This is handy when the PDF is one chapter of a longer book or report — if the previous chapter ended at page 40, start this file at 41 so a printed copy reads in sequence.

Will adding page numbers change my text or images?

No. The tool only draws one short line of text on each page, in the margin area you choose. The original pages are not redrawn or converted to images, so your text stays selectable, images keep their quality, and links keep working.

The numbers sit in the wrong place. What can I do?

Try a larger margin distance so the number moves further from the edge, or switch from bottom to top if your pages have a heavy footer, signatures or stamps near the bottom. A slightly smaller font size also helps when the margin strip is narrow.

Which other tools work well with the Add Page Numbers to PDF?

The Related tools section on this page links the calculators and converters people use most often alongside the Add Page Numbers to PDF. They are all free, so you can carry your result straight into the next calculation.

Is the Add Page Numbers to PDF free to use?

Yes. The Add Page Numbers to PDF is completely free on RupayaTools — no sign-up, no subscription and no usage limit. Just enter your values and your result appears straight away.