Free text tool

Line sorter & deduplicator

Sort text lines naturally and remove duplicates in one click. Free browser-only line sorter with numeric ordering and no uploads.

Runs locallyNo upload · No history
Output
Your result will appear here.
Processed only on this device

About this tool

What line sorter & deduplicator does

Clean a pasted list by removing repeated or blank entries and sorting the remaining lines with natural numeric ordering.

How it works

Lines are normalized to Unix-style separators, compared with Intl.Collator, and deduplicated in first-seen order before optional sorting.

Common uses

When to use it

  • Clean hostname, identifier, and inventory lists
  • Sort numbered names such as worker-2 before worker-10
  • Remove repeated values from copied reports

Scope

Limits to know

  • The primary action compares duplicates after trimming surrounding whitespace
  • Locale-aware sorting follows the browser's current locale unless otherwise specified

Worked example

Example input and result

Use the prefilled value in the tool above or paste a similar value of your own.

Input
worker-10
worker-2
worker-10
worker-1
Result
worker-1
worker-2
worker-10

Quick answers

Line sorter & deduplicator FAQ

Does the sorter understand numbers inside text?

Yes. Natural numeric comparison places worker-2 before worker-10.

Are duplicate lines case-sensitive?

The current deduplication action is case-sensitive and trims surrounding whitespace for comparison.

Is the original list stored anywhere?

No. Input and output remain only in the current page state.