⌕
Text · free online tool

Remove Duplicate Lines.

Keep the first occurrence of every line.

Your workspace◈ Processed on your device
Your result
Your result will appear here.

A little context.

Compares lines exactly and preserves first-occurrence order. Matching is case-sensitive and spaces are significant. Windows line endings are normalized.

Cleaning an exact-match list

Paste one item per line and run the tool to preserve the first appearance of each unique line. This is useful for repeated filenames or copied identifiers when original order matters. Compare the beginning and end of the output before replacing a source list.

Interpreting the result and avoiding mistakes

Matching is case-sensitive and includes spaces. Apple, apple and apple followed by a space are distinct values. The tool normalizes line endings but does not trim, validate email addresses or decide that two differently written names refer to the same person.

A reproducible workspace example

These are the starting values in the form above. The result below is calculated from these values when the page is built, using the same processing engine as the tool.

Lines
apple
banana
apple
pear

Calculated output

apple
banana
pear

Quick reference

apple / banana / apple → apple / banana

How to use this tool

  1. Enter lines in the workspace above.
  2. Select Run tool to process your input. Invalid values produce a message next to the form.
  3. Copy the result or download it as a file. Reset example restores the original input.

Keep a good thing going.

A few related tools for your next step.