How to Add Page Numbers to a PDF: Format, Pages and Position

The page and its number sit side by side, so every choice shows on a real page before anything is saved. Here is how to open a PDF, pick a format and a start number, leave out the cover or any other pages, place and style the number, check a few pages and download the numbered copy.

PDF Head's page numbering editor: a page with its number drawn on, a pager and zoom under it, and format, pages, position and style settings above Download Numbered PDF. PDF Head's page numbering editor: a page with its number drawn on, a pager and zoom under it, and format, pages, position and style settings above Download Numbered PDF.

Tools used in this guide

1. Open your PDF

Add Page Numbers opens on a drop area. Drag a PDF onto it, or use Choose PDF at marker 1.

The Add Page Numbers drop area, with marker 1 on the Choose PDF button and marker 2 on the sample PDF button beside it. The Add Page Numbers drop area, with marker 1 on the Choose PDF button and marker 2 on the sample PDF button beside it. Open this screenshot at full size in a new tab
  1. Choose PDF. Pick one PDF from your device, or drop it anywhere on this area. PDFs of up to 1,500 pages open here.
  2. Try a sample PDF. Loads the eight-page quarterly report used in every screenshot here, so you can follow along without a file of your own.

The tool works on one PDF at a time; if you drop several files, it opens the first PDF among them and says so. PDFs of up to 1,500 pages open here; a longer one is turned away with a link to Split PDF, which can cut it into parts that fit. A PDF locked with a password, to open it or to change it, can’t be numbered here: the message links to Unlock PDF, which removes restrictions with nothing to type, and an opening password when you know it. A PDF that carries a digital signature opens with a notice instead, because the numbered copy is a changed file and the signature won’t validate in it.

Everything happens in the tab you already have open: the PDF never leaves your device. To follow along without a file of your own, Don’t have a PDF? Try a sample PDF at marker 2 loads the eight-page quarterly report used in every screenshot below: a cover, a contents page and pages of different sizes, one of them stored on its side.

Once the PDF is open, the editor takes the whole window. The page is on the left, drawn with its number on it; the settings are in a panel beside it (under it on a phone), in five sections: the number format with Start at, Pages to number, Position, the look of the number (font, size, colour and opacity) and Advanced, with Download Numbered PDF at the foot. In a window narrower than 1024 px the five become tabs: Format, Pages, Position, Style and More. Every change shows on the page at once, and nothing is written to a file until you download.

2. Pick a number format

Number format, at marker 1, offers nine choices, and each chip prints what it shows: plain numbers, lowercase or uppercase Roman numerals, letters (A, B, C, then AA, AB after Z), Page 1, 1 / 10, Page 1 of 10, - 1 - and Custom. The figure has Page 1 of 10 chosen.

The Number format section with Page 1 of 10 chosen: the nine format chips marked 1, the Custom chip marked 2 and the Start at stepper, set to 1, marked 3. The Number format section with Page 1 of 10 chosen: the nine format chips marked 1, the Custom chip marked 2 and the Start at stepper, set to 1, marked 3. Open this screenshot at full size in a new tab
  1. Number format. Nine choices, from 1, 2, 3 and Roman numerals to Page 1 of 10 and Custom. Each chip prints what it shows; the 10 in the two chips with a total is only an example.
  2. Custom. Opens a field for a format of your own, such as Report p. {n}/{total}. The next figure shows it.
  3. Start at. The number printed on the first numbered page. Use the minus and plus buttons or type one; 1 is the default.

In the two chips that carry a total, the 10 is only an example. The total is the last number the tool prints, not the number of pages in the file: with the cover skipped (step 3), the last page of the sample reads Page 7 of 7, and starting at 5 runs the same pages from Page 5 of 11 to Page 11 of 11.

Start at, at marker 3, is the number on the first numbered page: 1 unless you change it, with the minus and plus buttons or by typing. How far it can go depends on the style: Arabic numerals run from 0 to 999,999, Roman numerals from 1 to 3,999 and letters from A to ZZZ. A number outside that is flagged under the field while you are still in it; click away and the field goes back to the last number that was valid. The last number has to fit too, so a start near the top of the range is refused when too many pages would follow it (Roman numerals from 3995 can’t number 8 pages): the message says to start lower or number fewer pages, and Download Numbered PDF stays faded until you do.

Write your own format

Custom, at marker 2, opens a field for a format of your own.

The Custom format section: a field holding Report p. {n}/{total} marked 4, the {n} and {total} buttons marked 5 and the four Number style chips marked 6. The Custom format section: a field holding Report p. {n}/{total} marked 4, the {n} and {total} buttons marked 5 and the four Number style chips marked 6. Open this screenshot at full size in a new tab
  1. Custom format. Type any text, with {n} where the page number goes and {total} for the last number. The page on the stage changes as you type.
  2. {n} and {total}. Each button puts its placeholder in the field for you, so you never type the braces. To print a brace itself, type {{ or }}.
  3. Number style. How {n} and {total} are written: 1, 2, 3, i, ii, iii, I, II, III or A, B, C.

The field at marker 4, Custom format, opens holding the format you had chosen, Page {n} of {total}, and keeps your own text if you leave Custom and come back. Type over it: {n} stands for the page’s number and {total} for the last number, and the page on the stage changes as you type. The two buttons at marker 5 put a placeholder in the field, which saves typing braces on a phone; to print a brace itself, type {{ or }}. Number style, at marker 6, decides how both are written: 1, 2, 3, i, ii, iii, I, II, III or A, B, C.

A format needs {n} and can run to 80 characters. Letters with Western European accents (é, ü, ñ, ß), digits and common punctuation print. While you are still in the field it names what is wrong: a format without {n}, a placeholder it doesn’t know, a stray closing brace, or a character the PDF’s fonts can’t draw, such as a Cyrillic or Chinese letter, an emoji, or even a Polish ł or a Czech č. Click away and the field goes back to the last format that worked.

3. Choose which pages get a number

Pages to number starts on All pages. The choices at marker 1 are All pages, Skip cover, Skip last page and Custom; the figure has Skip cover chosen.

The Pages to number section with Skip cover chosen: the four page choices marked 1, and the line 7 of 8 pages get a number: 2-8 marked 2, above the line saying page 2 shows Page 1 of 7. The Pages to number section with Skip cover chosen: the four page choices marked 1, and the line 7 of 8 pages get a number: 2-8 marked 2, above the line saying page 2 shows Page 1 of 7. Open this screenshot at full size in a new tab
  1. Pages to number. All pages, Skip cover, Skip last page or Custom. A page left out gets no number, and the rest are counted from your start number.
  2. Summary. Names the pages that get a number. The line under it says what the first and last of them will show, here Page 1 of 7 on page 2.

The line at marker 2 names the pages that get a number, 7 of 8 pages get a number: 2-8., and the line under it says what the first and last of them will show: here page 2 shows Page 1 of 7 and page 8 shows Page 7 of 7. That is the rule to know before you skip anything: numbers count only the pages that get one, with no gap where a page was left out. If page 2 should read 2 instead, set Start at to 2 in step 2.

A page that gets no number is not just left bare on screen. The preview draws a dashed chip, No number on this page, where its number would have been, so the sample’s cover shows it. Any page a range leaves out does the same.

Number exactly the pages you pick

Custom is for everything else, and opens a Pages field.

The Pages to number section with Custom chosen: the Pages field holding 2-4, 8 marked 3, the summary 4 of 8 pages get a number marked 4 and the Number this page switch marked 5. The Pages to number section with Custom chosen: the Pages field holding 2-4, 8 marked 3, the summary 4 of 8 pages get a number marked 4 and the Number this page switch marked 5. Open this screenshot at full size in a new tab
  1. Pages. Type pages and ranges separated by commas, such as 5-20, 25, 30-35. The change applies a moment after you stop typing.
  2. Summary. Names the pages that get a number, here 2-4, 8. Page 8 is the fourth page numbered, so it reads Page 4 of 4.
  3. Number this page. Turns the number on or off for the page on the stage by editing the range for you, so one page can be fixed without retyping it.

Type pages and ranges separated by commas, as at marker 3: 5-20, 25, 30-35 is the example the field shows, and the figure has 2-4, 8. The change applies a moment after you stop typing. While you are in the field, a piece that isn’t a page number or a range is flagged under it, and so is a page the PDF doesn’t have, such as There is no page 12. This PDF has 8 pages. Click away and the field goes back to the last range that worked. A range that names no page at all, an empty field for instance, is allowed: the summary then reads No page gets a number. and Download Numbered PDF stays faded until you add one.

The summary at marker 4 repeats your choice, 4 of 8 pages get a number: 2-4, 8., and the line under it shows the counting rule at work: pages 2, 3, 4 and 8 are the first four numbered pages, so page 8 reads Page 4 of 4. Scattered pages therefore can’t show their real page positions. For that, number one unbroken stretch and give Start at the stretch’s first page: pages 10 to 24 with Start at 10 read 10 to 24.

The switch at marker 5, Number this page, turns the number on or off for the page on the stage by editing the range for you, so one page can be fixed without retyping it. Here it is off, because page 1 is outside 2-4, 8.

4. Place the number

Position is a sheet of paper with a spot at the top and the bottom, each at the left, center and right. Click one, as at marker 1: the number moves on the page at once, a dot marks the choice and its name sits in the middle of the sheet, Bottom right in the figure. The arrow keys move between the spots.

The Position section with Bottom right chosen: the six-spot page diagram marked 1, the Small, Medium and Large margin chips marked 2 and the Exact margin field, 36, marked 3. The Position section with Bottom right chosen: the six-spot page diagram marked 1, the Small, Medium and Large margin chips marked 2 and the Exact margin field, 36, marked 3. Open this screenshot at full size in a new tab
  1. Position. A sheet of paper with a spot at the top and the bottom, each left, center and right. Click one and the number moves on the page at once.
  2. Margin from the edge. How far the number sits from the edge of the page: Small is 18 pt, Medium 36 pt and Large 54 pt. Medium is the default.
  3. Exact margin. The same distance in points, from 0 to 144. A value that matches no chip leaves all three unchecked.

Margin from the edge, at marker 2, is how far the number sits from the edge of the page: Small is 18 pt, Medium 36 pt (half an inch, and the default) and Large 54 pt. Exact margin (pt), at marker 3, is the same distance in points, from 0 to 144. Type one that matches no chip and all three are left unchecked.

The distance is measured from the page as it is shown. A page stored on its side or with a crop box, like pages 6 and 7 of the sample, still gets its number in the corner you chose; you can see both in step 7. When a number is too wide for a page, which a long format at a large size can cause, a warning under the diagram says on how many pages it would be cut off.

5. Style the number

The Style section with Gray chosen: the Helvetica, Times and Courier chips marked 1, the Font size stepper marked 2, the colour swatches marked 3 and the Opacity slider marked 4. The Style section with Gray chosen: the Helvetica, Times and Courier chips marked 1, the Font size stepper marked 2, the colour swatches marked 3 and the Opacity slider marked 4. Open this screenshot at full size in a new tab
  1. Font. Helvetica, Times or Courier, each chip set in its own face. Bold and Italic sit beside or under them.
  2. Font size. From 6 to 72 pt, with 12 as the default. Use the minus and plus buttons or type a number.
  3. Colour. Six ready-made colours, or the palette swatch for any other. A very pale one brings a note that it may be hard to read on white pages.
  4. Opacity. From 10% to 100%. Lower it for a number that stays quiet on a busy page.

Font, at marker 1, is Helvetica, Times or Courier, each chip set in its own face, with Bold and Italic beside or under them. Font size, at marker 2, runs from 6 to 72 pt and starts at 12. When the pages are very large, a 12 pt number looks like a speck; a note under the field says so and offers a bigger size in one press.

Colour, at marker 3, has six ready-made colours (Black, Gray, Blue, Dark blue, Red and Green) and a palette swatch that opens a picker for any other; the figure has Gray. A very pale colour brings a note that it may be hard to read on white pages. Opacity, at marker 4, goes from 10% to 100%, and lowering it is the gentlest way to keep a number from competing with the page. The same note appears when a low opacity pales a dark colour: Gray below about 75%, for instance.

6. Fine-tune in Advanced

The last section holds what most numbering never needs. From 1024 px wide it is a bar called Advanced that opens when you press it, as in the figure; below that it is the More tab and is always open.

The Advanced section, open: the Prefix and Suffix fields marked 1, Minimum digits marked 2, the Mirror for double-sided printing switch marked 3, File name marked 4 and Reset settings marked 5. The Advanced section, open: the Prefix and Suffix fields marked 1, Minimum digits marked 2, the Mirror for double-sided printing switch marked 3, File name marked 4 and Reset settings marked 5. Open this screenshot at full size in a new tab
  1. Prefix and Suffix. Text added before and after the label exactly as you type it, up to 40 characters each. No space is added for you.
  2. Minimum digits. Pads the number with leading zeros: 3 gives 001, 002. Arabic numerals only, so it is hidden for Roman numerals and letters.
  3. Mirror. Odd pages keep your side and even pages take the opposite one, for double-sided printing. It shows only for a left or right position.
  4. File name. What the numbered copy is saved as. The default is your file's name with -numbered added, and the .pdf is fixed.
  5. Reset settings. Puts every setting back to its default and leaves an Undo at the foot of the panel. It is faded while nothing has changed.

Prefix and Suffix, at marker 1, add text before and after the label, up to 40 characters each, exactly as typed. No space is added for you, so type one where you want it: the prefix Exhibit B- with the 1, 2, 3 format prints Exhibit B-1, Exhibit B-2. Minimum digits, at marker 2, pads the number with zeros to at least that many digits, from 1 to 6: 3 gives 001, 002. It is hidden for Roman numerals and letters, which have no zeros to pad with.

Mirror for double-sided printing, at marker 3, appears when the position is on the left or right, since a centred number has no side to swap. Odd pages (1, 3, 5 and so on) keep the side you chose and even pages take the opposite one, so a number at the bottom right of one page sits at the bottom left of the next: the outer corner of every sheet when the PDF is printed on both sides and bound. That is what a position on the right gives you; a position on the left puts the numbers in the inner corners. The diagram under Position says which side each kind of page takes.

File name, at marker 4, is what the numbered copy is called: your file’s name with -numbered added, so report.pdf becomes report-numbered.pdf. Change it before you download; the .pdf is fixed. Reset settings, at marker 5, puts every setting back to its default and leaves an Undo at the foot of the panel. It is faded while nothing has changed.

7. Check the pages in the preview

The preview on page 2 of 8: Page 1 of 7 in gray at the bottom right of the page, marked 1, the page buttons marked 2 and the zoom buttons marked 3 under it. The preview on page 2 of 8: Page 1 of 7 in gray at the bottom right of the page, marked 1, the page buttons marked 2 and the zoom buttons marked 3 under it. Open this screenshot at full size in a new tab
  1. The number. Your real page with the number drawn where the saved file will have it, in the font, size, colour and position you chose.
  2. Page buttons. Previous and next page, with the page you are on between them. Page Up and Page Down do the same while the page has focus.
  3. Zoom. Zoom out and in, or switch between fitting the page and fitting its width. With the page focused, the plus and minus keys zoom, and 0 fits the page.

The stage shows one page at a time: your real page, with the number drawn at marker 1 in the font, size, colour and position you chose, placed the way the saved file will place it. The buttons at marker 2 step to the previous or next page. The ones at marker 3 zoom out and in and switch between fitting the page and fitting its width. With the page itself focused (click it, or press Tab until it is), Page Up and Page Down change pages, + and − zoom and 0 fits the page.

Go through a few pages, and in the sample go through the odd ones: page 4 is A4, page 5 a landscape chart, page 6 is stored on its side and page 7 has a crop box. The number follows each page’s own shape. Look for text near an edge that the number would sit on, and for a page that carries No number on this page when you didn’t mean it. Fix either from step 3 or 4 and the page changes at once.

8. Download the numbered PDF

Press Download Numbered PDF. The button turns into a progress ring with Cancel beside it while the numbers are added; cancelling keeps every setting as it was. Then the file saves straight away.

The foot of the settings panel after the download: the File name field marked 1, the line Saved pdf-head-numbers-sample-numbered.pdf marked 2 and the Download Numbered PDF button under it. The foot of the settings panel after the download: the File name field marked 1, the line Saved pdf-head-numbers-sample-numbered.pdf marked 2 and the Download Numbered PDF button under it. Open this screenshot at full size in a new tab
  1. File name. The name the numbered PDF is saved under. Change it here before you download; the .pdf stays.
  2. Saved. Names the file that was saved. Press the button again to save the same file once more, without building it twice, while your settings stay as they were.

The name is the one at marker 1, pdf-head-numbers-sample-numbered.pdf for the sample, and the line at marker 2 names the file that was saved: Saved pdf-head-numbers-sample-numbered.pdf. The numbers are added to your original file in place instead of rebuilding it, so links, form fields and bookmarks keep working: the link on the sample’s cover and the six on its contents page still jump to their pages. The PDF you opened is never changed.

Press the button again and it saves the same file once more, without building it twice, for as long as your settings stay as they were; change one and the next press builds a new copy. The numbers are part of the pages of the copy and can’t be switched off in it, so keep the original if you may want different ones. Replace PDF, in the bar above the settings, opens another PDF and keeps your format, position and style; the file name is suggested again from the new file.

Get the pages in order first

The numbers follow the order the pages are in when you download, so order comes before numbering.

Which setting for which job

You want…Set this
Page 2 to read 2, with no number on the coverSkip cover, then Start at 2
Numbers on the outer corner of every sheet in a double-sided printA position on the right, then Mirror for double-sided printing
Page 3 of 12 on every pageThe Page 1 of 10 chip; the total counts to the last number shown
Exhibit B-1, Exhibit B-2Prefix Exhibit B- with the 1, 2, 3 format
A zero-padded number such as 001Minimum digits 3
A quiet number on a busy pageGray, a smaller Font size and a lower Opacity
Only part of the documentCustom under Pages to number (step 3)

Access and technical limits

Pro ($9.99/month) is required to download a numbered copy of your own PDF and includes unlimited exports. Technical limits such as browser memory still apply, along with the 1,500-page limit above.

Which tool you want

Common questions

Why does the cover say No number on this page?

Because Skip cover, or a custom range that leaves page 1 out, gives that page no number, and the preview marks the spot where it would have gone with a dashed chip. Nothing is drawn there in the saved file. Step to page 2 and the number appears, reading 1 for the first page that gets one.

How do I make page 2 read 2 when the cover has no number?

Choose Skip cover, then set Start at to 2. The first numbered page shows the start number, so page 2 reads 2 and every page after it follows in order. A total such as Page 2 of 8 counts to the last number shown, which is why it reads 8 here and not 7.

Why is Download Numbered PDF faded?

Something stops the copy from being made: your custom range names no page, the PDF can't be rewritten here, it lists the same page more than once, or the preview and the file describe a page differently. Press the button anyway: the line above it names the reason, and when the Pages field is to blame it opens that section and puts the cursor there. A wrong entry in any other field never keeps the button faded, because leaving the field puts the last good value back.

Where did Mirror and Minimum digits go?

They show only when they mean something. Mirror needs a left or right position, because a centred number has no side to swap, and Minimum digits needs the 1, 2, 3 numerals, because Roman numerals and letters have no zeros to pad with. Pick a side position or the plain numbers and they come back.

Can I take the numbers off the numbered copy?

No. They are written into the pages of the copy, not added as a header field you can switch off. Keep the original, change the settings and download again from it: the PDF you opened is never changed, and the preview shows the result before anything is saved.

Does Replace PDF keep my settings?

Mostly. Format, position and style stay as they are, and so do the margin, the opacity and the options under Advanced. The file name is suggested again from the new file, and a choice of pages that no longer fits the new PDF, such as a range that runs past its last page, goes back to All pages.

All guides