Sort, deduplicate, reverse, shuffle, and clean up lines of text instantly.
This tool processes text line by line. Each newline-separated entry is treated as one item. All operations run entirely in your browser — no data is sent to any server.
Sort A→Z / Z→A: Alphabetical sort using locale-aware comparison. Enable case-insensitive to ignore upper/lower case.
Reverse: Flips the order of lines without any sorting.
Shuffle: Randomises line order using the Fisher-Yates algorithm.
Remove Duplicates: Removes duplicate lines, keeping the first occurrence. Case-insensitive option makes it ignore case when detecting duplicates.
Remove Empty Lines: Strips blank lines and whitespace-only lines from the result.
Trim Each Line: Removes leading and trailing whitespace from every line.
Number Lines: Prepends a line number and a tab to each line (e.g. 1 banana).