DuckyTools
Home Text Add Line Numbers

Add Line Numbers Text

Prefix every line with a number, in whatever style you need.

Add Line Numbers is a free online tool that prefix every line with a number, in whatever style you need. It runs entirely in your web browser using plain JavaScript, so files are processed on your own device and never uploaded to a server. There is no sign-up, no file size limit imposed by the site, no watermark and no paid tier.

Price
Free — no account, no quota, no watermark
Category
Text
Where it runs
In your browser, on your device
Files uploaded
None
Technology
plain JavaScript
Settings
4
Works offline
Yes, after the first visit

About Add Line Numbers

Add Line Numbers is one of 57 text tools on DuckyTools, and like all of them it runs entirely inside this page. Prefix every line with a number, in whatever style you need.

How to use it

  1. Paste the text you want to run through add line numbers.
  2. Set start at, separator and pad with zeros and the remaining options.

The 4 settings

SettingWhat it doesDefault
Start atA numeric value.1
SeparatorFree text..
Pad with zerosOn or off. Off by default.Off
Skip empty linesOn or off. Off by default.Off

Under the hood

Runs onplain JavaScript — runs the whole thing
ControlsStart at, Separator, Pad with zeros, Skip empty lines