a b
Use the inputs above for your own values. The result follows the method and assumptions shown below.
How it works
Keep the first occurrence of each exact, case-sensitive line; preserve order
Input definitions
- Lines
- Plain text; maximum 200,000 characters.
A worked example
- Lines
- a b a
Assumptions & limits
Unicode plain text only. No input is uploaded. Maximum 200,000 characters.
Sources & review
Maintained by AnsRio. Methods and examples are reviewed against the stated formula; this is not professional certification.
Method updated 2026-10-17. Reviewed against the stated method and example. Our verification approach.
Report an issue with this tool or suggest an improvement ↗
Common questions
Can I paste formatted documents into this text tool?
The tool processes plain text. Styling, document structure and rich-text metadata are not preserved. Copy the result before closing the page.
How does the Remove duplicate lines tool work?
Keep the first occurrence of each exact, case-sensitive line; preserve order.
What are the assumptions and limits of Remove duplicate lines?
Unicode plain text only. No input is uploaded. Maximum 200,000 characters.