Skip to content
epitometool

PDF page numbers

PDF tools

Add page numbers to a PDF — pick position, format, starting number, fonts and colour.

Updated

100% private. Your PDF never leaves your device — numbering runs in your browser. (Open DevTools → Network to verify.)

One PDF at a time. Existing page content stays untouched.

Quick start

How to add page numbers to a PDF

Stamp numbered pages onto a PDF — locally, with no upload and no quality loss.

  1. Step 1
    Drop or pick a PDF

    Drag your PDF onto the drop zone, click to choose it, or paste from the clipboard. The file stays on your device.

  2. Step 2
    Pick format, position and range

    Choose a format (Page n of N, n of N, Page n, or just n), a 6-position anchor, how many leading pages to skip, the starting number, font size, colour and margin.

  3. Step 3
    Add numbers, then download

    Hit Add page numbers. The new file is built locally and offered as <name>-numbered.pdf — no signup, no upload, no server-side copy.

In-depth guide

Add page numbers to a PDF in your browser — full guide

This tool stamps a small page number onto every page of a PDF using pdf-lib. You pick the position, the format, the starting number, and how many leading pages to skip (so covers and a table of contents stay unnumbered). Everything runs locally — your PDF never leaves the tab.

When you need page numbers

PDF readers know how many pages a document has, but they don't stamp the number onto the page itself. That matters whenever the document leaves the reader:

  • Printed handouts and reports — readers need a number on every sheet to track where they are.
  • Legal and academic submissions — most courts and journals require visible "Page n of N" on every page.
  • Contracts and signed bundles — page numbers make tampering easier to spot (a removed page leaves a gap in the run).
  • Books exported as PDF — InDesign, LaTeX and most writing apps add numbers automatically, but a one-off PDF export (e.g. a Word doc converted to PDF) often skips them.

Format, position and starting number

Formats. Four templates cover the common conventions: just the number (1), prefixed with "Page" (Page 1), with the running total (1 of 12), or both (Page 1 of 12). The total N is the count of numbered pages — skipped pages don't inflate it.

Position. Six anchors cover every common layout: top-left, top-center, top-right, bottom-left, bottom-center and bottom-right. Bottom-center is the default; bottom-right is common for legal documents; top-right is the academic norm.

Starting number. If your "real" content starts on a later page — e.g. a 3-page foreword followed by Chapter 1 at the physical page 4 — set Skip first N to 3 and Starting number to 1. The first numbered page then reads "Page 1 of N".

Edge cases & gotchas

  • Pages with different sizes. The anchor uses each page's actual size, so numbers stay correctly inset on mixed-size PDFs (landscape + portrait, A4 + Letter).
  • Rotated pages. pdf-lib draws relative to the underlying page geometry. If a page is rotated 90°, the number will follow the rotation in viewers that honour the rotate flag.
  • Encrypted PDFs. Remove the password first (Save as → without password in your reader), then re-add numbering.
  • Numbers overlap existing content. Raise the margin (default 36 pt = 0.5 in). The text sits inside that margin from the nearest edge.

Privacy & safety

Page numbering doesn't alter the original page bytes — every word, image and vector stays exactly as it was. We only add one short text draw on top of each page.

The PDF is loaded into a Web Worker, pdf-lib appends one draw instruction per numbered page, and the modified PDF is offered as a download. There's no network round-trip and no server-side copy at any step.

When to use it vs alternatives

Use this tool when you need a fast, one-off PDF task and want the document to stay in your browser. Desktop editors or command-line tools are better for heavily encrypted files, regulated review workflows, or very large batch jobs that need repeatable automation.

Common pitfalls

  • Password-protected, digitally signed, or archival PDFs may need a specialist workflow before editing.
  • Large scans can use a lot of memory, especially on phones or older laptops.
  • Check the downloaded file before replacing the original, because compression, OCR, or conversion can change visual details.

Frequently asked questions

Is my PDF uploaded anywhere?

No. Numbering runs inside your browser using a Web Worker — your PDF never leaves the tab. Open DevTools → Network while numbering to confirm.

Will adding page numbers change the existing content?

No. pdf-lib preserves the original page content stream byte-for-byte. We only append a small text drawing instruction per page, so the rest of the document is unchanged.

Can I start numbering from a page other than 1?

Yes. Use 'Skip first N pages' to leave covers or a table of contents unnumbered. Use 'Starting number' if your displayed numbers should not begin at 1 (e.g. the real chapter starts at page 17).

What format options are supported?

Four templates: '1', 'Page 1', '1 of N' and 'Page 1 of N' — where N is the count of *numbered* pages (skipped pages don't count towards the total).

Where on the page can the number sit?

Six anchor positions: top-left, top-center, top-right, bottom-left, bottom-center and bottom-right. Default is bottom-center, which is the most common book / report convention.

Can I customise the font and colour?

You can pick any 8–24 pt font size and any hex colour. The font is Helvetica (one of the 14 PDF standard fonts) so the file size doesn't grow.

Does this work on password-protected PDFs?

Decrypt the PDF first (open it in your reader, choose Save as → without password) and then add numbers. pdf-lib can read encrypted PDFs but cannot save modifications back into them.

Will the numbers cover existing content near the page edges?

If your document already prints text close to the edges, raise the margin (default is 36 pt = 0.5 in). The number sits inside that margin from the nearest edge.

Keep exploring

More tools you'll like

Hand-picked utilities that pair well with the one you're on — all free, client-side, and zero-signup.