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.
- Select the comparison options you need, then choose “Remove duplicate lines”. Leave both off for exact line matches; changing an option alone does not update the result.
- Check the retained lines and their relative order. Select “Copy result” to copy the complete text, or download result.txt as UTF-8 text.
Supported inputs and limits
Input is limited to 1 MiB (1,048,576 bytes) in UTF-8, including spaces and line breaks. Comparison uses the complete line; it cannot pick a column, name field or part of a URL.
CR, LF and CRLF line breaks use the first detected style in the result. Malformed Unicode is rejected.
The preview shows up to 4,000 Unicode code points. Copy and download contain the complete result. Empty input or repeated empty lines can produce empty text and a zero-byte result.txt.
Worked example
Example input
a b a A
Example options
{}Example output
a b A
When something does not work
Keep the original text. If meaningful differences were merged, turn off the comparison options and run again. For an oversized input, process smaller sections; for other failures, paste an intact copy of the source and retry. A failed run clears the result, while edits or cancellation can leave an older result visible. Run again and check the retained lines before copying or downloading.
Frequently asked questions
Where is my pasted text processed and kept?
Duplicate removal runs in your browser. The same tab can temporarily keep text, options and results when you switch tools, within the workspace's size and time limits. Refreshing or closing the tab clears that memory. Copy the result or download result.txt to keep it.
Why can similar-looking lines remain different?
With both options off, every character in a line must match, including spaces. Surrounding-whitespace comparison ignores whitespace at the two ends only; spaces inside a line still matter, and whitespace-only lines can match an empty line. Ignoring case uses fixed Unicode 17.0 default lowercase data, including contextual Greek sigma. It does not apply language-specific rules, full Unicode case folding or normalization: ß and SS remain different, as do composed é and e followed by a combining accent. The first matching line stays as written, and retained lines keep their relative order.
How do I keep the complete, current result?
Run “Remove duplicate lines” after changing the text or either option. A previous result can remain visible after edits or cancellation. The preview stops at 4,000 Unicode code points; “Copy result” and the UTF-8 result.txt download include the complete retained text, rather than the counts in Output details. If copying fails, use the download. Loading the example keeps your current checkbox settings; clearing the workspace turns both options off again.
Documentation & further reading
Related tools
TXT to UTF-8
Read a TXT file with the right source encoding and save it as UTF-8.
Merge TXT files
Combine TXT files in your chosen order and save one UTF-8 text file.
Word counter
Words, characters, and paragraphs at a glance.
Case converter
Change pasted text to uppercase, lowercase or simple capitalized forms.