Text tools
Sort & Dedupe Lines
Sort lines and remove duplicates while controlling spaces, empty lines and letter case.
Runs locallyRuns locally in your browser
Guide
Clean up a line-by-line list. You can keep its order or sort it, remove duplicates and choose whether differences in case or surrounding spaces should count.
- Add your input
Type or paste into Input, choose an example or use Open file.
- Choose the options
Use the controls above the fields. The question-mark buttons explain unfamiliar choices.
- Read and keep the result
Output updates automatically. Copy output or Download keeps the result.
On mobile, choose Output to read the result. Clear removes both fields.
Order
- Ascending: sort from lower to higher Unicode code points, not a language-specific alphabet.
- Descending: sort from higher to lower Unicode code points.
- Original order: keep the input order while applying any selected cleanup options.
Cleanup
- Remove duplicates: keep the first representative of each repeated line.
- Ignore case: compare without uppercase/lowercase differences, preserving the first original spelling.
- Trim lines: remove whitespace from the start and end of each line before comparing.
- Remove empty lines: remove blank lines; combine with Trim lines to remove whitespace-only lines.
Line handling
- Up to 10,000 lines. One final line break terminates the last line; additional empty lines remain unless removed. Output uses Unix line breaks.
Shortcuts
- Ctrl / Cmd + Enter — Run selected action
- Ctrl / Cmd + Shift + C — Copy output
- Ctrl / Cmd + S — Download output
- ? — Show shortcuts outside text fields
Shortcuts work while focus is in the workspace. Copy and download need valid output.
Common questions
- What does this tool support?
- Up to 10,000 lines and 1 MB. Sorting uses Unicode code points, not a language-specific alphabet. Ignore case compares lowercase values. Duplicate removal keeps the first representative after optional trimming. Empty lines stay unless removed; one final line break does not add a line. Output uses Unix line breaks.
- Is my content saved or uploaded?
- No. Only your non-sensitive settings are remembered. Input, output, image data and filenames stay out of storage and statistics.
- What happens with a large result?
- The displayed text is a limited preview above 200,000 characters. Download retains the complete result; copying is limited to 2 MB. A protective limit produces an error, never a silently shortened download.
Was this tool helpful?
Only your rating and optional feedback are sent. Your tool input and output are never included.