Remove repeated lines while keeping the first occurrence of each in its original position.
Text Duplicate Detector
Find repeated lines or words and report how often each appears and where.
- Free
- No sign-up
- Runs in your browser
Input
0 characters
Processed entirely in your browser. Nothing is uploaded.
Fill in Your text to continue.
Enter your input to see the result
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Paste your list or document.
- 2
Choose whether to look for duplicate lines or duplicate words.
- 3
The table lists each repeated item with its count and the positions where it appears.
Questions about Text Duplicate Detector
How is this different from removing duplicates?
This one reports rather than edits: it tells you what is repeated and where, so you can decide what to do. The remove-duplicates tool deletes the later copies for you.
What do the positions mean?
One-based indices within the units being checked - line numbers when checking lines, or word positions when checking words. Blank lines are skipped and do not consume a number.
Is my text uploaded anywhere?
No. This tool runs as JavaScript inside your browser tab. There is no network request carrying your text, nothing is written to a server log, and the tool keeps working with your connection switched off. You can confirm it yourself in the browser’s network panel.
Does the Text Duplicate Detector work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Text Duplicate Detector keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the Text Duplicate Detector uploaded or stored?
No. The Text Duplicate Detector runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.
Related tools
Other tools you might reach for next.
Sort lines using proper locale collation, so accented letters sort next to their base letter instead of after Z.
Sort lines from shortest to longest, measuring length in visible characters.
Delete empty and whitespace-only lines, or collapse runs of them into one.
Compare two texts line by line with a longest-common-subsequence diff, the same approach git uses.
Compare two documents in a side-by-side aligned view with additions, removals and unchanged lines marked.
Count words, characters, sentences, paragraphs and UTF-8 size, with all three definitions of "character" reported separately.
Count characters three ways - UTF-16 code units, Unicode code points and visible grapheme clusters - plus the UTF-8 byte size.