Skip to content
OddsockLocal
Local
Source text

Formatting

5 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste one item per line.
  2. Leave ignore case off to keep “Odd” and “odd” as two lines.
  3. Turn ignore case on when capitalisation should not count.
  4. Copy the remaining lines. Their order is the order of first appearance.

What is Remove duplicate lines?

Repeated lines show up in merged logs, copied lists, and exports that print a header twice. This page walks top to bottom and keeps a line the first time it sees that exact text. Later copies are dropped. The survivors stay in their original order, not in sorted order.

Read more

Case is part of the text until you say otherwise. “Odd socks”, then “odd socks”, then “Odd socks” becomes “Odd socks” and “odd socks”. The third line is a repeat of the first. The second is not. Ignore case when deduplicating, set to yes, folds the comparison, so that list becomes the single line “Odd socks”, the first spelling you wrote.

Blank lines are lines. Two blank lines in a row collapse to one. A line that differs by a trailing space is a different line, because the space is a character. Trim first if the duplicates only look different because of padding. A single line such as “Odd socks in the dryer.” has nothing to drop.

Use cases

  • A developer collapsing a log that printed the same error on ten lines.
  • A librarian merging two bibliographies that share some entries.
  • A support agent deduping email addresses that were pasted twice, one per line.
  • A teacher removing repeated names while keeping the order students signed up.
  • Someone who needs “Red” and “red” to count as one row, and turns ignore case on to do it.

Same words, different case, three lines

Odd socks odd socks Odd socks Ignore case left off.

Odd socks odd socks The third line repeats the first and is dropped. The lowercased line stays.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

The first one. Later exact copies are removed. The list is not sorted.