Names, keywords and lists
Put a guest list, a keyword list or a glossary in alphabetical order and remove the repeats in one go.
Paste a list and sort it alphabetically, from Z to A, by length, by the number in each line, in reverse or in random order. Ignore case, use natural order so file2 comes before file10, trim spaces, and remove empty lines and duplicates. Everything runs in your browser, and your list is never uploaded.
Learn what each sort order does, how natural order and case work, and how to clean a list while you sort it.
A text sorter puts the lines of a list in order. You paste the list, pick an order such as A to Z or longest first, and the sorted list appears straight away, ready to copy or download.
It can also remove duplicate lines and empty lines, ignore capital letters, put numbered items in natural order, or sort single words instead of whole lines. If your list has stray spaces or hidden characters, tidy it first with the Whitespace Remover, and use the Text Diff Checker to compare the sorted and original versions.
Put a guest list, a keyword list or a glossary in alphabetical order and remove the repeats in one go.
Sort imports, file names, IDs, log lines or CSV columns pasted as text, so they are easier to scan and compare.
Shuffle a list to pick a running order, split teams or draw names fairly.
Alphabetical order, forwards or backwards. The tool uses your browser’s language rules, so accented letters such as é sit next to e.
Orders items by how many characters they have. Items of the same length keep the order they had before.
Uses the first number found in each line, such as 12 in “Item 12”. Lines with no number go to the end.
Flips the list without sorting it. The last line becomes the first.
Puts the items in a random order using your browser’s secure random numbers. Press Shuffle again for a new order.
Plain alphabetical sorting reads digits one character at a time, so “10” lands before “2”. Natural order compares the whole number instead, which is what most people expect for file names, chapters and numbered lists. It is on by default and you can switch it off.
Ignoring case only changes how items that differ by capitals are treated. Either way the list follows alphabet order, not raw code order, so “banana” does not jump behind “Cherry”.
Your list is sorted in your browser. It is never sent to our server. Only your sort order and option choices are remembered on your device, never the text itself.
The tool handles up to about 5 million characters. It sorts whole lines or words, not columns inside a line. Alphabetical order follows your browser’s language settings, and some languages have special rules that can differ from a printed dictionary.
Paste your list with one item per line and leave the order on A to Z. The sorted list appears on the right as you type. Press Copy result to use it.
Choose Z to A in the Order menu. The same options apply, including ignoring case, natural order and removing duplicates.
It compares whole numbers inside text, so file2 comes before file10. Without it, plain alphabetical sorting puts file10 before file2 because it reads one digit at a time.
Choose a Number order. The tool uses the first number it finds in each line, including decimals and thousands commas, and sorts by that value. Lines without a number go to the end.
Yes, by default. Apple and apple are treated as equal for ordering and keep their original order. If you turn it off, items that differ only by case stay separate and the capital letter comes first.
Yes. Tick Remove duplicates and only the first copy of each line is kept. The case option decides whether Apple and apple count as the same line. The tool shows how many were removed.
Yes. Choose Words and the text is split on spaces and line breaks. You can join the sorted words with a space, a new line or a comma and space.
It uses a Fisher-Yates shuffle with your browser’s secure random numbers, so every order is equally likely. Press Shuffle again for a new random order.
Yes. Sorting uses your browser’s language-aware comparison, so accented letters such as é sort next to e. Rules for some languages differ from a plain alphabet, and they follow your browser’s settings.
No. Sorting happens in your browser and the tool handles up to about 5 million characters. Your order and option choices are remembered on your device, but the text is not saved.
The homepage features dozens more free tools that don't require an API key.
Reverse text, words, lines or flip text upside down.
Open toolGenerate v4, v7 and v5 UUIDs in bulk, with a validator.
Open toolMeasure your words per minute and accuracy over 15 to 120 seconds.
Open toolConvert length, area, volume, speed, temperature, time, data and more.
Open toolNo matching question.
Share your thoughts on this tool with other visitors.