Illustration of a list of lines with repeated entries being filtered down to only unique lines

Duplicate Line Remover

Paste text and remove duplicate lines, live. Choose whether to keep the first or last occurrence, and whether comparison ignores case or leading/trailing whitespace. Runs entirely in your browser.


💻 Show API usage examples (cURL)
curl -sS -X POST https://devops.majbase.com/duplicate-line-remover/api -H "Content-Type: application/json" -d '{"text":"apple\nbanana\napple\ncherry","keep":"first"}'

Returns {"result", "original_count", "unique_count", "removed_count"}, or {"error": "..."}.