Sort lines using proper locale collation, so accented letters sort next to their base letter instead of after Z.
Remove Duplicate Lines
Remove repeated lines while keeping the first occurrence of each in its original position.
- Free
- No sign-up
- Runs in your browser
Input
0 characters
Processed entirely in your browser. Nothing is uploaded.
Try an example
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 into the box, one item per line.
- 2
The processed text appears below. Use Copy to put it on the clipboard or Download to save it as a .txt file.
Questions about Remove Duplicate Lines
Which copy is kept?
The first one, in its original position. The remaining lines keep their order, so the output is your list with later repeats deleted rather than a re-sorted set.
Why would I ignore surrounding spaces?
Because lines copied from different sources often differ only by a trailing space or tab, which makes them count as distinct. Turning that option on treats them as the same line.
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 Remove Duplicate Lines work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Remove Duplicate Lines keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the Remove Duplicate Lines uploaded or stored?
No. The Remove Duplicate Lines 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 from shortest to longest, measuring length in visible characters.
Delete empty and whitespace-only lines, or collapse runs of them into one.
Find repeated lines or words and report how often each appears and where.
Turn a line-separated list into a CSV row, quoting values that contain the delimiter, quotes or newlines.
Split a CSV row into a line-separated list, correctly unwrapping quoted fields.
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.