Add Line Numbers
Add line numbers to text
Frequently Asked Questions
How do I add line numbers to text?
Paste your text. The tool prepends a line number to each line. Customize: starting number, increment, separator (period, colon, tab), padding (leading zeros), and alignment. Output formats include plain text and code-ready formatting.
Can I customize the line number format?
Yes. Set starting number (default 1), increment (1, 2, 5, 10), separator ("1. ", "1: ", "1\t"), padding width (01, 001), and alignment (left, right). Skip blank lines optionally. The tool previews the formatted output in real time.
What are line numbers used for?
Code review references. Legal document citations. Script and screenplay formatting. Academic paper line references. Debugging (referencing specific lines). Poetry analysis. The tool formats text for any of these professional use cases.
Can I add line numbers to code?
Yes. The tool preserves indentation and formatting. Choose a code-friendly separator (tab or spaces). Output can be copied directly into documents or emails where code line references are needed. For IDE-style numbering, use a monospace font.
Can I remove line numbers from text?
Yes. The tool also has a remove mode that strips existing line numbers. It detects common formats: "1. ", "1: ", "1) ", "001 ", and tab-separated numbers. Paste numbered text and get clean, unnumbered output.