Text Tools
Usage statistics

If enabled, we record task stages and error categories for up to 30 days. Off by default; you can change this at any time. Your choice is stored in a first-party cookie for 180 days.

Servers count successful page responses by public page and broad request category for up to 30 days. This separate count has no visitor identifier, IP, file or input contents and is not a count of people.

← All tools

Remove Duplicate Lines

Keep the first copy of each exactly matching line.

Basic task · Remove Duplicate Lines

Remove duplicate lines with a source-line audit

Paste up to 200,000 characters and 20,000 lines. Exact comparison is the default. Trimming, case-insensitive comparison and NFC normalization affect matching only: the chosen original line is retained. Choose the first or last occurrence. Output line endings become LF; the final newline is retained when present.

Tested example and files

What this verification covers

The report records kept and removed source line numbers, not line contents. Optional transformations affect comparison keys only; no NFKC substitution or invisible-character deletion.

Basic task instructions

The instructions in this section apply to the basic task. The verification workflow has its own inputs, settings and limits, shown in its workspace.

How it works

Put one entry on each line in Input, then select Run. For cat, cat, Cat on separate lines, cat and Cat remain in that order. If duplicates remain, check spaces and capitalization: only exact matches are removed.

The basic task keeps the first exactly matching line, including case and spaces. The verification workflow adds optional trim, case-insensitive and NFC comparison, first/last retention and a source-line report. These choices affect comparison keys; they do not rewrite the retained original line. Open this workflow

Example

A quiet morning.
Write one clear sentence.
A quiet morning.

Limits

Up to 1 MiB total UTF-8 input. Line operations normalize CRLF/CR to LF. Processing stops after 5 seconds.

Lines ≤ 50,000.

Related tools

Did this help you solve your problem?

We send your selected answers and page information, never your files or input contents. Feedback is kept for up to 30 days. Privacy

Did this help you solve your problem?