Skip to main content

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.

Sort lines

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.

Processed locally in your browser

How to use it

  1. Paste your text, one item per line
  2. Choose an operation: sort, remove duplicates, remove empty lines, trim, reverse, or number
  3. Set the options for that operation, then click Process text
  4. 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

We use cookies to run this site and, with your consent, to understand usage and personalize ads. You can change your choice at any time.