Sort / Dedupe Lines
How do I sort lines of text?
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
This tool takes a block of text and either sorts its lines alphabetically, in ascending (A→Z) or descending (Z→A) order, or removes duplicate lines while preserving the rest, working purely on a line-by-line text basis rather than on the content's meaning. It's a simple text-processing operation, but doing it by hand across more than a handful of lines is slow and error-prone.
It is used by anyone maintaining lists in plain text — alphabetizing a name list, a set of tags or keywords, or a spreadsheet column pasted as text — and by developers and writers cleaning up data such as a list of URLs, log lines, email addresses or CSV values where duplicate entries have crept in from repeated exports or merges. Removing duplicates before importing a list into a spreadsheet, database or mailing tool avoids double-counting or sending something twice.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)