Sort lines and remove duplicates

TX-04Text

Sort lines alphabetically, reverse their order or remove duplicate lines.

Order

Last updated: October 2026 · Report a calculation error

How to sort a list alphabetically

Paste a list — one item per line — and choose A → Z or Z → A. Sorting follows the rules of your language version, so accented letters sort next to their base letters rather than at the end, as in many simple tools.

You can also remove duplicates and empty lines, so every item appears only once.

Examples

  • Guest, student or staff lists in alphabetical order.
  • Removing repeats from lists of email addresses, keywords or order numbers.
  • Sorting references or product lists before pasting them into a document.
  • “No sorting” with duplicate removal keeps the first occurrences in their original order.

Frequently asked questions

How are numbers sorted?

As text, so “10” comes before “9”. To sort numbers by value, add leading zeros (09, 10) or use a spreadsheet.

Is duplicate removal case-sensitive?

Yes — “Smith” and “smith” are different lines. Make them match first with the case converter.

See alsoWhole category

  1. TX-01Character and word counterCount characters, words, sentences and paragraphs in any text.
  2. TX-02Lorem Ipsum generatorGenerate Lorem Ipsum placeholder text by paragraphs, sentences or words.
  3. TX-03Case converterConvert text to UPPERCASE, lowercase, Title Case or sentence case.
  4. TX-05Reverse textReverse the characters in a text or the order of words in a sentence.