How to Add Page Numbers to a PDF Online Free [2026]
Most tools that add page numbers to a PDF either require a desktop install or upload your file to a server. SammaPix runs the whole process in your browser: no upload, no signup, no server. Here is exactly how it works, what options you get, and why the text stays selectable.

Table of Contents
Why adding page numbers to a PDF is harder than it looks
You have a 30-page PDF. A client, professor, or court clerk needs page numbers so they can reference specific sections. The document has none. You search for a way to insert them and quickly discover the problem: most free tools either require installing desktop software or uploading your PDF to a third-party server.
Adobe Acrobat can do it β but only on the paid desktop version. Word can do it if you convert to DOCX first, but that breaks the layout. iLovePDF and Smallpdf do it, but your file goes to their servers. For a generic file that is fine. For a legal brief, a thesis draft, a contract, or a confidential report, uploading to a third party is a real privacy concern.
I built SammaPix PDF Page Numbers to solve this by running the entire process inside your browser using pdf-lib β an open-source JavaScript library for reading and writing PDFs. No server is involved at any point. And unlike tools that stamp a screenshot of the page number as an image, this tool writes real vector text that stays selectable and searchable.
What "no upload" actually means
When you drop a PDF into SammaPix PDF Page Numbers, your browser reads it using the FileReader API β a standard browser API for reading local files without any network access. The file stays in browser memory throughout. pdf-lib processes it and writes the page numbers in memory. The output is served as a blob: URL and downloaded directly. Zero network requests carry your file.
Selectable text vs image stamp: the difference that matters
This is the technical distinction that separates a proper page-numbering tool from a quick hack. There are two fundamentally different ways to add a page number to a PDF page:
Image stamp (the wrong approach)
Some tools render the page to a canvas, draw the page number as a pixel value, then flatten everything back into an image embedded in the PDF. The result looks identical on screen but the page number is part of the image. You cannot select it. You cannot search for it. Zooming in reveals pixelation if the resolution was low. The file size increases significantly because each page becomes a raster image rather than a compact text-and-vector document.
Vector text (the right approach, how pdf-lib works)
pdf-lib adds the page number by writing a new content stream to the PDF page. This content stream contains actual text instructions: the character string, the font reference, the position, and the size. The PDF viewer renders this as real, sharp text β identical to how the body text of the document was written in the first place. The number is selectable, searchable, perfectly sharp at any zoom level, and contributes only a few kilobytes to the file size for the entire document.
| Property | Image stamp approach | Vector text (pdf-lib, SammaPix) |
|---|---|---|
| Selectable in PDF viewer | No β it is part of the image | Yes β real text, selectable and copyable |
| Searchable | No | Yes |
| Sharpness at high zoom | Depends on raster resolution | Always sharp β vector rendering |
| File size impact | Large β each page becomes an image | Negligible β a few KB for the whole document |
| Original content preserved | No β page is rasterized and rebuilt | Yes β only a new content layer is added |
How browser-based PDF page numbering works
Here is exactly what happens under the hood when you click Add Page Numbers:
- pdf-lib loads and parses the PDF. The library reads the PDF binary β cross-reference table, page tree, content streams, font resources. This happens entirely in browser memory. No network request.
- The tool reads each page's dimensions. PDFs can have pages of different sizes (A4 mixed with A3, for example). The numbering position is calculated relative to each page's actual dimensions, so "bottom-center" is always visually centered regardless of page size.
- A text annotation is added to each page's content stream. pdf-lib appends a new content stream that draws the page number string at the calculated position using a standard embedded font. The string reflects your chosen format (plain number, current/total, or Page N of N) and start number.
- The modified PDF is serialized back to bytes. pdf-lib produces the output PDF in memory. The original page content is untouched. Only the new content streams are added.
- The result is offered for download. The numbered PDF is stored as a Blob and downloaded via a
blob:URL directly from memory. Nothing leaves your device.
The key technical advantage: because pdf-lib operates at the PDF specification level β reading and writing the actual PDF data structures, not rendering to pixels β it preserves everything in the original document. Links stay active. Form fields stay functional. Existing text stays selectable. The only addition is the numbering layer.
Positions, formats, and font size: what to choose
The right combination depends on your document type. Here is practical guidance for each option:
Position
| Position | Best for |
|---|---|
| Bottom center | Most documents: reports, theses, books, academic papers. The default convention in most style guides (APA, MLA, Chicago). |
| Bottom right | Business proposals, contracts, slide decks exported to PDF. Common in corporate settings where the document has a branded header at the top. |
| Bottom left | Right-to-left documents, or when the bottom right is already occupied by a watermark or logo. |
| Top center | Documents with footer content (tables, references) that should not be interrupted. Some legal filings. |
| Top right / Top left | Documents with existing bottom footers. Choose the opposite corner from any existing page decoration. |
Format
The three formats serve different communication goals:
- Plain number (1, 2, 3): The most minimal format. Use this when the document is a standalone piece and the reader knows how many pages it has from the email or description. Best for books, long-form reports, and academic submissions.
- Current / Total (1 / 14, 2 / 14): Adds context about total length. Useful for meeting handouts, legal submissions, and any document where the reader needs to know how many pages to expect. Shows immediately if pages are missing.
- Page N of N (Page 1 of 14): The most formal written-out format. Required by some academic institutions, courts, and government agencies whose style guidelines specify it. Clearest for reviewers who are unfamiliar with the document.
Font size
The default font size (typically 10β11pt) works well for standard A4 and letter-size PDFs. Increase it for large-format documents (A3, tabloid) where numbers need to be readable at a distance. Decrease it for densely packed PDFs where you want the number to be visible but unobtrusive β for example, a data table where the number should not compete visually with the content.
Add page numbers to your PDF in your browser now
Vector text, not an image stamp. Six positions, three formats, custom start number. No upload. No signup. Free.
Open PDF Page Numbers, FreeHow to add page numbers to a PDF online, step by step
The full process takes under a minute for most documents:
- Go to sammapix.com/tools/pdf-page-numbers in Chrome, Safari, Firefox, or Edge. No account required.
- Drop your PDF onto the dropzone or click to browse for it. The file is loaded into browser memory. If your PDF has modification restrictions, the tool will let you know β remove them first with PDF Unlock before numbering.
- Choose a position. Bottom center is the default and works for most documents. See the position table above for guidance.
- Choose a format. Select plain number, current/total, or Page N of N depending on your document type.
- Set a start number if needed. Leave it at 1 for standalone documents. Change it if this PDF is part of a larger sequence β see the next section for when this matters.
- Adjust font size if needed. The default works for standard documents. Increase for large-format PDFs.
- Click Add Page Numbers. pdf-lib processes the file in memory. Processing takes seconds even for large documents.
- Download the numbered PDF. Click Download. The file is served from browser memory as a Blob. Open it in any PDF viewer β the page numbers are selectable text.
When to use a custom start number
The start number feature is essential for documents that are not standalone. Here are the most common cases:
Thesis and dissertation chapters
Academic theses are often assembled from separate chapter PDFs before final submission. If your chapter 3 begins at page 47 in the full document, you upload only chapter 3's PDF but set the start number to 47. The resulting PDF will show 47, 48, 49... on its pages, matching the table of contents when the thesis is assembled.
Legal briefs and court filings
Legal submissions frequently consist of a main brief plus separately paginated appendices, with each appendix continuing the page count from the previous section. Setting the correct start number ensures attorneys and judges can reference "page 112" unambiguously regardless of which section they are in.
Contract appendices and addenda
A 12-page main contract followed by a 4-page appendix A and a 7-page appendix B should have continuous pagination (1β12, 13β16, 17β23) if the parties want to reference page numbers unambiguously. Upload each PDF section separately, setting the appropriate start number for each.
Report sections assembled from multiple sources
When a final report is assembled from PDFs contributed by different team members or departments, each section needs to know its starting page before page numbers are added. The start number field handles this precisely without requiring any desktop software.
Browser-based vs upload-based page numbering tools: honest comparison
Here is an objective comparison across the dimensions that matter when choosing a tool to add page numbers to a PDF:
| Dimension | Upload-based (iLovePDF, Smallpdf, Adobe Online) | Browser-based (SammaPix) |
|---|---|---|
| Privacy | File uploaded to a remote server. You trust their security and deletion policies. | File never leaves your device. Verifiable via browser Network inspector. |
| Page number type | Varies. Some tools rasterize; others write vector text. | Always vector text via pdf-lib. Selectable, searchable, infinitely sharp. |
| Custom start number | Available on some paid plans. Often not available on free plans. | Always available. Free. |
| Number formats | Varies by tool. Not all support current/total or written-out format. | Three formats: plain number, current/total, and Page N of N. |
| Original content preserved | Usually, but some tools re-export the PDF, which can alter fonts or images. | Yes. Only a new content layer is added. Links, forms, and fonts are untouched. |
| File size change | Varies. Some tools re-render the PDF, which can increase size significantly. | Negligible. Only a few kilobytes added for the font and text objects. |
| Signup required | Often required beyond basic free use. | No account required. |
| Works offline | No β requires a server connection. | After the page loads, numbering works without an internet connection. |
How to verify no upload happens
You do not need to take my word for it. Here is how to verify this yourself in under two minutes:
- Open DevTools. Press F12 (Windows/Linux) or Command Option I (Mac) in your browser. On Safari, enable the Develop menu first in Settings β Advanced.
- Go to the Network tab. Click the Network panel. Clear any existing requests using the clear button.
- Drop your PDF and click Add Page Numbers. Watch the Network panel throughout.
- Observe: no outgoing requests. You will see no network activity during numbering or download. The only requests visible are the initial page load assets. Nothing carries your file to any server.
This is the same verification method security researchers use to audit tools that claim to be privacy-safe. It is straightforward and conclusive. If no request carries your PDF bytes outbound, the file stayed on your device.
Your PDF stays on your device
No upload, no account, no server. Vector text page numbers, six positions, three formats, custom start number. Free.
Other PDF tools that run in your browser
SammaPix offers a full suite of browser-based PDF tools, all with no upload and no server processing. Here is how they complement page numbering:
- PDF Page Numbers: add page numbers in any position and format, with custom start numbers. Vector text, no upload.
- PDF Unlock: if your PDF has modification restrictions, remove them here first before adding page numbers. See Unlock a PDF online without uploading it.
- PDF Merge: combine the chapter or section PDFs first, then add page numbers to the merged document for continuous pagination.
- PDF Split: extract a section before numbering it, if you only need to number certain pages rather than the whole document.
- PDF Compress: reduce the file size of the numbered PDF before sending it. See Compress a PDF online without uploading it.
- PDF Rotate: fix page orientation before numbering to ensure numbers appear correctly on all pages.
All your PDF needs, all in-browser
Number, unlock, compress, split, merge, and rotate PDFs without uploading them anywhere. All tools run locally in your browser via pdf-lib. No server. No signup. No watermark.
FAQ
Does adding page numbers to a PDF online require uploading the file?
With most tools, yes. iLovePDF, Smallpdf, and Adobe Online upload your PDF to their servers for processing. With SammaPix PDF Page Numbers, no. The numbering runs entirely in your browser using pdf-lib, an open-source JavaScript library for reading and writing PDFs. Your file never leaves your device. You can verify this by opening your browser's Network inspector (F12) and watching for outgoing requests while the tool processes your file. You will see none during the numbering or download step.
Are the page numbers selectable text or just an image stamped on the PDF?
The page numbers are real selectable vector text, not a rasterized image. pdf-lib writes the numbers directly into the PDF's content stream as text objects using a standard font. This means you can select and copy a page number in any PDF viewer, the numbers are searchable, they remain sharp at any zoom level (they do not pixelate), and their file size contribution is minimal β a few kilobytes for the entire document regardless of page count. This is the key technical difference from tools that screenshot-stamp or flatten the numbering as an image layer.
What page number formats are available?
The tool supports three formats. The first is a plain number: 1, 2, 3. This is the most common format for books, reports, and contracts. The second is current of total: 1 / 14, 2 / 14. This is useful for documents where readers need to know how many pages remain β legal submissions, proposal decks, and meeting handouts. The third is written out: Page 1 of 14, Page 2 of 14. This is preferred for formal documents like academic theses, grant applications, and court filings where the format is specified by style guidelines.
What positions can I place the page numbers in?
The tool supports six positions: bottom-center (the default, used in most academic and legal documents), bottom-right (common in reports and business proposals), bottom-left, top-center, top-right, and top-left. Each position is calculated with appropriate margin from the edge so numbers do not overlap with content. If your PDF has a header or footer with existing content, choose the opposite edge to avoid overlap.
Can I start the page numbers from a number other than 1?
Yes. The start number field lets you set any starting value. This is essential for documents that are part of a larger sequence: a thesis chapter 3 that runs pages 47 through 89, a contract appendix where page numbering continues from the main document, a report section that needs to match an existing table of contents, or a legal brief where court rules require continuation from the prior filing. Set the start number to whatever value the first page of this PDF should display.
Does adding page numbers change the existing content of the PDF?
No. pdf-lib adds a new content layer on top of each page for the number text. The original page content β text, images, fonts, links, form fields, and page dimensions β is completely unchanged. The file size increases by a negligible amount (a few kilobytes total for the font and text objects). If your PDF has restrictions on modification, remove them first using the SammaPix PDF Unlock tool, then add page numbers.
How do I verify that no upload happens?
Open your browser developer tools (F12 on Windows and Linux, Command Option I on Mac), click the Network tab, and clear any existing requests. Then drop your PDF into the SammaPix PDF Page Numbers tool, configure your options, and click Add Page Numbers. Watch the Network panel throughout. You will see requests for static page assets when the tool loads. During numbering and the download step, you will see zero outgoing requests. The PDF is read by the FileReader API, processed entirely in memory by pdf-lib, and the output is served as a blob URL β no network call is made at any point.