# Remove Duplicate Lines

> Delete repeated lines from a list, keeping the first occurrence of each unique line.

To remove duplicate lines, paste your list above. The first occurrence of each unique line is kept and later repeats are dropped. You can match case-insensitively and optionally sort the result alphabetically instead of preserving the original order.

**URL:** https://convertto.tech/t/remove-duplicate-lines
**Category:** Text Tools (https://convertto.tech/c/text-tools)
**Privacy:** Runs entirely in the browser; no upload
**Cost:** Free, no sign-up
**Last updated:** 2026-08-01

## Key facts

- **Privacy:** Runs entirely in your browser — nothing is uploaded
- **Cost:** Free, unlimited, no sign-up

## How to use

1. Enter or paste your lines.
2. Turn "Case sensitive" on or off as needed.
3. Turn "Keep original order" on or off as needed.
4. The result appears immediately — copy or download it.

## FAQ

### Does removing duplicates preserve order?

Here, yes — the first occurrence of each line keeps its position. That matters when the order carries meaning, such as a log or a priority list, where sorting to deduplicate would destroy the information.

### Why do lines that look identical not match?

Usually trailing whitespace, or different line endings if the text came from two sources. Case differences are the other common cause, which is why case-insensitive matching is offered separately.

## Related tools

- [Line Sorter](https://convertto.tech/t/line-sorter): Sort lines alphabetically, numerically, by length or in reverse — with natural-order support.
- [Add Line Numbers](https://convertto.tech/t/add-line-numbers): Prefix every line with a sequential number, with a custom start, separator and zero padding.
- [Columns to Lines Converter](https://convertto.tech/t/columns-to-lines): Switch between a delimited single line and one item per line, in either direction.
- [List Randomizer & Shuffler](https://convertto.tech/t/list-randomizer): Shuffle a list into random order — for draws, pairings, running orders and sampling.
- [Remove Line Breaks](https://convertto.tech/t/remove-line-breaks): Turn multi-line text into a single line, joining with a space, comma or custom separator.
- [ASCII Art Text Generator](https://convertto.tech/t/ascii-art-generator): Turn words into large ASCII banner text for terminals, READMEs and code comments.
- [Case Converter](https://convertto.tech/t/case-converter): Convert text to UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case and more.
- [CSV Duplicate Remover](https://convertto.tech/t/csv-deduplicator): Remove duplicate rows from a CSV, matching on every column or just a key you choose.
