en

Sort lines

Sort lines of text, remove duplicates or reverse the order - all locally in your browser, with no upload.

Running locally on your device ...

Action
  • Sort A-Z
  • Sort Z-A
  • Remove duplicates
  • Reverse order
Trim each line
Remove empty lines
Ignore case
Sort numbers naturally (2 before 10)

Running locally on your device ...

0%

Is my file uploaded?

No. Everything runs in your browser - your file never leaves your device. How this is verifiable

No upload100% local
Your content stays with youno third-party access
Hosted in GermanyGlobal Content Delivery
Independently auditedTLS A+ · HTTP headers A+

Lists rarely arrive in the order you want: a collection of names, email addresses, terms or log lines wants to be sorted, freed of duplicates or flipped. This tool takes your multi-line text and brings the lines into the chosen shape - alphabetically ascending or descending, deduplicated or in reverse order. What would otherwise need a spreadsheet or a script is one click here.

Four extra switches refine the result: trim each line cuts away distracting spaces at the start and end, remove empty lines clears gaps, ignore case makes Apple and apple count as equal when sorting and deduplicating, and sort numbers naturally compares digit runs as whole numbers, so 2 comes before 10. Sorting is stable and deterministic - purely by character code unless the numbers switch is on - so the output is reproducible and independent of your device language settings.

All processing runs entirely locally in your browser in pure JavaScript - your text is not uploaded, not stored, and no foreign library is loaded from a CDN. That matters precisely for address lists or log excerpts, which can contain personal data. You can download the result as a text file or copy it straight out.

Specifications

Specifications
Input formatsText input
Output formatTXT
Batch processingNo
ProcessingLocally in your browser (JavaScript)
File uploadNone

In 3 steps

  1. Paste multi-line text into the text field.
  2. Choose the action and set the extra switches if needed.
  3. Read the result or download it as a text file.

Limitations: Sorting is by Unicode character code (deterministic and language-independent), not by the collation rules of a particular language - so digits and uppercase letters come before lowercase letters unless you choose to ignore case. With sort numbers naturally, digit runs are compared as whole numbers (2 before 10); that stays deterministic too. Comparison is per line, not per word. Very large texts are limited by your device memory.

FAQ

Is my text uploaded?

No. Sorting and deduplicating run entirely locally in your browser; your text never leaves your device and is not stored.

Why do uppercase letters come before lowercase?

Because sorting is purely by character code, where uppercase letters come before lowercase. Enable ignore case if capitalization should not matter.

Does deduplicating keep the order?

Yes. Remove duplicates keeps the first occurrence and the original order; it does not additionally sort.

What counts as one line?

Each section separated by a line break. Different line-break styles (Windows and Unix) are handled uniformly.

Why does 10 come before 2 - and how do I sort numbers correctly?

By pure character code the comparison is digit by digit, and the 1 in 10 comes before 2. Enable sort numbers naturally and digit runs are compared as whole numbers, so 2 comes before 10.

Related tools

Change case · Format JSON · Word counter · Clean whitespace · Number Lines · Wrap Text