BrowserTools
Advertisement
Home / PDF / Add Page Numbers to PDF

Add Page Numbers to PDF

Stamp page numbers like 3 / 12 onto every page of a PDF, with a choice of corner positions, locally in your browser.

Loading Add Page Numbers to PDF… If nothing happens, please enable JavaScript.

Page numbers are the quiet workhorses of any multi page document. They let a reader cite a passage, reassemble a printout that fell out of order, confirm that nothing is missing, and follow a table of contents. Yet a surprising number of PDFs arrive without them. A document assembled by merging several files loses any consistent numbering, an exported slide deck or scan often has none at all, and a contract built from separate sections may restart numbering partway through. Adding a single clean sequence across the whole file solves all of these at once.

Frequently asked questions

Are my files uploaded to a server?
No. Page numbers are drawn entirely inside your browser using pdf-lib. Your PDF is read from your local disk, the numbers are added to each page in memory, and the finished file is downloaded directly to your device. No data is ever sent over the network, so confidential documents stay private.
Can I show the total number of pages too?
Yes. A checkbox switches between a plain page number, such as 3, and the current and total form, 3 / 12. The total form is helpful for printed handouts and reports because it lets readers confirm at a glance that they have the complete document and nothing is missing.
Where on the page can the numbers be placed?
You can choose bottom center, bottom right, or top right. Bottom center is the traditional book and manuscript position, bottom right is common in business and legal documents, and top right is useful when the foot of the page already contains a footer, date stamp, or other text you do not want to overlap.
Does the numbering follow the document's own printed page numbers?
No. The numbers count the physical pages in the file, starting at 1 for the first page and increasing by one for each following page. They do not read any page numbers printed inside the document, so if your file has front matter or a cover, the stamped sequence may differ from numbers already shown in the content.
Will adding page numbers change the rest of the document?
No. The original text, images, and vector graphics are left untouched. The page number is simply drawn on top in a vector font, adding no compression artefacts and only a negligible amount to the file size. Everything underneath stays exactly as sharp as it was in the source PDF.
Are the page numbers permanent in the output file?
Yes. Each number is written into its page's content stream, so it is part of the page itself in the downloaded file rather than a removable annotation. It will display and print in any PDF viewer, including Acrobat, Preview, Edge, Chrome, and mobile readers, without any further adjustment.
Do the numbers position correctly on mixed page sizes?
Yes. The position is calculated separately for each page from that page's own width and height, so a document that mixes portrait and landscape pages, or pages of different sizes, still gets numbers placed correctly in the chosen corner of every page.
What input file formats does the tool accept?
It accepts standard PDF files (.pdf) compatible with PDF versions 1.0 through 2.0. Documents from Word, LibreOffice, Google Docs, Acrobat, design tools, scanners, and browsers all work. Image only scanned PDFs are numbered the same way, since the number is drawn over whatever the page contains.
Can I add page numbers to many PDFs at once?
The browser interface handles one file at a time. For bulk numbering, pdf-lib is available as an npm package and can be scripted in Node.js to add a consistent sequence across hundreds of files automatically. The logic is identical to what powers this browser tool.

About Add Page Numbers to PDF

This tool stamps a page number onto every page using pdf-lib. You can show just the current page, for example 3, or the more informative current and total form, 3 / 12, which immediately tells the reader how much is left. You choose where the number sits: bottom center, the classic book position, bottom right, common in reports and legal filings, or top right, useful when the bottom of the page already carries a footer. The number is drawn in the embedded Helvetica standard font in a dark gray that prints cleanly without dominating the page.

All of the work happens in your browser. The PDF is read from your local disk, each page number is drawn into the page content in memory, and the finished document downloads straight back to you. Nothing is uploaded, so confidential reports, signed agreements, and internal drafts never leave your machine. Because the numbers become part of the page content rather than a separate annotation, they appear in every viewer and on every printed copy, and the tool keeps working offline once it has loaded.

The Invention of the Page Number, and Why It Took So Long

For most of the history of the written word, documents had no page numbers at all. Ancient scrolls were continuous and had nowhere obvious to number, and even early bound books, or codices, relied on other devices to keep their order. Scribes used catchwords, writing the first word of the next page at the foot of the current one, and signatures, letters marking each gathering of folded sheets, so a bookbinder could assemble them correctly. These were aids for production rather than navigation for the reader.

Numbering individual pages with arabic numerals became widespread only after the printing press arrived in the fifteenth century, and even then printers first numbered leaves, called folios, rather than each side of the page. The shift to foliation and then to true pagination, a number on every page, was driven by the rise of indexes and cross references. Once scholars wanted to point precisely to a location in a text, a reliable per page number became indispensable, and the convention of the table of contents and the back of book index grew up alongside it.

Digital documents inherited all of this and added new wrinkles. A PDF has no inherent notion of a printed page number, only an ordered list of page objects, which is why numbers must be drawn on explicitly. Word processors complicate matters further with fields that can restart numbering, use roman numerals for front matter, or suppress the number on a title page. When such a document is exported to PDF those rules are flattened into static text, which is exactly why a tool that stamps a fresh, consistent sequence is so useful after merging or assembling files from different sources.

Advertisement
Advertisement
Advertisement