Line Tools
TextSort lines alphabetically, remove duplicates, reverse order, shuffle, and trim whitespace. Handy for cleaning lists and data.
Runs entirely in your browser. Nothing is uploaded.
Sort, dedupe & reverse lines
Lists arrive messy: an exported column of email addresses with duplicates, a set of keywords in no order, a log paste with trailing spaces on every line. These are all one-step problems that people solve with a throwaway script. Paste the list, apply sorting, deduplication, reversal, shuffling, or whitespace trimming, and copy the cleaned result — no script and no upload.
How to sort and deduplicate lines
- 1
Paste your list
Drop in any text with one item per line.
- 2
Apply the operations
Sort alphabetically, remove duplicate lines, reverse the order, shuffle randomly, or trim surrounding whitespace.
- 3
Copy the clean list
Take the result straight back into your spreadsheet, editor, or form.
Good to know
- Deduplication keeps the first occurrence of each line, so the order you care about survives.
- Trimming whitespace first is usually the right move: lines that differ only by a trailing space will not otherwise be treated as duplicates.
- Sorting is alphabetical, which means numbers are ordered as text — 10 sorts before 9.
- Everything happens locally, so lists of real addresses or customer data are safe to paste in.
What people use it for
- Deduplicating an exported list of emails, URLs, or SKUs
- Alphabetising a keyword or reference list before handing it over
- Cleaning ragged whitespace out of a copied column of data
Frequently asked questions
What operations are available?+
Sort A→Z or Z→A, remove duplicates, reverse, shuffle, trim whitespace, remove blank lines, and number lines.
Is my data sent to a server?+
No. Processing your list happens entirely in your browser using built-in web APIs. Nothing is uploaded, stored, or logged.
Related tools
Word & Character Counter
Live word, character & reading stats
Case Converter
UPPER, lower, Title, camel, snake…
Lorem Ipsum Generator
Placeholder text on demand
Text Diff Checker
Compare two blocks of text
Or browse all 50 free tools.
