Text Sorter
Sort lines of text A to Z, Z to A, by length, reverse their order or shuffle them. Ignore case and remove duplicate lines. Live result, one-click copy.
Sort lines of text A to Z, Z to A, by length, reverse their order or shuffle them. Ignore case and remove duplicate lines. Live result, one-click copy.
About this tool
This text sorter puts a list in order the moment you paste it. Each line is one item — names, keywords, email addresses, product codes, CSS classes, anything — and the sorted list appears next to it as you type. Choose how to sort: alphabetical A to Z or Z to A, by line length from shortest to longest or the other way round, reverse the current order (last line first), or shuffle the lines into a random order. Alphabetical sorting follows real language rules rather than raw character codes, so “apple”, “Banana” and “cherry” sort the way people expect and accented letters such as “é” sort next to “e”. Ignore case is on by default, so “apple” and “Apple” are treated as the same word for ordering; switch it off when capital letters should come first. Tick Remove duplicate lines to keep only the first copy of every line that appears more than once, which turns a messy pasted list into a clean set of unique items in one go. Duplicates must match exactly, including capital letters and spaces, so “Delhi” and “delhi ” are kept as two different lines. When the result looks right, click Copy result and paste it wherever you need it. Nothing is sent to a server; the sorting happens in your browser, so private lists like customer emails stay on your device. One thing to know: numbers are sorted as text, character by character, so “10” comes before “2”. If you are sorting numbered items, write them with the same number of digits (02, 10) or use the length sort, which puts shorter numbers first.

One item per line.
A–Z, Z–A, by length, reverse or shuffle.
Ignore case, and remove duplicate lines if you need to.
The sorted list updates live; copy it in one click.
A–Z, Z–A, shortest first, longest first, reverse and shuffle.
Follows language rules, so accents and capitals sort sensibly.
Treat “apple” and “Apple” the same, or keep capitals first.
Keep only the first copy of each repeated line.
The sorted list updates as you type or paste.
Sorting happens in your browser; lists are not uploaded.
From messy to ordered in a paste
Put a class list or guest list in alphabetical order.
ExamplePaste 60 student names, choose A → Z, copy into the register.
Lists merged from several sources contain repeats.
ExampleTick Remove duplicate lines, then sort A → Z before importing.
SEO and ad keyword exports are easier to review in order.
ExampleSort 300 keywords by length to find long-tail phrases.
Sorted imports, CSS properties and .gitignore lines are easier to diff.
ExampleSort a list of npm package names before adding them to docs.
Pick an order for presentations, a quiz or a draw.
ExampleShuffle team names to decide who presents first.
Copy one column out of Excel or Sheets and sort it.
ExamplePaste a column of city names, sort, paste back.
Get exactly the order you want
“10” comes before “2”. Pad numbers with zeros (02, 10) or use Short → Long to order them.
A line with a trailing space is not a duplicate of the same line without it. Clean spaces first.
Open Text Space RemoverRemove duplicates matches exact text, so “Delhi” and “delhi” both stay.
To de-duplicate without changing the order, use Remove Duplicates.
Open Remove DuplicatesBlank lines sort to the top in A → Z. Delete them or remove duplicates to keep just one.
Senior Software Engineer · Developer of Toolyconvert
Hemant developed Text Sorter and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 22 November 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.