Sort Lines
Sort text lines in natural ascending or descending order, reverse their original order, or shuffle them locally in your browser.
Start using
Select Reverse original order to reverse complete lines. Turn off Ignore empty lines and Remove duplicates to preserve all entries, including a trailing blank line.
A\n\nB\n → \nB\n\nA
Sort Lines
Sort text lines in natural ascending or descending order, reverse their original order, or shuffle them locally in your browser.
item10 item2 item1 ↓ item1 item2 item10
Natural comparison follows the page language and compares digit groups: item2 comes before item10. It is not a signed or decimal number sort: 1.9 comes before 1.10. Duplicate removal distinguishes case and spaces. Ignoring empty lines removes whitespace-only lines without trimming other lines. Random order may repeat and has no seed. The limit is 500000 UTF-16 units; some emoji count twice. Processing stays in the browser, with no file import, file download or CSV column keys.
Processing takes place locally in your browser.