ToolsHubs
ToolsHubs
Privacy First

PDF Page Number Adder

Add page numbers (1 of 3, Page 1, etc.) to your PDF documents instantly and securely in your browser.

How to use PDF Page Number Adder

  1. 1

    Upload the PDF file you want to number.

  2. 2

    Select the page number position (e.g., Bottom Center).

  3. 3

    Choose the numbering format and font size.

  4. 4

    Click "Add Page Numbers" to generate your numbered PDF.

Frequently Asked Questions

Are my files uploaded to a server?

No, all PDF processing is done entirely within your web browser. Your confidential documents are 100% secure.

Introduction

You've compiled a multi-page report, a thesis, a contract, or a user manual, and the reviewing party asks for numbered pages. Or you simply realize your carefully written document looks much more professional — and navigable — with page numbers. But adding them without the original editable source is surprisingly tricky.

This tool solves that. Upload any PDF and the tool embeds permanent, customizable page numbers at your chosen position — bottom center, bottom right, top center, whatever suits your document. You pick the format (just "1", or "Page 1", or "1 / 10"), the font size, and the starting number. The result downloads as a properly numbered PDF, processed entirely on your device.


Technical & Concept Breakdown

The tool uses the pdf-lib library to open the existing PDF, iterate through each page, and draw text annotations directly onto the page canvas.

Here's what happens in code terms:

  1. The PDF is loaded with PDFDocument.load(arrayBuffer).
  2. A font is embedded: const font = await pdfDoc.embedFont(StandardFonts.Helvetica).
  3. On each page, page.getWidth() and page.getHeight() get the page dimensions.
  4. Based on your chosen position (e.g., Bottom Center), the x and y coordinates are calculated dynamically: x = (width / 2) - (textWidth / 2), y = 20 (20 points from the bottom edge).
  5. page.drawText(pageLabel, { x, y, size: fontSize, font, color }) stamps the number.
  6. Once all pages are stamped, pdfDoc.save() produces the new binary PDF.

Page number format examples:

  • 1 — just the number
  • Page 1 — word + number
  • 1 / 10 — current / total
  • -1- — with dashes

The total page count is retrieved with pdfDoc.getPageCount() before iteration, so "1 of 10" style numbering works correctly across all pages.


Real-World Use Cases

Academic Submissions: Thesis reviewers, journals, and universities often require page numbers at specific positions (e.g., "bottom right of every page"). This tool handles that without needing Word or InDesign.

Legal & Business Documents: Contracts and proposals look more professional and are easier to reference ("see clause on page 4") when numbered.

Reports & Manuals: Technical documentation, user guides, and quarterly reports become far more navigable with numbered pages for the reader.

Presentations Converted to PDF: Exporting PowerPoint to PDF often loses slide numbers. This tool adds them back in a consistent style.

Archiving: When archiving multi-document sets, page numbers on each PDF make reference retrieval fast and unambiguous.


Best Practices & Optimization Tips

Choose a font size that fits your margin. If your document has very tight margins (especially scanned documents that go to the edge), a large font size might overlap content. 10–12pt is standard for most documents.

Use "1 / 10" format for long documents. When readers know the total page count upfront, they can judge where they are in the document and plan their reading accordingly.

Match the position to your document design. Academic papers typically use top-right or bottom-center. Legal contracts use bottom-center with "Page X of Y". Formal reports often use bottom-right.

Start numbering from a number other than 1 if your document has a cover page or table of contents that shouldn't be numbered. Move the starting number to 2 or 3 to reflect true content pagination.


Limitations & Common Mistakes

Page numbers are added to all pages, including the cover. If you don't want a number on the first page (title page), you currently need to split the PDF first, number the content pages, and then merge them back.

Very small or tight page margins can cause the number to overlap with existing content. If this happens, use a smaller font size or a different position.

Encrypted PDFs cannot be modified. Remove the password using the Remove PDF Password tool before adding page numbers.

The tool does not remove existing page numbers. If your PDF already has page stamps from a prior tool run or embedded from an authoring application, the new numbers will appear alongside the old ones. Use carefully to avoid double-numbering.