Skip to the tool
ToolOcean

Add Page Numbers to a PDF

Put 1, Page 1, 1 of N or Page 1 of N in any corner or centred, top or bottom. Leave the cover blank, start from any number, and check a real rendered page first.

Runs in your browser. Nothing is uploaded.

How to number a PDF's pages

  1. Step 1: Open the PDFDrop it on the box or pick it from your files. Its page count appears and the first page is drawn.
  2. Step 2: Choose where and howPick a spot and a format. Skip the cover or set a page run if needed. The preview updates as you change it.
  3. Step 3: Download the copyIt is saved as name-numbered.pdf. The original is not changed.

Good to know

  • One run of pages per pass
  • Existing numbers are not detected
  • Helvetica in black only
  • Locked files must be unlocked first

About this tool

How the numbers are placed

Each number is written into the page as real text in Helvetica, one of the fonts every PDF reader already has, so nothing extra is embedded and the label can be selected and searched like the rest of the page. Position is measured from the area a reader actually sees. When a page carries a crop box, the number sits inside the cropped area rather than out on the trimmed-off margin, and a crop box that starts away from the corner of the sheet moves the number with it.

Scanned and assembled documents often mix portrait and landscape sheets, and some pages are stored sideways with a rotation flag telling the viewer to turn them. Numbering those naively puts the label on the wrong edge, lying on its side. Here every page's rotation is read first, the chosen spot is worked out on the page as it is displayed, and the text is turned to match, so bottom-right means bottom-right on every page and every number reads the right way up.

  • Runs in your browser. All processing happens locally in this tab using JavaScript.
  • No uploads. Your files and text are never sent to a server. There is no server to send them to.
  • Works offline. Once the page has loaded you can disconnect and keep working.
  • Unlimited & free. No usage caps, no paywall, no file size tiers.

Choose a PDF

What happens to your data

The same questions a security review would ask, answered plainly.

Read via
The browser File API, on your device
Held in
Your browser tab's memory for as long as it is open
Stored
Nothing from your files. No database, no server-side copy. Analytics cookies only if you accept
Transmitted
Never your input. One anonymous usage count (the tool's name only) goes to Umami when a result is ready
Retained after you close the tab
Nothing
Works offline
Yes, once the page has loaded

What you can set

  • Four formats, six positions

    Choose a bare 1, Page 1, 1 of N or Page 1 of N, and put it top or bottom, left, centre or right. Size and distance from the edge are set in points.

  • A preview that is the real output

    The preview page is written by the same code as the download and drawn by a PDF renderer, so a rotated or cropped page shows exactly where its number will land.

  • Covers and front matter

    Leave the first page blank with one switch, or number only a run such as 3-40. The start number is independent, so the first numbered page can read 1, 3 or 101.

  • The file stays on this device

    Reading, numbering and saving all happen in this tab. Close it and nothing remains anywhere but the copy you saved.

  • Your input never leaves the tab

    There is no upload step and no server to receive one. The page loads once, then all work on your PDFs happens in local JavaScript.

  • No caps or paywalls

    No daily limits, no per-file ceilings imposed by a server tier, no watermarks, and no account. The practical limit is your own device's memory.

Two documents, numbered

A cover page, and a scan with rotated and cropped pages.

A report with a title page

Five pages, where the first is a cover that should stay clean.

Before

Input

5-page PDF, cover on page 1

After

Output

Pages 2 to 5 read 1 of 4 through 4 of 4

Settings: 1 of N, bottom centre, first page unnumbered, start at 1

N is four because four numbers are printed. Set the start to 2 instead and the same pages read 2 of 5 through 5 of 5, matching the sheet count while the cover stays blank.

A scan with sideways and cropped pages

Six pages of four sizes: four stored with a 90, 180, 270 or 90 degree rotation flag, two with an offset crop box.

Before

Input

Mixed portrait and landscape, four rotation flags

After

Output

Every label upright in the bottom-right corner as displayed

Settings: Page 1 of N, bottom right, 11 pt, 28 pt from the edge

The corner is chosen on the page a reader sees, then translated back into the page's stored orientation, and the text is turned by the page's own rotation. On the cropped pages the label sits 28 points inside the crop, not inside the hidden margin.

Measured results

Real files, real numbers, and the machine they were run on.

ScenarioInputOutputTimeNotes
200 text pages numbered Page 1 of N, bottom right43,425 bytes82,683 bytes115 msabout 196 bytes per page
6 mixed pages, four rotated, two cropped, numbered Page 1 of N1,982 bytes3,392 bytes17 msevery label upright, 28 pt from the displayed corner

How this was measured: Measured by driving the built page in headless Chrome 156 on an 8-core Intel Xeon Linux machine, on 2026-10-29. The fixture is handed to the page's own file input, the page's own button is pressed, the time is the one the page reports for numbering and saving, and the size is the file the browser saved. Fixtures are synthetic text PDFs, so the byte overhead is large relative to the input; on a real document it is the same few hundred bytes per page against a much larger file.

When page numbers matter

Theses and coursework

Submission rules often ask for numbered pages with the title page left plain. Skip page one, start at 1, and the body is numbered the way the handbook describes.

Legal bundles and exhibits

A merged bundle needs page references everyone can cite in a hearing. Page 1 of N in a corner gives each sheet a reference that does not depend on the viewer's own counter.

Anything that will be printed

Once pages leave the screen, the viewer's page counter is gone. A printed number lets a dropped stack be put back in order in a minute.

Board packs and proposals

When several documents are combined into one pack, continuous numbers let people say turn to page 14 in a meeting and all land on the same sheet.

Documents that may not leave the building

Contracts and personnel files can be numbered here without being sent to a third party, which is often the deciding rule rather than a preference.

Good to know

What one pass does not cover, and the way around it.

One run of pages per pass

A single range such as 2- or 3-40 is numbered in sequence. Separate runs, like roman numerals for the front matter and 1, 2, 3 for the body, need two passes on split parts, then a merge.

Existing numbers are not detected

If the document already prints page numbers, the new ones are added beside or over them. Nothing on the page is read, moved or removed.

Helvetica in black only

The label uses one standard font in black, with Western digits and the words Page and of. There is no colour, font or language choice.

Locked files must be unlocked first

A password-protected or restricted PDF is refused rather than half-edited. Remove the protection you already know with Unlock PDF, then number the unlocked copy.

PDF page numbering: common questions

Is my PDF uploaded to add the numbers?

No. The file is read by JavaScript in this tab, the numbers are written into a copy in memory, and your browser saves that copy. There is no server step, and your network panel will show no request carrying the document.

What does N mean in 1 of N when I skip the cover?

N is the last number printed. Skip the cover of a five-page file and start at 1, and the pages read 1 of 4 to 4 of 4. Start at 2 instead and they read 2 of 5 to 5 of 5. The hint under the range field always shows the current value.

Will the numbers be upright on landscape or rotated pages?

Yes. Each page's rotation flag is read, the position is worked out on the page as displayed, and the text is turned to match. Top centre is the top centre a reader sees on every page, whatever its orientation or size.

My PDF has a crop box. Where does the number go?

Inside the visible area. The margin is measured from the edge of the crop box, including any offset, so the label never lands in the part a viewer hides.

Can I start numbering on page 3, or start from a number other than 1?

Both, separately. Type 3- in the pages field to leave pages 1 and 2 blank, and set Start at to whatever the first numbered page should read. A start of 0 is allowed.

Why does my locked PDF not open here?

Adding numbers to an encrypted file without its password would produce a broken document, so it is refused. If you know the password, Unlock PDF removes it in your browser, and the unlocked copy can be numbered here.

Do form fields, links and bookmarks survive?

Yes. The numbers are drawn onto the document you opened rather than a rebuilt copy, so fields, links, the outline and the document information are carried over untouched.

Can the numbers be removed later?

Only with a PDF editor, by deleting the text. The label is ordinary page content, not a toggleable layer, so keep the original if you might need a clean version.

How long does a long document take?

Not long. Two hundred pages took about 115 ms in a headless desktop Chrome, with the file reading as one more moment before that. Each page gains roughly 200 bytes, so the same 200 pages grew by 39,258 bytes. The font is a reference every reader already has, so nothing larger is embedded.

Does this work without a connection?

Yes, once this page has loaded. The PDF library and the preview renderer are fetched in the background after the page opens and kept by your browser, so numbering and the preview both work with the network off.

Is there a file size limit?

There is no limit imposed by us, because there is no server tier to enforce one. The real constraint is your device's available memory, since the whole file is held in RAM while it is processed. Very large files are slower on phones than on a laptop.

Do I need to create an account?

No. There is no sign-up, no email, and no usage tracking tied to an identity. The tool works the first time you open it.