DEV Community

Edward Chapman
Edward Chapman

Posted on

Adding page numbers to PDFs in your browser

Adding page numbers to PDFs in your browser

Page numbers make a PDF easier to discuss. Instead of pointing someone to a section and asking them to search for it, you can say "see page 12". That is useful for contracts, reports, application packs, technical documents, and anything else that gets reviewed by more than one person.

You can add visible page numbers without installing desktop software or sending the document to a server.

How the browser workflow works

The browser reads the selected PDF, adds a label to each page, and creates a new file for download. The original file stays on your computer while the work is being done.

The basic steps are:

  1. Select a PDF from your device.
  2. Choose the first page number.
  3. Choose where the label should appear.
  4. Generate and download the numbered PDF.

The page number is added as visible text. It does not depend on the source PDF already containing selectable text, so the same approach also works for scanned PDFs. It adds numbering only. It does not perform OCR or turn a scan into searchable text.

Choosing a position

The most common choice is the bottom centre of the page. Bottom right is useful for documents that already have centred footer content. A top position can work better when the footer contains a disclaimer, signature block, or other fixed text.

The available positions are:

  • Bottom centre
  • Bottom right
  • Top centre
  • Top right

You can also set the first number. For example, entering 3 produces Page 3 of 10 on the first page and continues from there. This is useful when a cover sheet or an earlier section belongs to the same document but is not part of the file you are processing.

File limits

Browser processing is a good fit for one small or medium-sized PDF. The tool accepts one file up to 50 MiB and 50 pages. Larger documents can use more memory and take longer to process, so a desktop or command-line workflow may be a better choice for them.

The tool does not upload or save the selected PDF. The file content stays in the browser, and the output is downloaded back to your device. This makes the workflow useful for documents that you do not want to hand to an online conversion service.

You can add page numbers to a PDF in your browser if you want to try the workflow.

When another tool is a better fit

Adding page numbers is a narrow job. Use a different workflow when you need to:

  • Add OCR to a scanned document
  • Number hundreds of pages or process many files in one batch
  • Create complex headers and footers
  • Edit existing PDF text
  • Apply document-specific numbering rules across several files

For a single PDF under the file limits, a browser tool is usually quicker than installing software or writing a script. The original remains available on your device, and you can check the downloaded copy before sharing it.

Top comments (0)