How to Add Page Numbers to a PDF: Free Methods for 2026

Learn how to add page numbers to PDF files for free. Step-by-step guide using Adobe Acrobat, online tools, Mac Preview, and command-line methods.

By PeacefulPDF Team

Page numbers seem basic, but PDFs don't always have them. Whether you're working with a document that lost its numbering, combining multiple PDFs into one, or preparing a file for official submission, adding page numbers is essential for reference and organization.

Why Add Page Numbers to PDFs

  • Easy reference: "See page 14" is clearer than "scroll about halfway down"
  • Professional appearance: Numbered documents look polished and complete
  • Legal requirements: Courts and government agencies often require numbered pages
  • Print navigation: Page numbers help readers find content in printed copies
  • Document integrity: Numbering helps verify that no pages are missing

Method 1: Using Adobe Acrobat (Pro and Reader)

Acrobat Pro

  1. Open your PDF in Adobe Acrobat Pro
  2. Go to Tools > Edit PDF
  3. Click "Header & Footer" then "Add"
  4. Click in the "Center Footer Text" or "Right Footer Text" box
  5. Click "Insert Page Number"
  6. Choose font, size, and margin settings
  7. Click OK to apply page numbers to all pages

Acrobat Reader (Free)

The free version of Acrobat doesn't have a built-in page numbering tool, but you can use a workaround: combine the PDF with a numbered overlay using the stamp feature, or use one of the free alternatives below.

Method 2: Using Mac Preview

Preview doesn't have a direct page numbering feature, but here's a workaround:

  1. Open the PDF in Preview
  2. Go to View > Show Markup Toolbar
  3. Use the Text tool to type page numbers manually on each page
  4. Position and format each number consistently

For documents with many pages, this is tedious. Consider using the command-line method below instead.

Method 3: Using Free Online Tools

Several free online tools add page numbers without requiring software installation:

  • ILovePDF: Upload your PDF, choose number position and format, download the result
  • PDF24: Free tool with extensive page numbering options including start number and format
  • Sejda: Supports custom fonts, positions, and starting page numbers (free up to 200 pages)
  • PdfFiller: Good for adding Bates numbering for legal documents

Privacy note: When using online tools with sensitive documents, prefer services that delete files after processing and don't retain your data.

Method 4: Using the Command Line (Free)

For technical users comfortable with the terminal, command-line tools offer powerful page numbering:

Using Python with PyPDF2

  1. Install Python and PyPDF2: "pip install pypdf2 reportlab"
  2. Create a script that generates numbered overlays
  3. Merge the overlays with your original PDF

This method gives you complete control over font, position, size, and formatting without uploading files anywhere.

Using Ghostscript

Ghostscript can add page numbers with a PostScript overlay. While more complex to set up, it's extremely fast and works on any operating system.

Customizing Page Numbers

Number Formats

  • Numeric: 1, 2, 3, 4... (standard)
  • Roman numerals: i, ii, iii, iv... (for front matter)
  • Page X of Y: Page 1 of 24 (shows total count)
  • Hybrid: Roman numerals for table of contents, then Arabic for main content

Position Options

  • Bottom center: Most common for reports and books
  • Bottom right: Standard for business documents
  • Top right: Good for academic papers
  • Alternating: Left on even pages, right on odd pages (book style)

Starting Number

Many documents need to start numbering from a number other than 1. For example, if your document has a cover page and table of contents, you might want the main content to start at page 1 while the front matter uses Roman numerals.

Bates Numbering for Legal Documents

Legal professionals use Bates numbering — a sequential numbering system applied to document sets for easy reference during litigation. Bates numbers typically include a prefix (like a case identifier) followed by sequential numbers: ACME-0001, ACME-0002, etc.

Adobe Acrobat Pro includes a dedicated Bates Numbering tool under Tools > Bates Numbering. Free alternatives include PDF24 and certain command-line tools.

Troubleshooting Common Issues

  • Numbers overlap with content: Adjust margin settings to push page numbers further from the edge
  • Numbers are too small: Increase font size in your tool's settings (10-12pt is standard)
  • Cover page shouldn't be numbered: Exclude the first page from numbering in your tool's page range settings
  • Numbers appear on blank pages: Use page range selection to skip blank separator pages

For more PDF editing tips, check our guides on editing PDFs without Adobeand rearranging PDF pages.

Conclusion

Adding page numbers to PDFs is straightforward with the right tool. For quick jobs, free online tools work great. For professional or legal documents, Adobe Acrobat Pro gives you the most control. And for technical users processing many documents, command-line tools offer the most efficient workflow. Whatever method you choose, properly numbered PDFs are more professional, easier to navigate, and often required for official submissions.