Remove duplicate lines and keep list order
Paste a list and keep the first or last matching line in its original position. Choose whether to ignore case, Vietnamese accents and empty lines before copying the result.
Paste a list and choose which line to keep
Deduplicate a pasted list in three steps
Paste a list
Paste the list into the input field, one item per line. You can use the sample first to try the matching rules.
Choose rules
Choose the first or last occurrence. By default, the tool ignores case and removes empty lines. Enable Ignore accents only when “Đà Nẵng” and “Da Nang” should count as the same line.
Review result
Select Remove duplicates, review the kept and removed counts, then copy or download TXT. If you change the input or options, run it again before using the result.
Which lines count as duplicates?
The tool compares complete lines and ignores leading or trailing whitespace for matching, while keeping the selected line’s original spelling and spacing in the result.
| Rule | Example | Matching result |
|---|---|---|
| Ignore case (default) | Hà Nội / hà nội | One match; keep the first or last line you select. |
| Ignore accents (optional) | Đà Nẵng / Da Nang | One match when this option and Ignore case are enabled. |
| Leading or trailing spaces | " Huế " / "Huế" | One match; spaces on the retained line remain unchanged. |
| Spaces inside a line | Hà Nội / Hà Nội | Still two different lines. |
Keep the first or last occurrence?
- Keep first or last
- Keep first uses the first line’s spelling in each duplicate group; Keep last uses the final occurrence. The survivors remain in their original relative order and are not sorted A–Z.
- Removed line counts
- Duplicates removed counts repeated lines among the lines checked. Removed blank lines have their own count; if you turn off Remove empty lines, blank lines are also deduplicated and at most one is retained.
- Meaning is not matching
- The tool does not find repeated words within a line, typos, equivalent URLs or sentences with the same meaning. Review the result when case or accents matter for codes, names and identifiers.
Where are the text and draft stored?
Line matching runs in your browser and does not send the text to an KitoTool deduplication API. When local storage is available, the page saves your input and options for a later visit; Clear removes that draft. On a shared device, select Clear when finished. The downloaded TXT contains the result and a UTF-8 marker for accented text.
Comments & feedback
Loading ratings…
Write a commentNo account needed