Add Line Numbers

Number every line of your text with numbers, Roman numerals, or letters.

Add Line Numbers

This tool adds sequential labels to every line of your text.
Choose from numbers, Roman numerals, or letters, and customise the prefix, suffix, and format.
Paste or type your text in the "Input" field, adjust the settings, and press the "Add Line Numbers" button to get the result instantly.


Load an example

Settings
Add numeric labels (1, 2, 3...).
Add Latin numeral labels (I, II, III... up to MMMCMXCIX).
Add alphabetic labels in A1 / spreadsheet style (A, B, ... Z, AA, AB...).

The numbering sequence begins at this value.
Text inserted before the number.
Text inserted between the number and the line content.
How the number is wrapped.
Pad numbers with leading zeros (e.g. 001, 002). Only for Numbers mode.
When on, blank lines are left unnumbered and the count is not incremented.
0 lines  |  0 chars
Ready to add line numbers.


Overview

The "Add Line Numbers" tool inserts a sequential label at the beginning of every line in your text. You can choose between numbers, Roman numerals, and letters (A1 / spreadsheet style), and customise the prefix, suffix, wrapping format, padding, and more.

The original input stays untouched in the "Input" field while the numbered result is written to the "Output" field, ready to copy or download. The tool is free, requires no account, and runs entirely in your browser.


How to Use This Tool

1. Add your text: Paste or type it into the "Input" field, click "Upload a file" to load a text file, or use "Load an example" to try a sample.

2. Choose a mode: Pick Numbers (the default), Roman Numerals, or Letters, and adjust the options (start value, prefix, suffix, format, zero-padding, and so on).

3. Add the numbers: Click the "Add Line Numbers" button. The result appears in the "Output" field. Copy or download the result, and use "Clear & Reset" to start over.


Examples

1. Basic numeric line numbers

The default settings add 1. before each line.

Input
Apple
Banana
Cherry
Date
Output
1. Apple
2. Banana
3. Cherry
4. Date

2. Roman numerals with prefix

Prefix "Line ", suffix " - ", Roman numerals, uppercase.

Input
First step
Second step
Third step
Output
Line I - First step
Line II - Second step
Line III - Third step

3. Letters with zero-padding and skip empty lines

Numbers zero-padded to 3 digits, with an empty line skipped.

Input
Red
Green

Blue
Yellow
Output
001. Red
002. Green

003. Blue
004. Yellow

4. Bracket format with custom start

Bracket format [N], starting at 10.

Input
Todo item A
Todo item B
Todo item C
Output
[10] Todo item A
[11] Todo item B
[12] Todo item C

Features & Options

Input & Output: Type, paste, or upload your text into the "Input" field. The numbered result is written to the "Output" field, ready to copy or download.

Numbers mode: Adds numeric labels (1, 2, 3...). Accepts positive integers, negative numbers, and zero as the starting value. For example, starting at 1 with the default format Number.:

Apple
Banana
Cherry

produces:

1. Apple
2. Banana
3. Cherry

Starting at -1 produces:

-1. Apple
 0. Banana
 1. Cherry

Roman Numerals mode: Adds Latin numeral labels (I, II, III...) for values 1–3999. Enter the Roman numeral equivalent in the "Start at" box (e.g. IV to start from 4). With uppercase on:

I. Apple
II. Banana
III. Cherry
IV. Date

With uppercase off (lowercase):

i. Apple
ii. Banana
iii. Cherry
iv. Date

Letters mode: Adds alphabetic labels in A1 / spreadsheet style: A, B, ... Z, AA, AB, AC and so on. Enter the letter equivalent in the "Start at" box (e.g. D to start from the 4th letter). With uppercase on:

A. Apple
B. Banana
C. Cherry
D. Date

With uppercase off (lowercase):

a. Apple
b. Banana
c. Cherry
d. Date

Start at: Sets the initial number, Roman numeral, or letter for the sequence. The value updates automatically when you switch modes (1 for Numbers, I for Roman, A for Letters). For example, starting Numbers at 10:

10. Apple
11. Banana
12. Cherry

Prefix / Suffix: The prefix is inserted before the number; the suffix is inserted between the number and the line content. For example, prefix "Line " and suffix " - " with Roman numerals:

Line I - Apple
Line II - Banana
Line III - Cherry

Format: Controls how the number is wrapped. Four options are available:

Number. (default):

1. Apple
2. Banana
3. Cherry

(Number):

(1) Apple
(2) Banana
(3) Cherry

[Number]:

[1] Apple
[2] Banana
[3] Cherry

Number.):

1.) Apple
2.) Banana
3.) Cherry

Zero-pad: (Numbers mode only) Pads numbers with leading zeros to a specified width. For example, width 3 turns 1 into 001:

001. Apple
002. Banana
003. Cherry
004. Date
005. Elderberry
...
010. Jalapeno

Skip empty lines: When on (the default), blank lines are left unnumbered and the counter is not incremented. Input:

Apple

Banana
Cherry

With Skip empty lines on:

1. Apple

2. Banana
3. Cherry

With Skip empty lines off:

1. Apple
2.
3. Banana
4. Cherry

Load an example: Loads a sample text with pre-configured settings so you can see the tool in action immediately.

Copy & Download: "Copy" puts the output on your clipboard; "Download" saves it as a text file.


FAQs

FAQ 1: How many lines can I number at once?
Answer: The tool handles large texts up to the browser's textarea limit. For very large files, the processing is instant since it runs locally in your browser.

FAQ 2: Can I number only selected lines?
Answer: Currently the tool numbers all non-empty lines in the input. To number only specific lines, paste only those lines into the input field.

FAQ 3: What happens when Roman numerals go past 3999?
Answer: Roman numerals are only supported up to 3999 (MMMCMXCIX). If the sequence exceeds that, the label will be left blank for those lines. Use Numbers or Letters mode for very long lists.

FAQ 4: Does the tool modify my original text?
Answer: No. The "Input" field is never modified. Only the copy in the "Output" field reflects the line numbers you added.

FAQ 5: Can I remove line numbers I previously added?
Answer: The tool is designed to add numbers, not remove them. To undo, paste the original un-numbered text back into the Input field and use "Clear & Reset".

FAQ 6: Is my text private?
Answer: Yes. The tool runs entirely in your browser with JavaScript. Your text is never uploaded to or stored on our servers.

TextToolz

The Ultimate Text Tools

TextToolz works seamlessly to let you convert and design your text. It is fast, reliable and secure. Trusted by thousands of users.