Remove duplicate lines from any text with case-sensitive or case-insensitive matching. Optionally remove blank lines and sort the output โ copy the result instantly.
1 lines
Options
Paste lines and click Remove Duplicates
Duplicate records often appear in exports, word lists, logs, and configuration files. This tool keeps the first occurrence of each line, optionally ignoring letter case and blank lines.
Apple and apple as different.const unique = [...new Set(text.split("\n"))].join("\n");
unique = list(dict.fromkeys(text.splitlines()))
Sort only when order is not meaningful; log files and priority lists often need their original order preserved.
This tool is provided for general informational and utility purposes only. Results may be inaccurate, incomplete, outdated, or contain errors. Always verify results before relying on or using them.
Some tools may use AI, automated processing, third-party services, or server-side processing. Do not rely on these tools as a substitute for professional advice.
Use at your own risk. BestToolOnline makes no guarantees regarding the accuracy, reliability, completeness, availability, or suitability of results, to the maximum extent permitted by applicable law.
See our Terms of Service and Privacy Policy for complete details.