Skip to content
Article

How to Add Page Numbers to a PDF

Numbering a PDF: why the page gets a "Page 7" label rather than a digit, how the count is tied to which sheets you select, and how much heavier the file gets afterwards.

In short: To number a PDF, open add-page-numbers, mark the sheets on the preview grid and pick a position. The count runs inside the selection, so if you start at the third page it becomes page one; leaving the cover and contents out of the selection is easier than hunting for a start number.

Cluster

best practices

Operating patterns that keep recurring PDF work stable and predictable.

5 articles

Primary tool

Add Page Numbers online

Open the tool from this article and complete the operation in the current locale.

Open tool

Table of contents

The document is assembled, agreed and ready to go out, and the pages carry no numbers. In a contract or a court exhibit that is not cosmetic: without numbers nobody can cite a particular sheet, and an unbound set cannot be put back in the right order.

What lands on the page is a label, not a digit

The first thing worth knowing before you start: the tool stamps a line reading "Page 7", not a bare numeral. The word comes from the interface language you opened the site in, and there is no separate setting for it.

Interface languageWhat ends up on the page
English and FrenchPage 7
RussianСтраница 7
GermanSeite 7
Spanish and PortuguesePágina 7

For an internal document, a bundle of exhibits or a filing set that is exactly right: the label reads unambiguously and never gets confused with numbers from the original layout. For typesetting work, where a single digit belongs on the folio, the behaviour comes as a surprise, and the interface offers no way around it.

Where the number actually lands

There are six positions, and their margins are fixed. They cannot be adjusted.

PositionDistance from the edge
Bottom centre12.7 mm from the bottom
Bottom left and bottom right12.7 mm from the bottom, 19.8 mm from the side
Top left and top right14.1 mm from the top, 19.8 mm from the side
Page centreExactly halfway down

Bottom centre is the default. Font size is set separately, from 6 to 36 points, defaulting to 10, which suits A4 and Letter.

The last row of that table does not exist for numbering. A number in the middle of the page reads badly over the text and almost always gets in the way; the position is inherited from the shared vocabulary of stamp placements and has no real use here.

How to number the document

1. Open add-page-numbers and upload the file. 2. Mark the pages on the preview grid if you need to: only marked pages are numbered. 3. Choose the position and the font size. 4. Set the start number if the count does not begin at one. 5. Run the job and download the result. 6. Open the first and last numbered pages and check whether the label ran into the content.

The count runs inside the selection, not across the document

This is the tool's main piece of non-obviousness, and it is also the answer to its most common request.

Mark the pages from the third to the last and leave the start number at one, and the third physical sheet gets "Page 1", the fourth gets "Page 2" and so on. The counter is tied to the ordinal position within the selection, not to where the sheet sits in the file.

Tested on a four page document: selecting pages three and four with a start number of one produced "Page 1" on the third sheet and "Page 2" on the fourth. The first two carried no label at all.

Hence the recipe for documents with a cover and a contents page: do not hunt for the right start number, just leave the opening sheets out of the selection. The body of the document then starts at one by itself.

The reverse works too. If the third sheet has to read "Page 3", select it and set the start number to 3.

The selection does not have to be contiguous either. Mark scattered sheets and the count runs through them consecutively: the first marked sheet takes the start number, the second takes the next one, however many unnumbered pages lie between them.

What the start number can and cannot do

The start number accepts values from 1 to 100000. The upper bound is generous, and it exists for the case where a file is part of a larger matter and continues somebody else's numbering.

The lower bound is hard: there is no zero and no negative. Making the cover "page 0" is not possible, and that is a deliberate limit rather than an oversight.

Roman numerals, letter indices and a "7 of 24" format are equally unknown to the tool. The label follows one template: a word and an Arabic number. Numbering along the lines of "Exhibit 2, sheet 4" has to come from somewhere else.

The document is not rasterised, but it does gain weight

The number is laid onto the real page, not over a picture of it. The text layer, the links and the bookmarks stay where they were, so a numbered document searches and copies exactly as it did before.

The bulk of the price is paid once. The font the label is set in is embedded into the file, and on a short document it is almost the whole increase; the labels themselves weigh a few bytes.

DocumentSize
Source file, 20 pages10 KB
After numbering the first 10 pages26 KB
After numbering all 2029 KB

Between the second row and the third lie ten more numbered sheets and under three kilobytes of difference. Most of the increase is a one-off, around thirteen kilobytes, and every stamped sheet then adds about three hundred bytes on top. On a three hundred page report that came to 105 KB: still one font, but at that length the per-page part outweighs it.

It does still fix an order: compress after numbering, not before. If a document needs both, put the numbers on and then run the result through compress-pdf.

The label sits on top, with nothing behind it

No white rectangle is drawn under the label and no transparency is applied. Dark grey text is simply placed on the page at the chosen point, and if something is already there, the two overlap.

The usual casualty is the source document's own footer. Numbering sits 12.7 mm from the bottom while a typical footer sits lower, so the two labels usually clear each other. In documents with tight layout, with footnotes, or with typeset numbers already in place, checking is not optional.

One more detail: if the line comes out wider than the page, the coordinate hits a clamp and the label is pinned to the very edge. Nothing breaks, but it looks exactly like text pressed against the edge of a sheet.

The order everything else goes in

Numbering is nearly always the last structural operation on a document, and the order here is not a matter of taste.

Assemble the document before numbering it. Stitch files together with merge-pdf after each has been numbered separately and the finished bundle restarts its count in every part. The same goes for organize-pdf: any reordering after numbering leaves the labels where they were, and the sequence of digits stops matching the sequence of pages.

Orientation the tool sorts out by itself. Before stamping, a page's rotation is transferred into its content, so the number lands at the visible bottom of the sheet even on pages turned by 90 degrees. Tested: the rotated page came out landscape, 842 by 595 points, with the label 34 points from its bottom edge, exactly as on the portrait pages around it.

The side effect lies elsewhere. A rotated page stops being rotated in the result: the rotation flag comes off and the sheet becomes genuinely landscape. It looks the same, but a system that reads that flag sees a different document. If orientations need evening out deliberately, that is rotate-pdf, and it belongs before the numbering.

A last word about neighbours on the page. If the document also needs a "Copy" or "Confidential" stamp, that is add-watermark, a separate operation with its own placements and opacity. Run it before numbering and pick different corners, or the two lines will meet at one point.

FAQ

Yes, and the start number is not what does it. Mark only the sheets that are being numbered on the preview grid and the count begins at one on the first marked sheet. Simply leave the cover and the contents page out of the selection.
The tool stamps a label, and the word in it comes from the interface language: English gives "Page", German "Seite", Russian "Страница". There is no format setting in the interface, so a bare digit is not available.
Moderately. The label's font is embedded once, and each stamped sheet then adds about three hundred bytes: a 20 page document went from 10 KB to 29 KB, while three hundred pages came to 105 KB. Compress after numbering rather than before.
It can: there is nothing behind the label, the text is simply placed on the page. The bottom margin is fixed at 12.7 mm, so a typical footer usually clears it, but in tight layouts and on pages with footnotes the result has to be checked.
Files are used only for the selected operation and are automatically deleted after processing is finished. We do not use uploaded documents to train AI models.

More from this cluster

Related tools

← All Edit tools

What to do next

If you need a practical next step or service guidance after reading, open these pages.

All tools

PDF tools catalog: merge, compress, split, convert, rotate, protect and unlock PDF files online, all directly in your browser.

FAQ

Answers to common questions about iHatePDF: whether registration is required, how files are processed, where to check limits, and whether it's safe to upload documents.

Contact

Contact iHatePDF about processing errors, choosing a tool, security, business inquiries, and suggestions for new features.