How to add line numbers
- Paste your text into Input.
- Pick a start number and a separator, and choose whether to pad numbers or skip blank lines.
- Copy or download the numbered text.
Common uses
- Turn steps or instructions into a numbered list for a document or email.
- Number lines of code or log output so you can refer to them in a review.
- Add ranks to a list of results or names.
Tips for numbered text
- Pad numbers for long lists. With 10 or more lines, Pad with zeros turns 1 into 01, so the numbers line up and sort correctly in a spreadsheet or file manager.
- Use a tab to paste into a spreadsheet. With Tab as the separator, the numbers and the text land in two columns when you paste them into Excel or Google Sheets.
- Start at 0 to match code. Lists and arrays in most programming languages count from zero; set Start at to 0 to match them.
- Keep paragraphs readable. Turn on Skip empty lines so blank lines between paragraphs stay blank and the count carries on across them.