Add PDF page numbers

Skip covers, choose page ranges and number templates, preview placement and export a numbered PDF.

  • Runs locally
  • Free

Use the tool

Your files are processed in your browser and are not uploaded to a server.

About this tool

Add page numbers to a PDF: skip covers, choose ranges and a starting number, use templates like “Page 1 of N”, set header or footer position, font size, margins and color, and preview different pages.

Typical uses

  • Number a thesis or tender document
  • Start numbering after the cover and contents
  • Place numbers differently on odd and even pages for duplex printing

How to use

  1. Upload a PDF, select a range, skipped pages and a starting number. Number selected pages sequentially or follow source page positions.

  2. Choose a template, header or footer placement, font size, margins and color. Preview different pages, then generate and download.

Example

For a 12-page report, skip the first 2 pages and start at 1. Choose 1 / 10 format. Preview source page 3 as 1 / 10 and source page 12 as 10 / 10, then download.

Good to know

Up to 80 MB, 300 source pages, 200 numbered pages per run and 100 MB output. Unselected pages stay; existing numbers are not removed. The denominator is the final number; duplex sides use source page parity. New numbers are images using local fonts. Encrypted PDFs are unsupported; existing digital signatures become invalid. Presets exclude ranges and custom text.

Ranges refer to source pages and unselected pages remain. Existing numbers are not replaced. Presets save styling options only. New numbers are images while source text remains selectable; existing digital signatures become invalid.

Number formats and templates: actual output

Take a 12-page report whose cover and contents page should stay unnumbered: set “Skip first pages” to 2 and leave the rest at the defaults (start at 1, Sequential selected pages). Source pages 3–12 receive numbers, {n} runs from 1 to 10, and {end} is the final number, 10, not the 12 pages of the file. {page} and {pages} always give the source page and the source page count. The table is generated by the tool’s own functions.

FormatTemplateSource page 3Source page 12Source page 3 (follow source pages)
1{n}1103
1 / 10{n} / {end}1 / 1010 / 103 / 12
English: Page 1 / 10Page {n} / {end}Page 1 / 10Page 10 / 10Page 3 / 12
Chinese: 第 1 / 10 页第 {n} / {end} 页第 1 / 10 页第 10 / 10 页第 3 / 12 页
CustomPage {n} of {end}Page 1 of 10Page 10 of 10Page 3 of 12
Custom- {n} -- 1 -- 10 -- 3 -
Custom{n}/{end} · {page}/{pages}1/10 · 3/1210/10 · 12/123/12 · 3/12
Custom{n} ページ1 ページ10 ページ3 ページ
CustomPage {n} sur {end}Page 1 sur 10Page 10 sur 10Page 3 sur 12
  • The built-in English format is “Page 1 / 10”. For “Page 1 of 10”, choose Custom template and enter Page {n} of {end}.
  • Templates accept only the four tokens {n}, {end}, {page} and {pages}, case-sensitive; any other brace, a line break or a control character is rejected. “Page {N}”, “{total}”, “Page {n”, “{n}↵{end}” all produce “Use a single line of 1–100 characters. Supported tokens: {n}, {end}, {page}, {pages}.”
  • A template can be up to 100 characters, and any script works, for example 第 {n} 页 or {n} ページ.

Which pages get a number, and which number

  • The order typed in “Number these source pages” does not matter; pages are always taken in source order. In a 12-page file, 8,2-5,3 with 2 skipped pages numbers pages 3, 4, 5, 8.
  • With “Sequential selected pages”, pages left out of the range do not use up numbers: in that example source page 8 shows 4 / 4. With “Follow source pages (start = source page 1)” it shows 8 / 8.
  • Skipping is applied after the range. A range of 1-2 with 2 skipped pages leaves nothing to number and gives “No pages remain after skipping covers. Check the range.”
  • A “Starting number” of 10 makes the first numbered page show 10. When following source pages, the starting number belongs to source page 1: with a start of 0, source page 3 shows 2. To make the first body page read 1, use sequential numbering.
  • Pages that are not selected or are skipped stay in the output unchanged; previewing them shows “This page stays unchanged, without a number.” The source may have up to 300 pages, and up to 200 pages can be numbered per run.

Position, margin and size in real units

The margin is entered in millimetres and converted at 1 in = 25.4 mm = 72 pt, measured from the page edge to the edge of the number image. The default 8 mm is about 22.68 pt.

MarginIn points
0 mm0 pt
8 mm22.68 pt
10 mm28.35 pt
15 mm42.52 pt
20 mm56.69 pt

The number image has 4 pt of padding on every side and is font size × 1.35 + 8 pt tall, rounded up. With the default 10 pt footer the image is 22 pt tall, so the digits sit at least 4 pt further from the paper edge than the margin says; because the line height is 1.35×, a footer has even more space below the digits.

Font sizeImage heightAbout
8 pt19 pt6.7 mm
10 pt22 pt7.76 mm
12 pt25 pt8.82 mm
36 pt57 pt20.11 mm
Source pageDuplex insideDuplex outside
Page 1 (odd)leftright
Page 2 (even)rightleft
Page 3 (odd)leftright
Page 4 (even)rightleft
  • Duplex inside and outside follow the parity of the source page number, skipped covers included. If the cover is printed separately and the body starts on an even page, the sides come out swapped; in that case use fixed left and right positions in two runs.
  • Positions are worked out on the page as displayed: on pages with a rotation (/Rotate), a crop box or a UserUnit, the footer still lands at the bottom of the page as you see it.
  • If the image’s width or height plus the margins on both sides exceeds the page, you get “The number does not fit on a page. Reduce the font, text or margin.”

What it means that numbers are added as images

  • Each number is drawn on a browser canvas at double resolution (2 px per point, 144 ppi), saved as PNG and placed on the page. The font is the first available of system-ui, -apple-system, Segoe UI, Microsoft YaHei and sans-serif, so the digits can look different when generated on Windows, macOS or a phone.
  • The numbers are not text: reading the output with the PDF to text tool does not return them (our test checks this), and searching for “7” in a viewer will not find the new number.
  • Existing page numbers, text, form appearances and bookmarks are kept. Old numbers are not detected or removed, so if the file already has numbers both will show. The document title and other properties are kept.
  • Existing digital signatures become invalid after the change; encrypted PDFs give “Encrypted or password protected PDFs are unsupported.” The output is named like Q3_report_final_-numbered.pdf.

Messages and what to do

MessageCauseWhat to do
The source document may have up to 300 pages.The source has more than 300 pages.Split it and number each part. Note that “follow source pages” then restarts at page 1 of each part.
Number up to 200 pages at once. Select a smaller range.More than 200 pages to number.Number in two runs; in the second, set the starting number to the last number of the first run + 1.
No pages remain after skipping covers. Check the range.The skipped pages cover every page in the range.Skip fewer pages or widen the range.
Enter valid source pages, such as 2-5,8.The range contains 0, a page past the end, a reversed range or a typo.Write it as 2-5,8.
Use a single line of 1–100 characters. Supported tokens: {n}, {end}, {page}, {pages}.The template is empty, over 100 characters, has a line break or an unknown token.Use only {n}, {end}, {page} and {pages}.
The number does not fit on a page. Reduce the font, text or margin.Font size or margin too large for a small page, or a long template.Reduce the font size or margin, or shorten the template.
Check the starting number, font size, margin and skipped pages.Font size outside 8–36, margin outside 0–50 mm, starting number outside 0–1,000,000, or an invalid skip count.Correct the field.

Frequently asked questions

Are existing page numbers removed?

No. New numbers are added on top and existing ones remain.

How is “of N” calculated?

N is the final numbered total, not the original page count.

What are the limits?

Up to 80 MB and 300 pages, numbering up to 200 pages per run. Encrypted PDFs are unsupported and existing signatures become invalid.