Sort lines of text alphabetically (A-Z, Z-A, length, natural sort).
Count total lines, non-empty lines, and blank lines in text.
Wrap text at specified column width, add line prefixes/suffixes, and indent.
Convert CSV data into an aligned plain text or Markdown table.
Reverse the order of lines in a list or document.
Adding sequential numbers to a list, code snippet, or document by hand is slow and easy to get wrong, and this number lines tool does it automatically the moment you paste your text. It prefixes every line with a sequential number, letting you customize the starting number, padding, and separator, which is useful for developers referencing code lines, teachers numbering quiz items, and writers formatting outlines or scripts. The whole process runs in your browser using JavaScript, so there's no upload delay and your content stays private throughout. It's free, requires no signup, and works instantly on documents of any length. Paste your text below to get a cleanly numbered list in seconds.
Yes, you can set any custom starting number, which is useful when continuing a numbered list from a previous document.
You can choose whether blank lines receive a number or are left unnumbered, depending on how you want the output formatted.
Yes, you can choose separators like a period, colon, or parenthesis, such as '1.', '1:', or '1)'.
Yes, adding line numbers makes it easy to reference specific lines when discussing code in documentation, tutorials, or bug reports.
Yes, enabling zero-padding ensures numbers like 01, 02, ... 10 stay visually aligned instead of shifting as digits increase.
No, since numbering happens locally in your browser without a server-side restriction.