Sort Text (Lines)

Sort lines of text alphabetically, by length, or numerically, in either direction — with options to ignore case, remove duplicates, and drop empty lines.

The Sort Text tool arranges lines of text into order — alphabetically, by length, or numerically — in either direction. Paste a list and get it sorted instantly, with options to ignore case, remove duplicates, and drop blank lines.

It works line by line, so it is ideal for lists, names, keywords, or any data with one item per line. Everything runs in your browser and nothing is uploaded.

How to sort text

  1. Paste your lines into the input box.
  2. Choose the order — A→Z, Z→A, by length, or numeric.
  3. Toggle ignore case, remove duplicates, or remove empty lines as needed.
  4. Copy the sorted result.

Sort orders explained

Alphabetical (A→Z and Z→A) orders lines by their text. Length sorts by the number of characters, useful for finding the shortest or longest entries. Numeric sorting reads the first number in each line and orders by value, so “item 2” comes before “item 10” — unlike alphabetical sorting, which would put “10” before “2”. Ties fall back to alphabetical order so the result is stable.

Cleaning while you sort

The same pass can tidy your list: “Ignore case” makes the sort case-insensitive (so it does not group all capitals first), “Remove duplicates” drops repeated lines, and “Remove empty lines” strips blanks. Combining these turns a messy pasted list into a clean, ordered one in a single step.

Frequently Asked Questions

How do I sort a list alphabetically?

Paste it, choose A→Z (or Z→A for reverse), and the tool sorts the lines instantly. You can also ignore case for a cleaner alphabetical order.

Why use numeric sort?

Numeric sort orders by the number in each line, so 2 comes before 10. Alphabetical sorting would incorrectly place 10 before 2.

Can it remove duplicates and blanks too?

Yes. Enable “Remove duplicates” and “Remove empty lines” to clean the list as it sorts.

Is it free and private?

Yes, it is free and runs entirely in your browser.