Skip to content
Shrake DevTools
  • JSON FormatterData & Format
  • JSON ValidatorData & Format
  • JSON MinifierData & Format
  • JSON ↔ YAML ConverterData & Format
  • XML FormatterData & Format
  • Base64 Encoder / DecoderData & Format
  • URL Encoder / DecoderData & Format
  • JWT InspectorData & Format
↑ ↓ to navigate↵ to openEsc to close

Line Sorter / Deduplicator

Runs locally in your browser. Your input is not uploaded.Free, no sign-up

Input

Output

Sort lines, remove duplicates and use natural or case-sensitive ordering.

How to use the Line Sorter and Duplicate Remover

  1. Paste one item per line (hostnames, IDs, emails, log lines), or click Sample.
  2. Choose how to sort and what to do with duplicates. The result updates as you type.
  3. Copy or download the lines.

Sorting

  • Natural compares numbers by value: server-2 comes before server-10.
  • Dictionary uses your language's alphabetical order, so accented letters sort where you'd expect.
  • Code point matches LC_ALL=C sort: uppercase before lowercase, digits and punctuation by their character codes.

Duplicates

  • Remove (keep first) is like sort -u. Unless Case-sensitive is on, Server-2 and server-2 count as the same line.
  • Keep only lines that appear once is like uniq -u: every repeated line is dropped entirely.
  • Count is like sort | uniq -c, prefixing each line with how often it appears.

Frequently asked questions

How many lines can it handle?

Hundreds of thousands. Everything runs in your browser, so very large inputs depend on your device.

Is my list uploaded?

No. Sorting happens in your browser.