← All guides

How to Add Page Numbers to a PDF

pdfpage-numbers

You have a PDF without page numbers — and you need them. Long documents are unmanageable without numbering. Here’s how to add them across different tools.

Method 1: In the source document (best path)

The cleanest fix: add page numbers in the document before exporting to PDF:

Word: Insert → Page Number → choose location and style.

Pages: Insert → Page Number.

Google Docs: Insert → Page numbers.

LibreOffice Writer: Insert → Page Number.

If you have access to the source document, this is the right approach. Re-export to PDF after adding.

Method 2: Adobe Acrobat Pro (paid)

For PDFs without an editable source:

  1. Open PDF in Acrobat Pro
  2. Tools → Edit PDF
  3. Header & Footer → Add
  4. Set:
    • Position (top or bottom)
    • Format (numbers, “Page X of Y”)
    • Font and size
    • Page range (e.g., skip cover page)
  5. Click OK

Page numbers are added to the PDF directly. Save the file.

Method 3: Free desktop tools

LibreOffice Draw: open PDF → Insert → Header and Footer → add page numbers. Saves as PDF.

PDF24 (free Windows tool): has “Add Page Numbers” feature.

PDFsam Basic (free, cross-platform): page number stamping feature.

PDF-Shuffler (free, Linux): basic page operations.

Method 4: Online services

Smallpdf, ilovepdf, Sejda: free tier for adding page numbers. Upload-based.

For sensitive content: avoid online services. Use desktop tools or Acrobat Pro.

Method 5: Through the script route

For technical users:

PDFtk (free): can stamp page numbers via background overlay.

Python with PyPDF2 or PyPDF4: programmatic page number addition.

For batch processing many PDFs: scripting is much faster than per-file UI work.

Page number format choices

Common formats:

  • 1, 2, 3...: simple numeric
  • Page 1: with prefix
  • Page 1 of 25: with total count
  • Section 2, Page 1: hierarchical numbering
  • i, ii, iii: Roman numerals (often for front matter)

Most tools let you pick the format from a list.

Where to put them

Common placement:

  • Bottom center: most common, most readable
  • Bottom right: more compact, business style
  • Top right: less common, sometimes used for binding considerations
  • Bottom left and right alternating: book-style, for booklets

The right choice depends on:

  • Document type (report, book, contract)
  • Margin space available
  • Whether the document will be bound

Common issues

Page numbers overlap content: too much existing content near the edge. Reduce margins in source, or use smaller font size in Acrobat.

Cover page also numbered: most tools let you exclude specific pages. Configure to start numbering at page 2.

Wrong page count if combined later: if you’ll merge this PDF with others, the numbering may need updating after merging.

Page numbers visible only partially when printing borderless: page numbers near the edge can be clipped if printed without margins.

When you need different numbering for different sections

For complex documents (intro pages with Roman numerals, then Arabic numerals):

In Word: section breaks let you have different numbering per section.

In Acrobat Pro: configure page ranges with different formats.

Free tools: usually limited to one format throughout. For mixed numbering, the source-document path is best.

After adding page numbers

Verify: open the PDF and scroll through to confirm numbers appear correctly on every page.

Compress for email: PDF Compressor if file size grew.

Combine with other content: PDF Merger — but adding page numbers AFTER merging is usually better, so numbers are continuous.

Reorganize pages: PDF Splitter and re-merge if needed.

Renumbering existing pages

If a PDF already has page numbers but you want different format:

Adobe Acrobat Pro: Tools → Edit PDF → Header & Footer → Remove (or Edit) → add new numbering.

Free path: convert to images via PDF to Images, crop out old numbers in Image Cropper, rebuild PDF with JPG to PDF, then add new numbers.

The free path is tedious but works without paid tools.

Workflow tips

Plan numbering before merging: if you’re combining several PDFs, add page numbers to the combined document, not the individual files. Otherwise numbers restart at each section.

Save without numbers as backup: keep the original un-numbered PDF in case you want different numbering later.

Test print: page numbers can look different printed than on screen. Test before bulk printing.

TL;DR

  • Best path: add page numbers in the source document before exporting to PDF
  • For existing PDFs without source: Adobe Acrobat Pro (paid) or free tools like LibreOffice Draw, PDF24, Sejda online
  • Format options: simple numbers, “Page X”, “Page X of Y”, Roman numerals
  • Placement: typically bottom center or bottom right
  • For sensitive content: avoid online services; use desktop tools
  • After: PDF Compressor, verify numbers display correctly