Line Tools (Sort, Dedupe, Reverse)
Sort, dedupe, or reverse lines — handy for cleaning up data.
About Line Tools (Sort, Dedupe, Reverse)
Line Tools is a small toolkit for transformations on a list of lines: alphabetic sort (A→Z or Z→A), dedupe, reverse, trim leading and trailing whitespace, and remove empty lines. The everyday use case is cleaning up a list you have pasted from somewhere — a spreadsheet column, an export, a chain of email addresses — before doing something else with it.
Worked example: paste a list of email addresses copied from a thread, tick 'Trim', 'Drop blanks', 'Dedupe', and pick 'A → Z' sort. The result is a clean, sorted, unique list ready to paste into a recipient field. Switch sort to 'Z → A' for reverse alphabetic; tick 'Reverse' on its own to flip whatever order the lines arrived in. All five toggles combine — pick any subset that fits.
Two notes. Deduplication is case-insensitive by default; tick 'Case-sensitive' to treat 'Apple' and 'apple' as different. Sorting respects the browser's locale (via String.localeCompare), which is correct for most everyday English-language lists; for languages with non-ASCII sort orders (German ß, Scandinavian å/ö, accented letters) the result follows your browser's locale rules. The tool is alphabetic sort only — for numeric ordering of a list of numbers, you'd need to pre-pad them to the same width or use a dedicated sorter.
All transformations run in your browser. Pasted lists — including contact lists, internal data, and private notes — are never uploaded.