1. Home
    2. Text & String Utilities
    3. Remove Duplicate Lines

    Remove Duplicate Lines

    Delete repeated lines from any list in one click. Ignore case or spaces, keep the first or last copy, or show only the duplicates.

    Keep
    Your list
    Unique lines

    Everything runs in your browser. Your data never leaves your device.

    Quick answer

    How do I remove duplicate lines?

    Paste your list with one item per line. The Toolzzz Remove Duplicate Lines tool keeps the first copy of each line and removes the rest, while keeping the original order. You can ignore upper and lower case, ignore extra spaces, remove empty lines or show only the lines that were duplicated.

    • Keeps the original order
    • Ignore case option (Apple = apple)
    • Ignore leading and trailing spaces
    • Keep the first or last occurrence
    • Remove empty lines
    • Show only duplicates with counts
    • Shows how many lines were removed
    Remove Duplicate Lines: clean up lists instantly in your browser
    Remove Duplicate Lines on Toolzzz: clean up lists instantly, free and private.
    How it works

    How to remove duplicate lines in 3 steps

    Duplicates are removed as you paste.

    1. Paste your list

      One item per line, or press Upload to open a .txt or .csv file.

    2. Choose the rules

      Ignore case or spaces, keep the first or last copy, and remove empty lines.

    3. Copy the clean list

      Press Copy or Download.

    How to remove duplicate lines in 3 steps in three steps: paste your list, choose the rules, copy the clean list
    How to remove duplicate lines in 3 steps in three steps.
    Use cases

    What people dedupe

    Email lists

    Remove repeated addresses before sending a campaign.

    Keyword lists

    Clean SEO keyword research exports.

    Log files

    Collapse repeated log lines to see unique errors.

    Product SKUs

    Find and remove repeated codes.

    Names and contacts

    Merge lists from several sources.

    URL lists

    Dedupe links for sitemaps or crawls.

    Any device

    How to use the Remove Duplicate Lines on Windows, Mac, iPhone and Android

    No app to install. The tool works in any modern browser, so the steps are almost the same everywhere.

    On Windows

    1. Open toolzzz.com/remove-duplicate-lines/ in Chrome, Edge or Firefox.
    2. Paste (Ctrl+V) your list into the left box, or press Upload to open a file.
    3. Choose whether to ignore case and spaces.
    4. Press Copy to put the result on your clipboard, or Download to save it. Files go to your Downloads folder.

    On Mac

    1. Open toolzzz.com/remove-duplicate-lines/ in Safari or Chrome.
    2. Paste (Cmd+V) your list into the left box, or press Upload to open a file.
    3. Choose whether to ignore case and spaces.
    4. Press Copy to put the result on your clipboard, or Download to save it.

    On iPhone and iPad

    1. Open toolzzz.com/remove-duplicate-lines/ in Safari.
    2. Touch and hold the box, tap Paste to add your list into the left box, or tap Upload to open a file.
    3. Choose whether to ignore case and spaces.
    4. Tap Copy to put the result on your clipboard, or Download to save it. Downloads appear in the Files app.

    On Android

    1. Open toolzzz.com/remove-duplicate-lines/ in Chrome.
    2. Long-tap the box and tap Paste to add your list into the left box, or press Upload to open a file.
    3. Choose whether to ignore case and spaces.
    4. Tap Copy to put the result on your clipboard, or Download to save it. Downloads go to the Downloads folder.
    Comparison

    Toolzzz vs. other online text tools

    FeatureToolzzz Remove Duplicate LinesTypical online text tools
    PriceFree, no limitsFree with ads or word limits
    Where your text goesStays in your browserOften sent to a server
    Sign-upNot neededSometimes needed for long texts
    SpeedUpdates as you typeOften needs a button press
    Text lengthOnly your device memoryOften capped on free plans
    Unicode and emojiFully supportedSometimes broken or miscounted

    "Typical" describes common limits of free online services. Plans and limits differ between sites.

    Why Toolzzz

    Why use Toolzzz for text

    Your text stays private

    Everything runs in this browser tab. Your words are never uploaded, stored or logged.

    Live results

    The result updates as you type, paste or change an option.

    Every language

    Built on Unicode, so accented letters, Arabic, Urdu, Chinese and emoji all work.

    Copy or download

    Copy the result to the clipboard or save it as a .txt file.

    Any device

    Works the same on desktop, tablet and phone browsers.

    Free forever

    No account, no word limits and no paywall.

    Pro tips

    Tips for the best result

    • Turn on Ignore case for emails and domains, which are not case-sensitive.
    • Use Show only the duplicates to see what repeats and how often.
    • To sort the result too, use Sort Lines A to Z with Remove duplicates.
    • Extract addresses from messy text first with Extract Emails.
    • Keep last occurrence when later lines are newer versions.
    Glossary

    Key terms explained

    Duplicate line
    A line whose text matches an earlier line exactly, or after your ignore rules.
    Case-insensitive
    Treating upper and lower case letters as the same.
    Trim
    Removing spaces and tabs at the start and end of a line.
    FAQ

    Frequently asked questions

    Is the tool free?

    Yes. Free and unlimited.

    Is my list uploaded?

    No. Everything runs in your browser.

    Does it keep the original order?

    Yes. The first copy of each line stays where it was.

    Can it ignore upper and lower case?

    Yes. Tick Ignore upper/lower case.

    Can I see which lines were duplicates?

    Yes. Tick Show only the duplicates to list them with how many times each appears.

    Does it remove blank lines?

    Yes, when Remove empty lines is ticked.

    How many lines can it handle?

    Hundreds of thousands of lines in a second or two on a normal computer.

    Can I dedupe a CSV by one column?

    This tool compares whole lines. For column-based dedupe, open the CSV in a spreadsheet.