PDF · Made a little simpler

Add Line Numbers to PDF

Set the vertical spacing, font size, offsets, start and interval. Number all or selected PDF pages and keep the original text and form controls.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
Line number settings

Numbers follow a fixed grid. Match the spacing to your document.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Add Line Numbers to PDF: how to use it

  1. Open a local PDF or load the two-page practice file.
  2. Set the margin, line height, numbering interval and page scope.
  3. Add line numbers, inspect the edited preview and save a new PDF.

Limits and notes

One unsigned, unencrypted PDF up to 50 MB and 300 pages. Adds up to 20,000 Courier labels. The grid follows the displayed page orientation. Every Nth setting counts grid rows. The tool does not detect text baselines or check filing rules.

How your privacy works →

Add Line Numbers to PDF: common questions

Can I number every fifth line?

Yes. Choose 5 under Number every N lines. The tool marks grid rows 5, 10, 15 and so on, based on the top margin and line height you enter.

How does continuous numbering work?

It carries the grid count forward through selected pages, including rows without a printed number. Unselected pages do not contribute any rows.

Will the numbers match the PDF's text rows?

Set the line height to match your source and check the preview. The grid does not detect paragraphs, blank lines or changes of spacing.

Does the tool preserve form controls?

The line numbers are added to the original page drawing. Existing form controls and selectable text remain available in the saved PDF.

Guides