Numbered lines make a list easier to discuss: “look at step 4” or “the error is on line 37”. Typing numbers by hand is tedious and breaks as soon as you insert a line. This tool adds them in one go, in exactly the style your document needs.
Where it’s useful
- Instructions and recipes: turn a block of steps into a numbered list.
- Code reviews and logs: add line numbers to a snippet before sharing it in an email or chat that has no code viewer.
- Scripts and transcripts: number lines so actors, editors or translators can reference them.
- Legal and academic text: number paragraphs or lines for citations.
- Spreadsheets: add a tab-separated ID column to a plain list before pasting it in.
How to use the Add Line Numbers
- Paste your text into the left box.
- Set the Format. Put
{n}where the number should go — for example{n}.,[{n}]orStep {n}:. - Choose the starting number, and tick Pad with zeros if you want 01, 02 … 10 so the numbers line up.
- Leave Don’t number empty lines on to keep paragraph gaps unnumbered. Then copy or download the result.
Features
- Any prefix format: dots, brackets, tabs, “Line 1:”, Markdown lists and more.
- Start at any number, including 0 or negative numbers.
- Zero-padding sized to the largest number, so columns stay aligned.
- Blank lines can be skipped so numbering stays continuous across paragraphs.
Frequently asked questions
How do I make a numbered Markdown list?
Use the default format “{n}. ” (number, dot, space). Most Markdown renderers turn those lines into an ordered list.
Can I put the number after the text instead?
This tool adds numbers as a prefix. For a suffix, add the numbers here with a separator like “{n}|”, then use Find and Replace with a regular expression to move them to the end.
How do I add a tab after the number for pasting into a spreadsheet?
Type a tab into the Format box after {n}, or copy one from another app. When you paste the result into Excel or Google Sheets, the numbers land in the first column and the text in the second.
Written by Dewan Razib