Remove duplicate lines
Less repetition. Same order.
- 1Add input
- 2Adjust settings
- 3Get your result
Tool input and files are processed in this browser without being uploaded.
Before you start
Remove repeated whole lines without changing their order. The first copy stays exactly as written; optional case and surrounding-space rules only affect comparison.
How to use this tool
- Paste one entry per line into “Text”, or load the example.
- Choose whether comparisons ignore letter case or surrounding spaces, then remove duplicates.
- Check the remaining line order and copy or download the complete result.
Supported inputs and limits
Paste up to 1 MiB of text. This compares whole lines, not a selected column or part of a URL; review the result before using it.
CR, LF and CRLF line breaks use the first detected style in the result. Malformed Unicode is rejected.
Worked example
Example input
a b a A
Example options
{}Example output
a b A
When something does not work
Keep the source text. If too many lines disappear, turn off case or surrounding-space comparison and run again; shorten input above 1 MiB before retrying.
Frequently asked questions
Are my files uploaded?
No. Files and tool input are processed in your browser. Moving around the site can keep a temporary workspace in the same tab. Refreshing or closing the tab clears it, so download results you want to keep.
What should I check in this result?
The first matching line stays in its original position and spelling. Blank lines count as lines; with surrounding-space comparison, whitespace-only lines match a blank line. This tool does not compare selected fields inside different lines. Ignoring case uses fixed Unicode 17.0 default lowercase data, including contextual Greek sigma, without language-specific rules or Unicode normalization; ß and SS remain different.
Documentation & further reading
Related tools
Convert text encoding
Choose the right text encoding and save a readable TXT file.
Merge text files
Put several text files together in the order you choose.
Word counter
Words, characters, and paragraphs at a glance.
Case converter
Change letter case to suit your text.