ToolPilot
Text

Sort Lines

Sort lines alphabetically, numerically or by length, with optional duplicate removal.

Clean up lists, CSV columns and log files. Sort ascending or descending, ignore case, trim whitespace and remove duplicates in one pass.

Loading the tool…
Privacy: A fast, private ToolPilot utility. Your data is processed locally in your browser whenever possible.

How to

  1. 1Paste one item per line.
  2. 2Pick a sort order and options.
  3. 3Copy or download the sorted list.

Frequently asked questions

How are numbers sorted?

Numeric mode compares the whole number, so 2 comes before 10. Text mode compares characters.

Are my files uploaded to a server?

No. This tool runs entirely in your browser using JavaScript and WebAssembly where needed. Your files and text never leave your device.

Help Us Improve

We regularly improve our tools. Found a problem or have a suggestion? We're listening.

Related tools

🔤

Text Counter

📝

Word & Character Counter Pro

🧹

Remove Duplicate Lines

🔤

Case Converter