Mello
Text

Line Tools (Sort, Dedupe, Reverse)

Sort, dedupe, or reverse lines — handy for cleaning up data.

Runs in your browserNo account requiredNo uploadFree
Loading tool…

About Line Tools (Sort, Dedupe, Reverse)

Line Tools is a small toolkit for transformations on a list of lines: alphabetic sort (A→Z or Z→A), dedupe, reverse, trim leading and trailing whitespace, and remove empty lines. The everyday use case is cleaning up a list you have pasted from somewhere — a spreadsheet column, an export, a chain of email addresses — before doing something else with it.

Worked example: paste a list of email addresses copied from a thread, tick 'Trim', 'Drop blanks', 'Dedupe', and pick 'A → Z' sort. The result is a clean, sorted, unique list ready to paste into a recipient field. Switch sort to 'Z → A' for reverse alphabetic; tick 'Reverse' on its own to flip whatever order the lines arrived in. All five toggles combine — pick any subset that fits.

Two notes. Deduplication is case-insensitive by default; tick 'Case-sensitive' to treat 'Apple' and 'apple' as different. Sorting respects the browser's locale (via String.localeCompare), which is correct for most everyday English-language lists; for languages with non-ASCII sort orders (German ß, Scandinavian å/ö, accented letters) the result follows your browser's locale rules. The tool is alphabetic sort only — for numeric ordering of a list of numbers, you'd need to pre-pad them to the same width or use a dedicated sorter.

All transformations run in your browser. Pasted lists — including contact lists, internal data, and private notes — are never uploaded.

Frequently asked questions

Case-insensitive by default; tick 'Case-sensitive' to treat 'Apple' and 'apple' as different lines.

More text tools

Word & Character Counter
Word, character, sentence, paragraph counts and reading-time estimate.
Text
Case Converter
Switch between UPPER, lower, Title, Sentence, camel, snake, and kebab case.
Text
Text Diff Tool
Compare two pieces of text and see what changed, line by line.
Text
Lorem Ipsum Generator
Generate placeholder text by paragraph, sentence, or word count.
Text
Fancy Text Generator
Convert text into 𝐛𝐨𝐥𝐝, 𝑖𝑡𝑎𝑙𝑖𝑐, 𝒔𝒄𝒓𝒊𝒑𝒕, ѕᴍᴀʟʟ ᴄᴀᴘѕ and many more styles.
Text
Slug Generator
Convert any phrase to a clean URL slug.
Text