Add Line Numbers
Number every line of your text
— Number every line of your text
Separator:
Input
Output
Output will appear here
0 words·0 chars·0 lines
⌘K
About Add Line Numbers
Prepends a line number to every line in your text, with consistent padding and a configurable separator. Great for sharing code snippets with line references.
Use cases
- →Add line numbers to code snippets for review
- →Reference specific lines in documentation
- →Annotate log files with line numbers
- →Number list items for referencing
FAQ
- Does it start at 1?
- Yes — always starts at line 1.
- Are line numbers padded?
- Yes — numbers are right-aligned with spaces so all lines indent consistently.