Six ways to order
A to Z, Z to A, shortest first, longest first, reverse the current order, or keep the order and only clean up.
Sort, reverse and clean up a list of lines in one click.
Your result appears here as you type.
Sort Lines is a free online tool that lets you sort, reverse and clean up a list of lines in one click. It works in your web browser with no signup. Enter your text or numbers and see the result instantly. Everything you type stays in your browser.
Also searched as: sort text alphabetically, alphabetize a list, reverse lines, sort a list online.
Open Sort Lines and paste or type your text into the input box.
Your result updates instantly as you type โ no button to click.
Adjust any mode or format options shown above the result, if the tool offers them.
Copy the output with one click, or leave it in place to keep editing.
Sort Lines
Sort A to Z or Z to A, by length, or reverse the order, and tidy spaces and blank lines at the same time. The result updates as you type.
A to Z, Z to A, shortest first, longest first, reverse the current order, or keep the order and only clean up.
Trim spaces around each line and remove empty lines, both on by default.
Treat upper and lower case alike, and sort numbers so that 2 comes before 10.
You see the result and the number of lines as you type.
Your list is sorted in your browser and never uploaded.
No account and no limit.
Without it, 10 can come before 2. With it, lines sort the way people expect.
Sort and trim your list, then use Remove Duplicate Lines to make each line unique.
Choose the keep-order option to remove blank lines and extra spaces without changing the order.
Short, practical guides that go with this tool.
Sort Lines runs as client-side JavaScript inside your own browser tab. Your file or text is read, processed, and turned into a result on your device โ it is never sent to, stored on, or seen by Toolkitties' servers. Closing or refreshing the page clears everything.
It sorts A to Z or Z to A, by length, or in reverse, and can trim spaces and remove empty lines.
Numbers inside lines are compared by value, so 2 comes before 10 instead of after it.
Yes. The ignore upper and lower case option is on by default.
Yes. Choose the keep-order option so only the clean-up options are applied.
No. For that, use Remove Duplicate Lines.
No. It is processed in your browser.
Yes. Sort Lines is 100% free, with no signup, no daily limit and no paid plans.
No signup or login is required. Open the page and start using Sort Lines immediately.
Yes. Sort Lines processes your file locally in your browser using client-side code. The file itself is never uploaded to Toolkitties' servers.
No. Your text is processed in memory in your browser tab and is cleared as soon as you close or refresh the page.