Page Numbers — Add Page Numbers to PDF (Client-side Tool)

Page Numbers — Add Page Numbers to PDF

Add customizable page numbers (header/footer) to PDF files entirely in your browser. This privacy-first demo includes documentation and FAQ suitable for AdSense.

Drag & drop a PDF here or click "Open PDF". After loading, choose page number format, position, font size and offset, then click "Apply & Download". Processing happens locally in your browser.
Tip: For large PDFs use a desktop browser for better performance.

Preview

No preview available. Load a PDF and click Preview.

About the Page Numbers Tool

This Page Numbers tool adds page numbers to an existing PDF using client-side processing so your files remain on your device. You can configure text format (using placeholders), position, font size, and which pages to number. The resulting PDF is rebuilt and downloaded—no server uploads in this demo.

How it works

  1. Load a PDF from your device.
  2. Set numbering options: text format (use {n} for current page and {total} for total pages), position, and font size.
  3. Optionally specify page ranges (e.g. 1-3,5) to only number some pages.
  4. Preview the result on a representative page, then click "Apply & Download" to produce a new PDF with numbers embedded.

Placeholders and formatting

  • {n} — current page number (1-based)
  • {total} — total number of pages in the PDF

Key features

  • Client-side processing — files are not uploaded in this demo.
  • Customizable numbering format and position.
  • Supports numbering only specified page ranges.

Limitations & recommendations

  • This demo uses pdf-lib which copies pages and draws text overlays. Very complex PDFs with advanced transparency or annotations may require additional handling.
  • Large PDFs may be memory-intensive; use a desktop browser for best results.
  • For production use, validate output in target PDF readers and test fonts/encodings for target audiences.
Privacy: This demo processes files locally in your browser. If you implement a server-side service, publish a privacy policy describing uploads, retention, and access control to comply with AdSense and privacy regulations.

Frequently Asked Questions (FAQ)

Can I change the font or color of numbers?

In this demo you can change font size. To use custom fonts or colors you'd need to extend the tool to embed fonts and add color controls (pdf-lib supports embedding fonts).

Will this modify the original file?

No — this tool creates a new PDF with the page numbers added. Your original file remains unchanged.

Are files uploaded to a server?

No. In this client-side demo, files stay in your browser. A server-side implementation must clearly disclose upload and retention policies.

How do I number only some pages?

Enable "Number range" and enter pages or ranges like "1-3,5,7-9". The tool will apply numbering only to those pages; unlisted pages are left unchanged.