All tools Text

Line Tools

Sort, deduplicate, trim and reverse lines of text.

Runs in your browser. Nothing you open or type here is uploaded.

How to use

  1. Paste your lines into the Input box.
  2. Choose the operations: sort order, trim whitespace, remove duplicates, remove empty lines, reverse order.
  3. Copy the processed lines from the Output box.

Details

The tool applies a set of cleanup operations to a block of text, one line at a time: sorting A to Z or Z to A, trimming whitespace from the edges of each line, removing duplicate lines, dropping empty lines and reversing the order. Deduplication compares lines after trimming, and the first occurrence of a repeated line keeps its position. The output shows a line count, so the effect of each operation is visible.

  • A line containing only spaces counts as empty and is removed along with truly blank lines.
  • The operations combine: sorting and deduplicating together produce a unique list in alphabetical order.

Common questions

How does deduplication work?

Exact duplicates are removed after trimming whitespace — the first occurrence keeps its original position.

What counts as an empty line?

Any line that is empty or contains only whitespace.

Does my text leave the browser?

No — like every WieldKit tool, all processing happens locally on your device.