Text Line Tools
Text Line Tools applies one useful transformation at a time to a block of text organised one item per line, entirely in your browser.
Processes text lines locally in your browser: sort (natural or lexicographic, case-sensitive or not), remove duplicate lines (keep first or last), remove blank lines, trim, reverse the order, or number the lines. One operation at a time; use “Use result as input” to chain a second one. Line endings are normalised and the result always uses LF. It works on free text, not on CSV columns or spreadsheet structure, and it does not compare two texts — for that, use the CSV Duplicate Remover or the Text Diff tool.
How to use it
- Paste your text, one item per line
- Choose an operation: sort, remove duplicates, remove empty lines, trim, reverse, or number
- Set the options for that operation, then click Process text
- Copy the result, or click Use result as input to run another operation on it
Sort the lines in ascending or descending order, with a natural order that puts item2 before item10 or a plain lexicographic order, and optionally make the comparison case-sensitive. Remove duplicate lines, keeping either the first or the last occurrence and without trimming them first, so "hello" and " hello" stay distinct. Remove blank lines, trim leading or trailing whitespace, reverse the order of the lines, or number them with a chosen start value, separator, and zero-padding. Line endings are normalised on input and the result is always written with LF. Nothing is uploaded or stored: the text, the operation, and the options never leave your browser. To chain steps, use "Use result as input" and pick another operation, one predictable step at a time. This is different from the CSV Duplicate Remover, which handles CSV columns and structure, and from the Text Diff tool, which compares two texts rather than transforming one.
FAQ
It runs one of six line operations on a block of text: sort, remove duplicate lines, remove empty lines, trim whitespace, reverse the line order, or number the lines. You pick one operation and its options, then process the text.
It compares whole lines, without trimming them first, and drops the repeats. You choose whether the comparison is case-sensitive and whether to keep the first or the last occurrence; the surviving lines keep their relative order.
Natural order compares embedded numbers by value instead of character by character, so item2 comes before item10. Lexicographic order compares the raw characters, which would place item10 before item2.
Yes, one after another. Run the first operation, click Use result as input, choose a second operation, and process again. Each step stays simple and predictable instead of hiding a long pipeline.
No. The text, the chosen operation, and the options are processed in your browser and are never sent to a server, written to storage, or logged.