Main Menu
Home About Blog Contact Pricing
Account
Login Sign up
Browse Categories
PDF Tools 22 tools Image Tools 17 tools Design Tools 6 tools Keywords Tools 9 tools Data Converters 2 tools E-Commerce Tools 9 tools Text Tools 11 tools Time and Date Tools 4 tools Document Tools 2 tools Number and Math Tools 5 tools Security and Utility Tools 5 tools AI Tools 3 tools All Calculators 12 tools Shopping Calculators 3 tools Business Calculators 9 tools Bank and Pin Code Finder 4 tools ZIP File Tools 19 tools
Connect

Add Page Numbers to PDF Online Free

Basic This tool stays free and works without a paid subscription.

Interactive tool area: Run the full Add Page Numbers to PDF Online Free workflow below, then review the guide and FAQs further down this page.

Rate This Tool

4.5 / 5 • 2 ratings

About Add Page Numbers to PDF Online Free

What does Add Page Numbers to PDF Online Free do?

Add custom page numbers to a PDF locally with flexible ranges, styles, positions, tokens, colors, and live previews.

Add Page Numbers in PDF Without Uploading the File

This tool lets you add page numbers in PDF files while choosing which pages receive a mark, what the displayed sequence starts with, and how each number looks. It adds a new text layer with pdf-lib instead of turning pages into images. As a result, the original page stays in its PDF form and the new number remains text.

You can number every page from a chosen point, only odd or even PDF pages, or a custom list such as 2-5, 8, 11-14. You can also build labels like “Page 3 of 20,” use Roman or alphabetic styles, and place the text in nine page regions. The PDF stays in your browser throughout the job.

Before You Add Page Numbers in PDF, Separate Two Values

A PDF page index means the page's physical position in the file. The first PDF page is index 1 for the controls, even if that page is a cover with no printed number. A displayed number is the text you choose to add. Those two values don't have to match.

For example, you can begin on PDF page 4 but set the first displayed number to 1. The first three physical pages remain unmarked, while the fourth page shows 1. The fifth page then shows 2 if it is included in the selected sequence.

This tool writes visible text onto the page. It doesn't change PDF navigation labels, which are a separate feature. Adobe's PDF page-label documentation describes labels used by a viewer. Here, the chosen text becomes part of the page itself.

Good to know

Decide two things separately: which physical PDF page should receive the first mark, and what number should appear there. If a report has a cover, contents page, and preface, you might start on PDF page 4 while displaying Arabic number 1.

How the Add Page Numbers in PDF Tool Works

You select or drop one PDF. PDF.js reads it and supplies the page previews. When you apply the settings, pdf-lib adds the chosen number text as a new layer and creates a new PDF for download. The pages aren't rasterized, and the tool doesn't run OCR.

No OCR means the tool doesn't try to recognize text, find a footer, detect a chapter, or decide which pages are blank. It follows your page selection and layout settings. Existing headers and footers aren't edited. If an old number already exists, the new mark may sit near it or over it unless you choose another position.

Your device handles PDF reading, previews, font drawing, and output creation. Large or complex files may need more memory and time.

Select Pages When You Add Page Numbers in PDF

Number all pages from a chosen PDF page

This mode is useful when front matter should remain unmarked. Choose the physical PDF page where numbering begins. Every page from that point onward receives the next displayed value. The tool won't detect the cover or contents page for you, so count the source pages carefully.

Number odd or even PDF pages

Odd and even selection refers to physical PDF positions: odd mode targets 1, 3, 5, and so on, while even mode targets 2, 4, 6, and so on. A cover can shift the relationship with printed numbers already on the pages. Check the source order before processing.

Use custom pages and ranges

Custom selection accepts comma-separated pages and ranges, such as 2-5, 8, 11-14. This example targets pages 2, 3, 4, 5, 8, 11, 12, 13, and 14. It doesn't tell the tool to discover sections or skip blank pages automatically.

Custom ranges suit appendices, inserted forms, or title sheets. Review each boundary because a typo can change the target or point outside the document.

Set the Sequence When You Add Page Numbers in PDF

The first displayed number controls the value placed on the first selected page. It doesn't have to equal that page's PDF position. If your selected pages begin at PDF page 6 and the first displayed number is 1, page 6 receives 1.

The sequence follows the selected numbered pages. Suppose you select custom pages 2, 4, 8 and start at 10. The marks become 10, 11, and 12 on those three pages. Unselected pages don't consume a displayed number in that sequence.

This distinction affects [T], which can represent all document pages or only selected numbered pages. Pick the meaning your reader expects.

Choose Styles When You Add Page Numbers in PDF

Arabic style produces familiar values such as 1, 2, and 3. Upper Roman produces I, II, and III, while lower Roman produces i, ii, and iii. Roman numerals are often useful for front matter, though the tool won't decide where front matter ends.

Upper alphabetic style produces A, B, and C, while lower alphabetic produces a, b, and c. After Z, labels need more than one letter. The extra width can affect right-aligned text, backgrounds, and narrow margins.

Preview early and late values. “A” may fit while “AA” or a long Roman value reaches nearby content. Style changes the space needed by the text.

Build Labels When You Add Page Numbers in PDF

The text format can include [P] for the current displayed number. A simple format of [P] prints only the changing value. A format such as Page [P] adds fixed text before it.

Use [T] when the label should show a total. For example, Page [P] of [T] can produce “Page 4 of 18.” You choose whether [T] means every page in the PDF or only the selected pages that receive numbers.

A 30-page file with ten selected appendix pages can show a total of 30 or 10. Use the document total for a location within the whole PDF. Use the selected total when the subset has its own sequence.

Place Numbers in Nine Page Regions

Vertical placement can be top, middle, or bottom. Horizontal placement can be left, center, or right. Combining them gives nine regions, from top-left to bottom-right. The middle positions are useful for side labels, while top and bottom positions suit common header and footer layouts.

Horizontal and vertical margins move the text away from the chosen edge. A larger bottom margin raises a footer, while a larger right margin moves right-aligned text inward. The tool doesn't find an empty spot, so preview pages with footers, charts, or signature lines.

Rotation Helps With Sideways and Landscape Pages

Text rotation options are 0, 90, -90, and 180 degrees. Zero keeps the number upright in the page's normal coordinate system. Positive or negative 90-degree rotation places it vertically in opposite directions. A 180-degree mark is upside down relative to the normal page view.

Rotation helps with landscape inserts or side labels, but it changes only the number text, not the page. Mixed orientations need a full preview check. If one group needs another layout, process separate page groups.

Control Font, Size, Color, and Emphasis

You can choose Helvetica, Times, or Courier. Helvetica gives a clean sans-serif look, Times has a serif style, and Courier uses fixed-width characters. These built-in choices avoid the need to upload a custom font.

Font size ranges from 6 to 96 points. Small text suits quiet footers but can be hard to read. Large text works for proof copies yet may cover content. Bold helps a light mark stand out.

Text color should contrast with the page. Black or dark gray often works on white paper, while a light color may suit a dark scan. Opacity lets the page show through the number. Very low opacity can look subtle in preview but vanish in print or on a low-quality screen.

Optional Backgrounds Improve Contrast

A background color can place a colored area behind the text. Background opacity controls how strongly that area covers the page below. This can keep a number readable over photos, scans, maps, or shaded footers.

Use the background with care. An opaque box may hide a signature or footnote, while low opacity may give too little contrast. Long labels also need more room. Inspect a late page rather than judging only the first preview.

Preview Before You Add Page Numbers in PDF

The preview includes previous and next controls, so you can move through the PDF before creating the output. Use it to check position, margins, font, color, opacity, rotation, and token results. Pay special attention to the first and last selected pages.

PDF.js supplies the preview, which has a 24-million-pixel limit. Very large pages may be rejected. The download still needs review because a preview can't reveal every print or signature issue.

Check mixed page sizes. A margin may look balanced on A4 pages but sit too close on a smaller insert. Inspect portrait, landscape, rotated, and scanned pages.

A Report Example: Add Page Numbers in PDF

Suppose a 36-page report contains a cover, a contents page, and two unnumbered opening notes. The main report begins on physical PDF page 5. You want that page to display “Page 1 of 32,” followed by the same pattern through the rest of the report.

Example

Select all pages beginning with PDF page 5 and set the first displayed number to 1. Use Arabic style and the format Page [P] of [T]. Set [T] to selected numbered pages, choose bottom-center, and adjust the vertical margin so the label clears the existing footer. Preview page 5, a middle page, and page 36 before download.

The tool won't infer that four opening pages should be skipped. You supply that decision. If the report includes a landscape chart on page 22, inspect it separately. You may need another position or a separate processing pass for that page.

Privacy When You Add Page Numbers in PDF

PDF.js, pdf-lib, and browser code handle the document on your device. The PDF isn't uploaded to a server for numbering. This is useful for ordinary private drafts because the file stays in the browser during processing.

Use a trusted device, protect the download, and clear files from a shared computer. The browser also needs enough memory for the source, previews, and output.

Yes

The selected PDF stays on your device while the browser reads it, renders previews, adds the new text layer, and creates the download. No OCR or server upload is used. Large documents still depend on your device's available memory and browser stability.

Browser Memory Sets the Practical Limit

The current interface doesn't advertise a fixed maximum file size, page count, preview-pixel total, memory allowance, or output size. Still, there are practical limits. PDF.js must read and preview the source, while pdf-lib must hold the document and build the numbered copy in your device's memory.

A large scan or a PDF with complex drawings, fonts, transparency, or many pages can slow the tab or fail even when the source file doesn't look unusually large. Available memory varies across phones, tablets, desktop browsers, and other open tabs.

Watch for this

The page doesn't promise that every PDF will complete. Password-protected, damaged, very large, or unusually complex files may fail. Close unused tabs or split a lawful working copy when memory is tight. Adding any number rewrites the file and can affect an existing cryptographic signature.

Encrypted, Damaged, and Complex PDFs

Password-protected PDFs aren't supported because the browser can't safely process their pages without access. Remove protection in a trusted desktop application only if you have the right to change the file. Don't send a confidential document to an unknown service just to remove its password.

A damaged PDF may have broken page objects, invalid references, or incomplete data. Some viewers repair such files while opening them, but that doesn't mean a numbering library can rebuild them. Save a clean copy from a trusted PDF editor, then try that copy.

Very large or complex PDFs can fail even when the source size seems manageable. Transparency, huge drawings, unusual fonts, or heavy page resources raise memory use. Try a smaller lawful working section when the document can be split.

Digital Signatures Need Special Care

A cryptographic PDF signature checks whether the signed file has changed. Adding visible page-number text changes the document's bytes. A viewer may therefore mark the existing signature as invalid or show that the document was modified after signing.

Don't promise signature preservation merely because the original page content isn't rasterized. The added layer is still a document change. When possible, add page numbers first, review the final PDF, and apply signatures afterward.

For contracts, court records, or signed forms, keep the signed original unchanged. Ask whether a separate numbered reference copy is acceptable. This tool doesn't decide legal validity.

Troubleshooting After You Add Page Numbers in PDF

The wrong page shows the first number

Recheck the physical PDF page index. Count covers, inserts, and blank pages from the start of the file. Then set the first displayed number separately. Don't use an existing printed number as proof of the page's physical position.

The total in [T] isn't what you expected

Check whether [T] is set to all document pages or selected numbered pages. A custom subset can produce a much smaller selected total. Choose the one that makes sense to the reader, then inspect the first and last marks.

The number overlaps existing content

Change the position, margins, font size, rotation, or background. Preview pages with headers, footers, signatures, and charts. The tool doesn't find clear space or remove an old page number automatically.

The style becomes too wide later

Roman and alphabetic sequences can grow in length. Arabic totals also widen as digits are added. Check late pages and reduce the font size, shorten the fixed text, or move the label inward.

The browser rejects or stops processing

Close unused tabs and retry with a smaller lawful working copy. If the PDF is damaged, encrypted, or too complex, create a clean open copy in trusted software or split it into smaller parts.

Download After You Add Page Numbers in PDF

After processing, download the new PDF and keep the original. Open the result in a normal PDF viewer. Check the first selected page, skipped pages, range boundaries, late sequence values, mixed orientations, and any page with important edge content.

Test text selection and key links. The tool adds a text layer rather than rasterizing pages, but every important document still needs a manual check.

For print use, inspect a printed sample. Margins that look safe on screen can sit close to a physical trim edge. For legal or signed material, follow the signature guidance before distributing the numbered copy.

Related PDF Tools

Frequently Asked Questions

Is my PDF uploaded when I add page numbers?

No. PDF.js supplies previews and pdf-lib adds the number text in your browser. The PDF stays on your device during processing and download creation.

Can I use a password-protected PDF?

No. Encrypted and password-protected PDFs aren't supported. Remove protection in a trusted desktop application only if you have permission to modify the document.

Will adding page numbers invalidate a digital signature?

It can. Adding a new text layer changes the PDF's bytes, so a viewer may mark an existing cryptographic signature as invalid or modified. Number the PDF before signing when possible.

Can numbering start at 1 on PDF page 5?

Yes. Select numbering from physical PDF page 5 and set the first displayed number to 1. The earlier four pages can remain unmarked.

What do [P] and [T] mean?

<code>[P]</code> inserts the current displayed number. <code>[T]</code> inserts either the total document pages or the total selected numbered pages, depending on your setting.

Can I number only custom pages?

Yes. Enter individual pages and ranges such as <code>2-5, 8, 11-14</code>. The tool follows your list and doesn't detect blank pages or document sections on its own.

Does the tool replace existing headers, footers, or page numbers?

No. It adds a new visible text layer. Choose the position and margins carefully so the new mark doesn't overlap existing content.

Why should I preview late alphabetic or Roman numbers?

Those values can become wider as the sequence grows, especially after Z in alphabetic styles. Check later pages for overlap, clipping, and background width.

Discussion

No comments yet. Be the first to comment!

Try other tools

Find more PDF, image, calculator and utility tools. Check each tool's access label for free or premium availability.

Browse all tools Read the blog