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": "..."}.

🤖 Use this API as a Claude Skill

Want an AI agent (Claude Code, claude.ai, or anything else that supports the Agent Skills format) to use this tool for you on request? Download the skill below and add it:

⬇️ Download SKILL.md · View raw