Line Tools
Remove duplicate lines, sort alphabetically or numerically, reverse, shuffle, and trim text lines. Free, browser-based, no server required.
How to Use
- Paste or type your text into the Input Lines textarea — one item per line.
- Click any action button: Remove Duplicates (unique lines), Sort A→Z / Z→A (alphabetical), Sort Numeric (by leading number), Reverse (flip order), Shuffle (randomize), Trim Lines (strip whitespace), or Remove Empty (delete blank lines).
- The result appears in the Output textarea. Click Copy to copy it to your clipboard.
Worked Examples
Remove duplicates from a list
Input:
apple
banana
cherry
apple
banana
date
After clicking Remove Duplicates:
apple
banana
cherry
date
Sort numerically
Input:
100 items
3 items
42 items
7 items
After clicking Sort Numeric:
3 items
7 items
42 items
100 items
Combine operations
You can chain operations: first Trim Lines to clean whitespace, then Remove Duplicates, then Sort A→Z. Copy the output back to input between steps or use the output directly.
Common Use Cases
Line tools are useful for cleaning up data exports, deduplicating email lists, sorting log entries, preparing word lists, cleaning CSV columns, and any task where you need to manipulate text line by line.
FAQ
How does duplicate removal work?
Lines are compared exactly (case-sensitive). The first occurrence of each unique line is kept, and subsequent duplicates are removed while preserving the original order of first appearances.
Is the comparison case-sensitive?
Yes. 'Apple' and 'apple' are treated as different lines. To make a case-insensitive comparison, convert your text to lowercase first using our Text Case Converter tool.
How does numeric sort work?
Lines starting with a number are sorted by their numeric value. Non-numeric lines are sorted alphabetically and placed at the end.
Is there a line limit?
There is no hard limit — processing happens entirely in your browser. Files with tens of thousands of lines process instantly on modern devices.
Is my data sent anywhere?
No. All processing runs 100% in your browser using JavaScript. Your data never leaves your machine.