How do I add page numbers to a PDF?
This tool lets you add page numbers to PDF files: choose a position and format and apply it to the pages you want. It also adds headers, footers and Bates numbers with a live preview, and everything runs in your browser, so the document is never uploaded.
Long documents are easier to cite and print when pages are numbered. You can place the number in any corner or the centre of the header or footer, choose the starting number, and skip the cover page.
The text is a template: use {n} for the page number, {total} for the page count and {date} for today's date, so Page {n} of {total} becomes Page 3 of 12. Bates numbering adds a fixed prefix and a zero-padded running number for legal documents. A live preview shows the result before you download.
Numbers are stamped onto the page content, and they cannot be edited afterwards by simple means. The file is processed with pdf-lib in your browser and is not uploaded.
Page updated .
How to use the PDF Page Numbers
- Drop the PDF.
- Set the position, text template, font size and start number, and choose which pages to number.
- Check the preview and download the numbered PDF.
Examples
Template Page {n} of {total}, bottom centrePage 1 of 12 on the first page, Page 2 of 12 on the second
Prefix CASE-, start 1000
CASE-001000, CASE-001001 and so on
Tips
- Start numbering at 2 if you want to skip the cover without leaving a gap.
- Use {n} of {total} so readers know whether a page is missing.
- Pick a small margin so numbers do not overlap content.
Specs & limits
- Placeholders
- {n}, {total}, {date}
- Positions
- Corners and centre, header or footer
- Modes
- Page numbers, header and footer text, Bates numbering
- Preview
- Live
- Processing
- In your browser
Troubleshooting
›Number overlaps content
Cause: The margin is too small.
Fix: Increase the margin.
›Wrong numbers after skipping pages
Cause: Start number does not match.
Fix: Adjust the start number.
›Text is cut off
Cause: The template is too long.
Fix: Shorten it or reduce the font size.
Frequently asked questions
›How do I skip the cover page?
Set the page range to start at page 2, or set the start number to match.
›What are Bates numbers?
Unique sequential identifiers, with a prefix, used to label pages in legal documents.
›What placeholders can I use?
{n} for the page number, {total} for the page count and {date} for today's date.
›Can I add a header and footer?
Yes. You can add text in either position or both.
›Can I change the font size?
Yes, set the size and position to suit the page.
›Is my file uploaded?
The numbers are added locally in your browser, and nothing is sent to our server.