Everything you need to know about adding automatic page numbers to PDF documents online with PDF Lab's free tool
← Go to Add Page Numbers ToolThe Page Number PDF tool is a free online service that automatically adds page numbers to all pages in your PDF documents.
Key Features:
Technical Implementation: The tool uses FPDI to import each page from the PDF, then TCPDF adds text overlays with page numbers. Position is calculated based on page dimensions (top/bottom margin, left/center/right alignment). The format template determines the text (e.g., "Page 1 of 10"). Helvetica font is used for all page numbers. Font size can be set from 6 to 72 points. Page numbers are added to all pages starting from the specified start page.
The tool offers six position options to place page numbers exactly where you need them.
Position Options:
Positioning Details:
The tool offers three formatting options for how page numbers are displayed.
Format Options:
Format Application:
Yes! You can set a custom start page to begin numbering from any page in the document.
How Custom Start Page Works:
Common Use Cases:
Example Scenario:
Note: Total page count (in "Page X of Y" format) includes all pages, even unnumbered ones.
Font size can be set from 6 to 72 points to accommodate different document types.
Font Size Guide:
Choosing Font Size:
Page numbers use Helvetica font, a professional sans-serif typeface.
Why Helvetica?
Helvetica Characteristics:
Font Embedding:
Compatibility:
Yes! The Page Number tool is fully responsive and mobile-friendly.
Mobile Features:
Mobile Tips:
No, we do not permanently store your PDF files.
How We Handle Your Files:
/tmp folder only during processingPrivacy Guarantee:
The output is a standard PDF file with page numbers embedded.
Output File Details:
numbered_[timestamp].pdf
numbered_20250116_163542.pdfContent Preservation:
The Page Number tool uses PDF libraries optimized for text overlay.
Backend Technologies:
Text() or writeHTMLCell() for rendering numbers$pageNumber"Page $pageNumber of $totalPages""$pageNumber/$totalPages"Processing Workflow: