✍️ Text & Writing

Sort Lines

Sort Lines orders one-item-per-line text by A to Z, Z to A, numeric value, or line length. Optional settings let you compare case-insensitively and remove duplicate lines first.

Result lines: 0

How to use

  1. Paste multiline text into the input area.
  2. Choose A to Z, Z to A, numeric, or length sorting.
  3. Optionally ignore case and remove duplicate lines.
  4. Copy the sorted result.

Use cases

  • Alphabetize keywords, tags, or to-do items.
  • Sort numbers, scores, quantities, or prices.
  • Find unusually long headings, labels, or snippets by length.

Privacy & local processing

Text is sorted locally in your browser and is not uploaded.

FAQ

How does numeric sort handle non-numeric lines?
The tool reads a number from the start of each line. Lines without a number are placed after numeric lines and sorted as text.
Which duplicate is kept?
The first matching line is kept before sorting runs.
Are blank lines preserved?
Blank lines are ignored so the output is easier to copy into lists or spreadsheets.

Embed this tool

Last updated: