Files never leave your browser. 100% client-side. Zero uploads.
add page numbers to pdf pdf page numbering insert page numbers pdf number pdf pages pdf page number tool

How to Add Page Numbers to PDF — Professional Pagination

EssentialPDFTool Team · Editorial team, EssentialPDFTool
· 7 min read

Written and fact-checked against our production PDF engine (pdf-lib, pdfjs-dist, and in-browser OCR where relevant). We ship the same code users run in the 24 EssentialPDFTool utilities—no paywalled “writer” edition.

Adding page numbers to PDFs is essential for professional documents — reports, manuals, legal documents, and academic papers all benefit from clear pagination. Most online tools impose file size limits, add watermarks, or require signup. This guide shows you how to add page numbers to PDFs for free without any restrictions.

Quick Start

  1. Go to EssentialPDFTool Add Page Numbers
  2. Upload your PDF file
  3. Choose page number position (top/bottom, left/center/right), font, size, and color
  4. Set your starting number and select which pages to include
  5. Click Add Numbers & Download to get your paginated PDF

No signup. No watermark. No file size limit. Files never leave your device.

How It Works

Adding page numbers to a PDF involves creating text objects that are drawn on each page at specific coordinates. Unlike Word documents, PDFs don’t have automatic page numbering — page numbers must be explicitly added as content.

A proper page numbering tool does the following:

1. Parse each page’s dimensions. The tool reads the MediaBox (full page size) and CropBox (visible area) of each page to determine where to place page numbers relative to the page boundaries.

2. Calculate text positioning. Based on your chosen position (top-left, bottom-center, etc.), the tool calculates the X/Y coordinates for the page number text. It also accounts for margin offsets to avoid overlapping existing content.

3. Create text objects. For each selected page, the tool creates a text object containing the page number. This includes the font specification, size, color, and transformation matrix for proper rendering.

4. Handle number formats. The tool supports different numbering formats: Arabic numerals (1, 2, 3), Roman numerals (i, ii, iii), uppercase Roman (I, II, III), and custom prefixes.

5. Embed fonts if needed. If you choose a custom font, the tool may need to embed font subsets in the PDF to ensure consistent rendering across different systems.

6. Rebuild document metadata. The paginated PDF gets an updated cross-reference table and document catalog. Content streams are modified to include the new page number text objects.

EssentialPDFTool uses pdf-lib for page numbering, which handles all text object creation and positioning correctly. This means page numbers appear consistently across all pages, regardless of the underlying page content.

Page Number Options: When to Use Each

Position selection

Choose where page numbers appear on the page:

  • Top-left, Top-center, Top-right: Common for documents with headers
  • Bottom-left, Bottom-center, Bottom-right: Standard for most documents
  • Margin offsets: Control how far from the edge the numbers appear

Common patterns:

  • Academic papers: Bottom-center or bottom-right
  • Business reports: Top-right with company info
  • Legal documents: Bottom-center with section info
  • Manuals: Top-left with chapter numbers

Font and size customization

Choose font family, size, and color to match your document’s styling:

  • Font size: 8-12pt is typical for page numbers
  • Font color: Black or dark gray for most documents, match brand colors for branded materials
  • Font style: Bold for emphasis, italic for subtitles

Tip: Keep page numbers subtle — they should be visible but not distracting from the main content.

Number format selection

Choose between different numbering formats:

  • Arabic numerals (1, 2, 3): Most common for general documents
  • Roman numerals (i, ii, iii): Front matter, introductions, prefaces
  • Uppercase Roman (I, II, III): Formal documents, legal papers
  • Custom prefixes: Add text like “Page ” or “Ch.2-” before the number

Use cases:

  • Front matter (intro, preface): Roman numerals
  • Main content: Arabic numerals starting from 1
  • Appendices: Roman numerals or letter prefixes (A-1, B-1)
  • Chapter-level numbering: Chapter 1-1, Chapter 1-2

Page range selection

Choose which pages get numbered:

  • All pages: Standard pagination
  • Skip first page: Common for cover pages
  • Custom ranges: Number specific sections differently
  • Starting number offset: Begin numbering from a number other than 1

Common patterns:

  • Cover page (no number) + rest of document (1-N)
  • Front matter (i-iii) + main content (1-N)
  • Different sections with different numbering schemes

What Stays Intact After Adding Page Numbers

A properly executed page numbering preserves:

  • All existing content on all pages, including text, images, and vector graphics
  • Embedded fonts — page numbers use additional fonts if needed
  • Images at their original resolution and format
  • Vector graphics with full precision
  • Annotations (comments, highlights) — they remain unchanged
  • Form fields — they remain unchanged
  • Internal bookmarks that point to pages (bookmark destinations are preserved)
  • Hyperlinks within the document

What Changes After Adding Page Numbers

Page numbers appear as new content. Page numbers are added as text objects on each selected page. They become part of the page’s content stream.

Document properties (author, title, subject) are copied from the original file. Update them if needed for the new paginated document.

File size increases slightly. Adding page numbers adds text objects and potentially font subsets, increasing file size by a few kilobytes per page.

Security restrictions are inherited. If the original PDF had print restrictions, the paginated PDF has the same restrictions.

Text selection includes page numbers. Page numbers become selectable text. If you need page numbers to be non-selectable (like background elements), additional processing is needed.

Adding Page Numbers to Large PDFs

Browser memory is the practical limit. Most modern computers handle large documents without issue.

If you’re adding page numbers to a 1000-page PDF, consider doing it in sections if you need different numbering schemes for different parts of the document.

Handling Special Cases

Adding page numbers to password-protected PDFs

If a PDF has a user password (open password), you must unlock it first using Unlock PDF. Owner passwords (permission restrictions) are less restrictive — adding page numbers may work even with owner permissions, depending on the specific restrictions.

Adding page numbers to scanned PDFs

Scanned PDFs are just PDFs with rasterized image pages. Page numbers are added as text overlays on top of the image content. If you need searchable text after adding page numbers, run the file through OCR (Scan PDF).

Adding page numbers to PDFs with digital signatures

Digital signatures are bound to the exact bytes of the signed document. Adding page numbers to signed pages invalidates signatures. If you need valid signatures on the paginated document, collect new signatures after adding page numbers using Sign PDF.

Adding page numbers to PDFs with different page sizes

Each page gets page numbers positioned relative to its own dimensions. If you have mixed A4 and Letter pages, page numbers will appear in consistent positions relative to each page’s size.

Adding page numbers to PDF/A documents

PDF/A is a standardized archival format. Adding page numbers to a PDF/A document produces a standard PDF, not PDF/A. If you need the paginated result to remain PDF/A compliant, use PDF to PDF-A after adding page numbers.

Why Free PDF Page Number Tools Often Add Watermarks

The watermark business model is common in the PDF tool space. Tools add visible watermarks to outputs to encourage paid upgrades. This covers server processing costs for rendering text objects and updating page content.

EssentialPDFTool doesn’t watermark paginated files. Because processing happens in your browser, our costs are serving static files from a CDN — dramatically lower than maintaining server-side PDF processing infrastructure. We can afford to be genuinely free.

Alternatives to Online Page Numbering

If you prefer not to use an online tool:

Adobe Acrobat (paid): Add Header & Footer tool in Acrobat Pro is the industry standard. Offers advanced options like Bates numbering and automatic page ranges.

Microsoft Word: Convert PDF to Word, add page numbers in Word, then convert back to PDF. Works well for simple documents but may affect formatting.

LaTeX: If you’re generating PDFs from LaTeX, page numbering is built-in. Use \pagenumbering{arabic} or \pagenumbering{roman} for different formats.

Desktop PDF editors: Tools like PDF-XChange Editor and Foxit Reader offer page numbering. Your files stay on your machine.

For privacy-sensitive page numbering, desktop tools are equivalent to browser-side processing: your files stay on your machine.

After Adding Page Numbers: Common Next Steps

Adding page numbers to PDFs is a straightforward task when you have the right tool. The right tool doesn’t upload your files, doesn’t add watermarks, and doesn’t ask for your email address. That’s exactly what ours does.

Try these free tools