Line Sorter & Deduper
Sort, dedupe, and filter lines with regex include/exclude.
About the Line Sorter & Deduper
Clean up lists of lines: sort alphabetically or by length, remove duplicates (optionally case-insensitive), trim whitespace, drop empty lines, and filter with include/exclude regular expressions.
Popular uses
- sort lines
- dedupe
- remove duplicates
- line filter
- text tool
Examples
Dedupe list
apple
banana
appleOutput
apple
bananaKeyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
Code Comment Stripper
Dev Utilities
Remove comments from JS, HTML, Python, or SQL source.
Code Screenshot Generator
Dev Utilities
Turn code snippets into shareable syntax-highlighted images.
Markdown TOC Generator
Dev Utilities
Build a linked table of contents from Markdown headings.
Regex Cheatsheet
Dev Utilities
Searchable regex syntax reference with examples and copy buttons.
Regex Tester
Dev Utilities
Test regular expressions with live match highlighting.
String Escaper
Dev Utilities
Escape and unescape strings for JSON, JS, HTML, XML, SQL, RegExp, and shell.
Works well with
Next steps from other categories.
Remove Duplicate Lines
Text & String
Deduplicate lines of text with flexible matching.
Sort Lines
Text & String
Sort lines alphabetically, numerically, or by length.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser