OnlineNotes Logo

    Remove Duplicate Lines

    Paste any list. Repeated lines disappear as you type, the first copy of each line stays where it was, and the count shows what was removed.

    Options

    About this tool

    Duplicate lines creep in whenever two lists get merged: email exports, keyword lists, log files, product SKUs. A spreadsheet can remove them, but it needs a column, a menu and a second look to check nothing moved. Here the result is live, and the order of what stays never changes.

    Most lines that look identical but are not differ in one of two ways: letter case, or a stray space at the end after a copy from a spreadsheet. Both options are on by default, so "[email protected]" and "[email protected] " count as one line. Turn them off when case matters, such as in code.

    How it works

    1. Paste your list into the input box, one item per line.
    2. The tool reads top to bottom and remembers each line it has seen. A later copy is dropped.
    3. Choose whether case and end spaces count as a difference. The output updates at once.
    4. Copy the cleaned list. The numbers above it show lines in, lines out and what was removed.

    Worked example

    Input

    red
    Blue
    red
    blue
    green

    Output

    red
    Blue
    green

    With "Ignore upper and lower case" on, "blue" counts as a copy of "Blue", so the first spelling stays. Turn the option off and all four distinct lines remain.

    Edge cases and limits

    • It compares whole lines. Two lines that share a word are not duplicates. To split a comma-separated list first, use find and replace.
    • With "Remove empty lines" off, blank lines are kept as they are and are not treated as duplicates of each other.
    • It keeps the first copy, not the last. To sort the result as well, use the alphabetize tool.
    • Accented letters count as different letters, so "cafe" and "café" both stay.

    Frequently asked questions

    Does removing duplicates change the order of my list?

    No. Each line stays in its original position, and only later copies are dropped.

    Is my list uploaded anywhere?

    No. The work happens in your browser, and nothing you paste is sent to a server.

    How do I remove duplicates in Notepad or Notepad++?

    Windows Notepad has no duplicate removal. Notepad++ has Edit, Line Operations, Remove Duplicate Lines. Pasting here gives the same result with a count of what was removed, on any device.

    Related tools