Add Page Numbers to PDF
Add page numbers to a PDF — pick position, starting number and format.
What is Add Page Numbers to PDF
The Page Numbering tool adds sequential numbers to every page of a PDF. Choose a position (bottom or top, left, centre or right), the starting number (for example 1 after a cover page) and a format (1, 1 of 10, or - 1 -). Numbers are drawn with pdf-lib, so existing content is never re-compressed, and nothing is uploaded (up to 50 MB).
File
… up to 30 MB
🔒 Everything runs in your browser. Nothing is uploaded.
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Size limit
- 30 MB free, 50 MB with Pro
- Offline
- Works with the network disconnected
Numbering that survives printing
Page numbers are drawn as text on each page, so they print and appear in every viewer. That is different from a viewer's own page indicator, which is not part of the file.
Starting the count at a number other than 1 is what you need when the PDF is chapter three of a book, or when the cover should not be counted. Both are supported.
Position and format are fixed per run rather than per page, which keeps the numbering consistent — a document with numbers jumping between corners is worse than no numbers at all.
What it does not do
It does not create a table of contents or bookmarks. Page numbers are visual marks; navigation is a separate structure, written into the document's outline rather than painted on the page — which is why a numbered document still has no clickable contents.
It does not renumber existing page labels in the PDF's internal metadata. If the file already declared page labels, a viewer may still show the old ones in its page field while the printed numbers are correct.
It does not skip pages automatically. If the first page is a cover, set the start value to 0 or add numbers from page 2 explicitly.
How to use it
- 1.Choose a PDF
- 2.Pick position, start number and format
- 3.Download the numbered PDF
How Add Page Numbers to PDF works under the hood
A PDF is a graph of objects plus a cross-reference table that says where each object starts. Merging, splitting and reordering are structural edits to that graph — no page is re-rendered, which is why the output keeps its original quality.
- 1
Load the document
pdf-lib parses the object graph, following the xref table to every page, font and image stream. Encrypted files are rejected here.
- 2
Copy page dictionaries
Each selected page is copied into a new document, together with the resources it references (fonts, images, colour spaces).
- 3
Rewrite the cross-reference
Every object gets a new byte offset, so the xref table is rebuilt. A wrong offset is the classic cause of a 'damaged PDF' — this step is why the tool cannot simply concatenate files.
- 4
Save and download
The new document is serialised to bytes in memory and offered as a Blob download.
Processing pipeline
Why signatures and forms break
A digital signature covers the exact bytes of the document. Any operation that rewrites the file — even adding a page number — changes those bytes and invalidates the signature. That is the signature doing its job, not a defect. AcroForm fields live in a separate object tree; operations that rebuild the page tree may drop their appearance streams, so test a form-heavy document before relying on the output.
Scanned PDFs have no text
Text extraction reads the text operators inside each page's content stream. A scan is a single image, so there are no text operators to read — the result is an empty or near-empty file. Recognising that text requires OCR, which this site does not provide. If a PDF's text can be selected in a viewer, extraction will work; if it cannot, no converter can invent it.
Compression is re-encoding, not magic
PDF compression re-packs streams with Flate and can downsample embedded images. A PDF that is already mostly JPEG will shrink only slightly; a PDF of scanned pages at 600 dpi can drop by 80%. Text stays sharp because text is not an image. The tool never silently deletes pages to hit a size target.
Verify it yourself
The original file is never sent anywhere. Confirm it in one run.
- 1.Open DevTools on this page and switch to the Network tab
- 2.Keep the filter on Fetch/XHR and run the tool
- 3.Confirm no request carries your file — you should see only page assets and fonts
Frequently asked questions
Can I start at 1 after a cover page?
Yes. Set the starting number to 1 and restrict the page range to 2- so numbering begins on the second page.
Does it support non-Latin text?
The format is numeric only, so this never comes up — numbers are drawn with a standard font.
Numbers look rotated on some pages
If a page carries a rotation flag, the number follows that rotation. Use the PDF Rotator first to normalise page orientation.
Is this tool free?
Yes — no sign-up and no card. The free tier handles 30 MB. Everything runs in your browser, so your file is never uploaded.
What happens if my file is over the limit?
You see a notice before any processing starts, and nothing is charged automatically. Pro raises the limit to 50 MB. If you'd rather stay free, compress or split the file first.
What this kind of conversion cannot keep
PDF pages are copied as page objects, not re-rendered as images. Text stays selectable, the file size stays close to the sum of the inputs, and nothing is flattened. The one thing that cannot survive is a digital signature: any change to the bytes invalidates it, which is the signature working as designed.
More in PDF
On this page
- What is Add Page Numbers to PDF
- What this tool actually does with your file
- How it actually behaves
- How to use it
- How it works inside
- Frequently asked questions
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →