Adding Page Numbers to PDF: Complete Tutorial
Tutorials

Adding Page Numbers to PDF: Complete Tutorial

Lisa Wang

Lisa Wang

Digital Marketing Strategist

Mar 26, 2026 May 6, 2026 6 min
Reviewed by Emma RodriguezFact-checkedEditorial Policy

Page numbers help readers navigate long documents and keep printed pages in order. This complete tutorial shows how to add page numbers to PDFs — position, format, and styling — using free and paid tools.

Page numbers are a small but essential element of professional documents. They help readers navigate, reference specific pages, and keep printed copies in order. While many PDFs are created with page numbers already in place, you may need to add them to a PDF that lacks them — or customize existing numbering. This complete tutorial covers every method for adding page numbers to PDFs.

Why Add Page Numbers to a PDF?

Page numbers serve several important purposes:

  • Navigation: Readers can reference specific pages ("see page 12") and find them quickly.
  • Print organization: Printed pages can be reordered if they get shuffled, because the page numbers indicate the correct sequence.
  • Professionalism: Documents without page numbers look unfinished, especially long reports and manuals.
  • Legal compliance: Many legal documents require page numbering for reference and citation.
  • Table of contents: Page numbers in a table of contents are only useful if the pages themselves are numbered.

Common Page Number Formats

Page numbers can appear in several formats:

  1. Simple numbers: "1," "2," "3" — the most common format.
  2. Page X of Y: "Page 1 of 20" — shows both the current page and total count.
  3. Roman numerals: "i," "ii," "iii" — common for front matter (preface, table of contents).
  4. Combined: Roman numerals for front matter, Arabic numbers for the body. This is common in books and academic papers.
  5. With prefix/suffix: "Page 1," "-1-," "1 |" — various decorative or contextual formats.

Common Positions

  • Bottom center: The most traditional and common position.
  • Bottom right: Common for business documents and reports.
  • Bottom left: Often used with the page number on one side and the document title on the other.
  • Top right: Common for academic papers.
  • Top center: Used in some formal documents.

Method 1: Add Page Numbers Online

Online page numbering tools are the fastest option for most users.

Step-by-Step: Adding Page Numbers Online

  1. Choose a page numbering tool: Look for one that offers customizable position, format, and styling. VisualDocs provides a free PDF page numbering tool.
  2. Upload your PDF: Drag and drop the file or browse to select it.
  3. Choose position: Select where the page number appears (top or bottom; left, center, or right).
  4. Choose format: Select "1," "Page 1," "Page 1 of 20," or a custom format.
  5. Set starting page number: Most documents start at 1, but you can start at any number (useful if the PDF is part of a larger document).
  6. Choose which pages to number: All pages, or skip the first page (common for cover pages).
  7. Set font and size: Choose font family, size (10–12pt is typical), and color.
  8. Click apply: The tool adds page numbers to all selected pages.
  9. Download the result: Save the numbered PDF.

Tips for Online Page Numbering

  • Skip the cover page: Most documents do not number the cover page. Set the starting page to 2 and start numbering at 1, or skip page 1 entirely.
  • Check margins: Ensure the page numbers are within the printable area. Numbers too close to the edge may be cut off when printed.
  • Preview the result: Open the PDF and scroll through to verify the numbers appear correctly on every page.

Method 2: Add Page Numbers with Adobe Acrobat Pro

Acrobat Pro offers comprehensive page numbering through its header and footer tools.

Step-by-Step: Adding Page Numbers with Acrobat Pro

  1. Open the PDF in Acrobat Pro.
  2. Go to Tools > Edit PDF > Header & Footer > Add.
  3. In the Add Header and Footer dialog:

- Choose the position (left, center, right for header or footer).

- Click in the position box where you want the page number.

- Click "Insert Page Number" to add the page number code.

- For "Page X of Y," click "Insert Page Number," type " of ", then click "Insert Page Count."

- Set the font, size, and color.

  1. Set page range options:

- "Page Range" lets you choose which pages to number.

- "Page Numbering" lets you set the starting number.

  1. Click "Appearance Options" to set opacity, position offset, and whether to avoid overlapping existing content.
  2. Click OK to apply.
  3. Save the document.

Advanced: Different Numbering for Different Sections

Acrobat Pro can apply different numbering to different page ranges:

  1. Apply the first numbering scheme (e.g., Roman numerals for pages 1–5).
  2. Open the Header & Footer tool again.
  3. Set a new page range (e.g., pages 6–end).
  4. Set a new format (e.g., Arabic numbers starting at 1).
  5. Apply.

This is useful for documents with front matter and body content that use different numbering schemes.

Method 3: Add Page Numbers with LibreOffice (Free)

LibreOffice can add page numbers when creating PDFs from documents.

Step-by-Step: Adding Page Numbers in LibreOffice

  1. Open your document in LibreOffice Writer.
  2. Go to Insert > Footer > Default Style (or Header, depending on position).
  3. Click in the footer area.
  4. Go to Insert > Field > Page Number.
  5. The current page number appears in the footer.
  6. To format as "Page X of Y": type "Page ", insert the Page Number field, type " of ", then insert Insert > Field > Page Count.
  7. To position: use the alignment tools (left, center, right) in the footer.
  8. Export as PDF (File > Export As > Export as PDF).

Limitations of LibreOffice

LibreOffice adds page numbers during document creation, not to existing PDFs. If you have an existing PDF without page numbers, you need to import it into LibreOffice (which may not preserve formatting perfectly) or use another method.

Method 4: Add Page Numbers with Command-Line Tools

For batch processing, command-line tools can add page numbers efficiently.

Using qpdf with a Stamp

qpdf can overlay a stamp PDF (containing page numbers) onto your target PDF. You create a template PDF with page numbers in the desired position, then use qpdf to stamp it onto each page. This is powerful for batch processing but requires creating the stamp template first.

Using Ghostscript with a PostScript Stamp

Ghostscript can add page numbers by generating a PostScript stamp and overlaying it on the PDF. This is more complex but offers full control over formatting and positioning. It is best suited for automated workflows where the same numbering scheme is applied to many files.

Using a Script with pdftk

pdftk (PDF Toolkit) can add page numbers by stamping a template PDF onto your document. You create a multi-page stamp PDF with numbers on each page, then use pdftk's stamp operation to overlay it. This is a common approach in batch document processing.

Choosing the Right Position and Format

Position Guidelines

  • Bottom center or bottom right: Best for most business documents. Does not interfere with headers.
  • Top right: Common for academic papers and manuscripts. Keeps the bottom of the page clean.
  • Top center: Used in formal documents and some published works.
  • Avoid top left: This position is often used for document titles or headers, so placing page numbers there can cause conflicts.

Format Guidelines

  • Simple numbers ("1, 2, 3"): Clean and universal. Best for most documents.
  • "Page X of Y": Helpful for documents that may be printed or where total length matters. More informative but takes more space.
  • Roman + Arabic: For documents with front matter. Use Roman for preface/TOC and Arabic for the body.
  • Custom formats: Use sparingly. Decorative formats can look unprofessional in business documents.

Font and Size

  • Font: Match the document's body font, or use a clean sans-serif (Arial, Helvetica) for clarity.
  • Size: 10–12pt is standard. Smaller than 10pt may be hard to read; larger than 12pt looks bulky.
  • Color: Black or dark gray is standard. Avoid colored page numbers in professional documents.

Common Problems and Solutions

Problem: Page Numbers Overlap Existing Content

If the PDF already has content in the footer or header area, page numbers may overlap. Solution: choose a different position, or use a tool that can detect and avoid existing content (Acrobat Pro's "Appearance Options" includes this feature).

Problem: Page Numbers Start at the Wrong Page

If the cover page is numbered "1" but you want the body to start at "1," set the starting page number to 2 (so the cover is unnumbered or numbered separately) and start numbering at 1 from the second page.

Problem: Page Numbers Are Cut Off When Printed

This means the numbers are too close to the page edge. Move them further from the edge (at least 0.5 inches from the bottom or top) to ensure they are within the printable area on all printers.

Problem: Total Page Count Is Wrong

If you used "Page X of Y" and the total is wrong, it may be because the tool counted pages you excluded from numbering. Ensure the total reflects all pages in the document, not just the numbered ones.

Best Practices for Page Numbering

  • Be consistent: Use the same position, format, and font throughout the document (or within each section if using different schemes).
  • Skip the cover page: Cover pages typically do not have page numbers. Start numbering from the second page.
  • Use readable sizes: 10–12pt ensures the numbers are visible without dominating the page.
  • Test the output: Open the PDF and check several pages to confirm the numbers are correct, positioned properly, and readable.
  • Keep the original: Save the numbered version as a new file so you can re-number with different settings if needed.

Conclusion

Adding page numbers to a PDF is a simple task that significantly improves document usability and professionalism. For most users, an online tool is the fastest option. Adobe Acrobat Pro offers the most control, including different numbering schemes for different sections. Free tools like LibreOffice handle numbering during document creation. Command-line tools enable batch processing for large document sets. The key is choosing the right position, format, and font for your document type, and verifying the output before sharing. With this tutorial, you can confidently add page numbers to any PDF.

Share

About the Author

Lisa Wang

Lisa Wang

Digital Marketing Strategist

Lisa specializes in content strategy and SEO for tech products. She helps creators and businesses optimize their digital workflows for maximum efficiency.

6+ years in digital marketing and content strategy
Skills & Expertise
SEO StrategyContent MarketingAnalyticsDigital Workflows

Frequently Asked Questions

Can I add page numbers to a PDF for free?
Yes. Online tools like VisualDocs offer free page numbering. LibreOffice can add page numbers for free when creating PDFs from documents. For existing PDFs, online tools are the easiest free option.
How do I skip the cover page when numbering?
Most page numbering tools let you set a starting page. Set it to page 2, and start numbering at 1, so the cover page (page 1) has no number and the second page shows "1." Some tools also have a "skip first page" option.
Can I use different numbering for different sections?
Yes. Adobe Acrobat Pro supports applying different numbering schemes to different page ranges. Apply one scheme to the front matter (e.g., Roman numerals) and another to the body (e.g., Arabic numbers).
How do I format page numbers as "Page X of Y"?
Most tools offer this format as an option. In Acrobat Pro, insert the Page Number field, type " of ", then insert the Page Count field. In online tools, select "Page X of Y" from the format options.
Can I add page numbers without affecting the original content?
Yes. Page numbering tools add numbers to the header or footer area, which is typically empty. The body content is not affected. However, if the header or footer already has content, the numbers may overlap — choose a different position or use a tool that avoids existing content.

Start working smarter today

Join 500,000+ users who trust VisualDocs for their daily image and PDF workflows.