MicaraTools

Sort Lines

Sort and dedupe any list of lines.

  • 100% free
  • No sign-up
  • Private — runs in your browser
  • Instant results

Sort any list of lines

Paste a list and sort it alphabetically, numerically, or by length — ascending or descending. You can also remove duplicates, ignore case, and trim stray whitespace, all in one pass. Nothing is uploaded; it runs entirely in your browser.

The sort modes

  • Alphabetical — A → Z or Z → A, with optional case-insensitivity.
  • Numeric — orders lines by their numeric value, not character by character.
  • Length — shortest to longest or the reverse.

FAQ

Why use numeric sort instead of alphabetical?

Alphabetical sorting puts "10" before "2" because it compares characters left to right. Numeric sort reads the actual value, so 2 correctly comes before 10 — essential for any list of numbers.

Is this sort tool free, and does my text stay private?

Yes — it's free with no sign-up, and the sorting runs entirely in your browser. The list you paste is never uploaded or stored, so it's safe to use with private or sensitive lines.

Can it remove duplicate lines?

Yes. Turn on the remove-duplicates option and the tool keeps only one copy of each line in a single pass. Combine it with "ignore case" so that entries differing only in capitalization are treated as the same.

What does "ignore case" do?

It tells the sort and the duplicate check to treat uppercase and lowercase as equivalent, so "Apple" and "apple" sort together and count as duplicates. Leave it off when capitalization matters to you.

Will it keep blank lines and extra spaces?

You control that. The trim-whitespace option strips leading and trailing spaces from each line before sorting, which also helps the duplicate check match lines that differ only by stray spacing.

Does it work on mobile?

Yes. It's responsive and runs in any mobile browser, so you can paste, sort, and copy a list back out on a phone or tablet.

Related tools