Add / Remove Line Numbers
Number every line with your own start, step and separator, or remove existing line numbers.
Number your lines
Line numbers help when sharing code snippets, referencing lines in legal texts, turning a list into an ordered one or editing poetry and scripts.
Numbering options
- Start number and increment step
- Separator such as '1.', '1)' or '1 -'
- Zero-padding such as 001, 002
- Skip empty lines
Remove numbers
Clean leading numbers from text copied from numbered sources such as PDFs, web pages or code editors in one click. Processing happens in your browser.
How to use Add / Remove Line Numbers
- Paste your text.
- Choose add or remove numbers.
- Set the start, step and separator.
- Copy the result.
Why use this tool?
No more numbering long lists by hand or deleting numbers one by one.
FAQ
Which number formats can be removed?
Leading numbers followed by '.', ')', ':', ']', ' -', a tab or a space, such as '1.', '12)' or '003:'.
Can I number in steps of 10?
Yes, set the step to 10 to number 10, 20, 30 and so on.
Are empty lines numbered?
Not if the skip empty lines option is on.
Related tools
Add Prefix / Suffix to Lines
Add the same text to the start or end of every line: quotes, commas, bullets or HTML tags.
Open toolJoin / Split Lines
Join lines into one text with any separator, or split text into lines at a separator.
Open toolSort Lines
Sort lines alphabetically (A–Z, Z–A), by length, or reverse the list.
Open toolRemove Duplicate Lines
Remove repeated lines from a list in one click while keeping the original order.
Open tool