Sort & Deduplicate Lines
Sort lines alphabetically, numerically, or by length, and remove duplicates.
Recommended next steps
Related tools
Collapse extra spaces, trim lines, and remove blank lines or line breaks.
Compare two blocks of text and see added and removed lines side by side.
Convert text between camelCase, snake_case, kebab-case, Title Case, and more.
Frequently asked questions
Numeric sort reads the number at the start of each line. Lines that do not begin with a number are pushed to the end of the list, so a stray label never lands in the middle of a numeric ordering.
By default duplicate removal is case-insensitive, so "Apple" and "apple" count as the same line and only the first is kept. Enable "Case-sensitive" to treat differently-cased lines as distinct.
No. Sorting and de-duplication run entirely in your browser. Nothing you paste is uploaded, logged, or stored.
Last updated 2026-06-20.