Add page numbers to a PDF

Number the pages of any PDF: bottom or top, left, center or right, as 1, Page 1 of 10 or your own text. Skip the cover, start from any number, and download. Free, no watermark, and your file never leaves your browser.

No PDF yet. You can also drop a file on this box.

Options

OptionWhat it does
Pages to numberRanges like 2- or 3-12. Other pages are left untouched.
With 2- and first number 1, page 2 is numbered 1.
{total}The last number printed, so it stays right when you skip pages.
10 pages, skip the cover: "Page 1 of 9" to "Page 9 of 9".
Bottom, outsideRight on odd pages, left on even pages, like a printed book.
Odd and even count from the first numbered page.

How it works

The page uses pdf-lib to draw the numbers as real text (Helvetica) on top of each page and save a new file. The rest of the page is not touched: text stays selectable and nothing is re-compressed. Rotated pages (scans saved sideways, landscape pages turned with a viewer) are handled, so the number always sits at the bottom of the page as you see it. The standard font covers Western European characters. For other scripts, use digits and the presets.

Generating the PDFs yourself?

Building reports or invoices from HTML? Chromium can print page numbers for you. The Shotmint API renders PDFs straight from a URL or raw HTML in Chromium, with A4/Letter sizes, margins and backgrounds:

curl "https://shotmint.creasework.com/v1/pdf?url=https://example.com&format=A4" -H "X-API-Key: YOUR_KEY" -o page.pdf

Each render is 1 credit. €5 buys 2,000 with no subscription, and credits never expire. Try it without a key on URL to PDF and HTML to PDF.

Get 100 free renders API docs

FAQ

How do I skip the first page? Type 2- in "Pages to number". Set the first number to 2 if you want the cover to count.

Can I remove the numbers later? They're part of the page once saved, so keep your original. The tool never changes the file you picked: it downloads a new copy.

Is my PDF uploaded? No. Everything runs in JavaScript on this page, so your documents stay on your device.

Why does it say password-protected? Encrypted PDFs can't be changed without the password. Save a copy without the password in your PDF viewer, then try again.

Related: watermark PDF, rotate PDF, merge PDF, split PDF, PDF to image, image to PDF, HTML to PDF.