EN

Add Page Numbers to PDF

Add page numbers, a header, footer or logo to PDF pages right on your device. Six positions, custom text like Page 1 of 10, Vietnamese and Japanese supported. Free, nothing uploaded.

{p} is always the total number of pages in the file. Selected pages are numbered in a continuous sequence starting from the first number: with 1-3, 5, page 5 is labeled 4.

🔒 Your files never leave your device.

How we test these tools

How to add page numbers to a PDF

  1. Choose one or more PDF files.
  2. Pick a number format: 1, 2, 3, Page 1 of 10, 1 / 10 or your own text with {n} (page number) and {p} (total pages), for example Contract – page {n} / {p}.
  3. Choose one of six positions, the first number, the font size and the margin.
  4. Optionally add a header, a footer or a logo, then click Add page numbers and download the PDF (or a ZIP for several files).

How it works

Each page is read in the direction you see it on screen. The tool measures the visible area of the page (its crop box), places the text the chosen margin away from the edge and turns it to match pages that are rotated 90°, 180° or 270°, so the number always sits upright where you expect it. Text is written with an embedded Noto Sans font, so accents such as ữ, ỷ, Ặ, é or ß and Japanese text display correctly. Only the characters you use are embedded, which keeps the file small.

Numbering rule: the first page you number gets the first number, and every following numbered page adds one. {p} is always the total number of pages in the file. The first number can be 0 or any whole number up to 99999.

Tips

  • To skip a cover page, type 2-end in Pages to number and set the first number to 1.
  • A range written backwards such as 5-3 means pages 3 to 5. Leave the box empty to number every page.
  • Scanned PDFs work too: the number is drawn on top of the scanned image.
  • Bookmarks, links, form fields and the document title and author are kept. You can number a file again if needed.

FAQ

Are my PDFs uploaded?

No. The numbers are added on your own device with the open-source pdf-lib library. Your files never leave your browser.

Why does my number show squares instead of letters?

It will not here: the tool embeds a font that covers Vietnamese, Western European and Japanese characters. Emoji are replaced by a question mark.

Can I number a password-protected PDF?

No. Remove the password with Unlock PDF first, then add page numbers.

Can I add numbers to several PDFs at once?

Yes. Choose several files; each gets its own numbering and you can download them all as one ZIP. A file that cannot be read is reported and the others are still numbered.

Does it change the quality of my PDF?

No. Pages are not re-rendered; the number is added as text on top, so the original text stays sharp and selectable.