Line tools
Paste a list and work on it line by line: sort it, number it, clean it up or add text to every line.
About Line Tools: Sort, Number, Reverse
Most small jobs with a list of lines are the same few operations. This page puts them under tabs so you can do them one after another on the same text: number the lines, reverse their order, remove blank lines, trim spaces, add a prefix or suffix to each line, and sort with duplicate removal. The result appears as you type, and you can copy it or move it back into the input to chain a second step. Everything stays in your browser.
- Sorting a list of names or keywords and dropping repeats.
- Numbering the lines of a short script or a checklist.
- Wrapping every line in quotes or adding a comma for code.
- Deleting the blank lines that a copy and paste left behind.
How to use Line Tools: Sort, Number, Reverse
Step 1
Paste your lines into the input box.
Step 2
Choose a tab and set its options.
Step 3
Copy the result, or press Use as input to run another tool on it.
Good to know
- Natural sort puts item 2 before item 10. Plain A to Z puts item 10 first, because it compares one character at a time.
- Duplicate removal keeps the first copy of each line and the original order, unless you also pick a sort.
- A line that holds only spaces is not empty. Use the trim tab first if you want such lines treated as blank.
Common questions
Is the sort case sensitive?
Not by default. Tick the box if you want capital letters treated as different from lower case ones. Accents are compared using the rules of your browser's language settings.
How many lines can it handle?
Tens of thousands of lines are fine on a normal computer. The page only slows down on very large lists.
Can I shuffle the lines?
Yes. Pick Random order on the sort tab. It uses your browser's random number generator.