Remove duplicate lines

Paste a list to remove repeated lines while preserving the order and the first occurrence. You can ignore capitalization or surrounding spaces when comparing lines.

Paste a list to remove repeated lines.

How to use

  1. Put one item on each line.
  2. Choose whether to ignore capitalization and spaces at the edges.
  3. Remove duplicates, check the result and copy or download the list.

Example

With both options enabled, “ Apple ”, “apple” and “Apple” count as the same line. The first spelling and position are kept.

Comparison rules and privacy

  • The original order is preserved and the first occurrence wins.
  • Trimming affects comparison only; the displayed line keeps its original spaces.
  • Case-insensitive matching follows the browser’s locale-aware lowercase conversion.
  • Processing stays in your browser; text is not uploaded.

Processing and privacy

All processing happens in this browser. The input is not sent to the server.

Frequently asked questions

Does the tool sort the list?

No. It preserves the original order and removes later matches.

,
Are surrounding spaces removed from the result?

No. If edge-space comparison is enabled, spaces are ignored when comparing, but the first line is kept as entered.

,
Can I compare without regard to capitalization?

Yes. Select the case-insensitive option. The first matching line is preserved exactly as entered.