Remove Line Numbers
Remove leading line numbers in the common forms from every line, leaving the list text aligned and otherwise untouched.
What this page does
Copying a numbered list out of a ticket, a PDF or a chat thread often brings the numbers with it. This page strips a leading number in the forms that actually appear — 1., 1), (1), [1], 1: and 1 - — from every line that has one, and leaves every other line alone.
How to use it
Paste or type the text and press Run. The result appears beside the form. With "1. alpha\n2) beta\n[3] gamma", the page gives:
alpha
beta
gamma
The rule it applies
A line is de-numbered when it starts with optional space, then one of (N), N), [N], N. followed by a space, N followed by a space or colon, or N followed by a dash; exactly that prefix is removed and the rest of the line is untouched.
The text after the prefix, its indentation relative to that point, the line order and every line that had no number. A decimal such as 3.14 with no following space is not treated as numbering. Every character is read in your browser: nothing is uploaded and nothing is stored.
Copying a numbered list out of a ticket, a PDF or a chat thread often brings the numbers with it. This page strips a leading number in the forms that actually appear — 1., 1), (1), [1], 1: and 1 - — from every line that has one, and leaves every other line alone.
The rule this page applies: A line is de-numbered when it starts with optional space, then one of (N), N), [N], N. followed by a space, N followed by a space or colon, or N followed by a dash; exactly that prefix is removed and the rest of the line is untouched.
Worked example: "1. alpha\n2) beta\n[3] gamma" with the default controls gives the output recorded in the example below, character for character.
How to use the Remove Line Numbers
Paste or type the text into the box and press Run. There is nothing to configure: the page reads the text and applies the rule below.
Worked example: with "1. alpha\n2) beta\n[3] gamma" the page prints the output in the What to Expect block below, and running it again prints the same bytes.
The rule this page applies
A line is de-numbered when it starts with optional space, then one of (N), N), [N], N. followed by a space, N followed by a space or colon, or N followed by a dash; exactly that prefix is removed and the rest of the line is untouched.
The text after the prefix, its indentation relative to that point, the line order and every line that had no number. A decimal such as 3.14 with no following space is not treated as numbering.
What to Expect
Best for
- Cleaning a list copied out of a tracker
- Comparing two numbered versions of the same list
Not ideal for
- A list numbered with words or roman numerals
- Code where a leading number is data
What this tool keeps
- Your text, read in this tab and nowhere else
- The same answer on every run
- Nothing sent, stored or logged
What may need cleanup
- Your own wording, which the page never composes for you
- Spacing carried over from the text you pasted
Common errors
- A text where no line carries a recognised numbering prefix is refused with the accepted forms listed, because the result would be identical to the input.
- An empty box, which the page refuses rather than printing a blank result
Example use cases
- Pasting a list into a spreadsheet
- Diffing a support thread against a document
Sample input
1. alpha 2) beta [3] gamma
Sample output
alpha beta gamma
Who this is for
- editors
- support teams
Frequently asked questions
What rule does this page apply?
A line is de-numbered when it starts with optional space, then one of (N), N), [N], N. followed by a space, N followed by a space or colon, or N followed by a dash; exactly that prefix is removed and the rest of the line is untouched.
What input does it refuse?
A text where no line carries a recognised numbering prefix is refused with the accepted forms listed, because the result would be identical to the input.
What is left unchanged?
The text after the prefix, its indentation relative to that point, the line order and every line that had no number. A decimal such as 3.14 with no following space is not treated as numbering.
Is anything uploaded?
No. The text is read by JavaScript in this page and nothing is posted, stored or logged.
Which numbering forms are recognised?
1., 1), (1), [1], 1: and 1 - at the start of a line, with optional leading spaces. Anything else is left as typed rather than guessed at.
Will it remove a number that is data?
Only when the line starts with one of those six forms. A line that begins with a bare figure such as 1815 keeps it, because that is not one of the recognised prefixes.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.