Line Tools

Paste a block of text and run line operations on it. Sort alphabetically up or down, drop repeated lines, flip the order, or trim leading and trailing spaces from each line.

Formula
split on newline · sort / dedupe / reverse / trim · rejoin with newline

FAQ

Do blank lines count?
Yes. Sorting and reversing keep every line; the duplicate and trim steps leave blank lines in place unless you remove them yourself.

Embed this calculator on your site

Cite this page

About these results

Every calculation on this page runs locally in your browser using published, standard formulas — nothing you enter is sent to a server. Results are estimates for planning purposes and can differ from real-world conditions; always follow your local building code and the advice of a qualified professional for final decisions. You can read more about who builds and maintains these tools on our About page. About MateCalc.

Related Calculators