How to use

Sort Lines

Put one item on each line. Choose alphabetical or natural order, review the result and save it without uploading your list.

Processed on your device

Text stays in this tab without upload, storage or values in page addresses.

One item per line · up to 500,000 characters and 50,000 lines.

Original text and repeated entries stay intact. This does not deduplicate.

Choose ordering without rewriting your entries

Alphabetical comparison uses the page language: English, Spanish or German. Ignore case is initially on; accent distinctions remain. Natural order compares digit groups so file2 can come before file10. It is not a parser for signed numbers, decimals, dates, versions or CSV columns. Browser collation data can affect linguistic ordering, so inspect the output when an external system expects a different rule.

Descending changes the comparison direction. Entries with equal comparison keys keep their original relative order in either direction. Ignore edge spaces changes only comparison keys, not the exported text. Repeated lines are retained; use the separate duplicate remover when you want unique entries. Sorting is not identity matching, URL normalization or a membership comparison.

Keep counts and exported rows consistent

Blank and whitespace-only lines are removed by default and counted separately. Turn that off to retain them. Input lines equal output lines plus blank lines removed. The shared reader recognizes CRLF, LF, CR, NEL and Unicode line or paragraph separators; a final terminator does not add a phantom row. Output uses LF and a final newline whenever at least one row is retained, including a blank row. Zero rows create an empty TXT.

The input limit is 500,000 UTF-16 units and 50,000 logical lines. Larger input is rejected without truncation. Processing happens in this tab, without upload, storage or text in page addresses. Edits and option changes clear old results. Copy or download the result before clearing the tool or leaving; the site does not keep a list history.

How to use it

  1. Paste one item per line — Keep a source copy or try the example before using your own list.
  2. Choose comparison and direction — Select ascending or descending, natural order and optional comparison rules.
  3. Sort and export — Press Sort lines, inspect counts and original text, then copy or download TXT.

Frequently asked questions

Does sorting remove duplicates?

No. Every retained source row remains, including repeats. Use Remove Duplicate Lines separately if you want one entry per comparison key.

Why does file10 appear before file2?

That is alphabetical ordering. Enable natural order to compare their digit groups. Natural order does not interpret complete decimal values or application version semantics.

Does ignoring spaces trim the downloaded text?

No. It trims only the keys used to compare rows. The first and every other retained row keep their original spacing and spelling.

Can I sort a spreadsheet column?

This tool sorts whole text lines. It does not parse CSV quoting, embedded fields or a selected column. Export the relevant column as plain lines or use a table workflow.