Remove Duplicate Lines
Delete repeated lines from a list and keep the first occurrence of each, in order.
Text
Sort lines A to Z, Z to A, by number, by length, shuffle them or reverse the order.
Processed locally in your browser.
Alphabetizing a guest list, ordering file names that contain numbers or randomizing a list of names are all line-sorting jobs. Paste the list and choose how it should be ordered.
Alphabetical sorting compares text character by character, so item10 comes before item2. Natural order compares the numbers by value and puts item2 first. The shuffle uses your browser's secure random generator, so every ordering is equally likely.
Input
item10 item2 item1
Result
item1 item10 item2
Input
item10 item2 item1
Result
item1 item2 item10
Input
pear fig banana
Result
fig pear banana
Plain alphabetical sorting compares one character at a time, and 1 comes before 2. Choose natural order to sort the numbers inside a line by their value instead.
It uses the Web Crypto random number generator built into your browser with an unbiased Fisher-Yates shuffle, so no ordering is favored. It is a good fit for draws and raffles that do not need an audit trail.