Number Lines
Automatically add sequential numbers to the start of each line for referencing and sharing code or lists.
Add line numbers to every line of text instantly.
Input
Paste text that should be easier to reference line by line.
Output
Each line will be returned with a line number prefix.
FAQ
Common questions about this tool.
Does it keep the line content unchanged?
Yes. It only adds the line number at the start and keeps the rest of each line the same.
When is this useful?
It is useful for code review, error reporting, and discussing specific lines when sharing text.
How to use
Paste the text, number the lines, then copy the numbered result.
- Paste the text block you want to number.
- Click Number Lines to add sequential numbers to each line.
- Copy the numbered output for sharing or error discussion.
Use cases
Use it when you need to reference specific lines by number during discussion or review.
- Number code snippets before sharing for code review.
- Add line numbers to logs or error messages for easier reference.
- Create numbered lists from unformatted text for documentation.
When this tool is useful
Automatically add sequential numbers to the start of each line for referencing and sharing code or lists. Number Lines sits in the text conversion part of the site, which focuses on change text structure, case, line format, or list layout.
Use it when the content itself is already correct, but the format, order, or line structure still needs to change before reuse. Within that group, it leans toward list formatting tasks, so the page is tuned for quick single-purpose use rather than a long multi-step workflow. If this step is only part of the job, the most relevant follow-up tools are Add Quotes and Line Counter.
Before you copy the result
- Review a few lines of output to confirm the conversion keeps the separators, order, or casing you expect.
- Use the example block as a quick sanity check before you process a larger list or draft.
- If you still need cleanup after conversion, run the result through a whitespace or list tool instead of editing manually.
Example
A quick example of how this tool works.
Input
alpha\nbeta\ngamma
Output
1. alpha\n2. beta\n3. gamma