Cette page n’est pas encore traduite en français : elle s’affiche en anglais.

Remove Duplicate Lines & Sort Lines

Paste a list to remove duplicate lines instantly. Ignore case or surrounding spaces, drop empty lines, and sort the result alphabetically, naturally, by length or at random.

Mis à jour le
0
Input lines
0
Output lines
0
Duplicates removed
0
Empty lines removed
Result
Duplicated lines 0
LineTimes

Vos données ne quittent jamais votre ordinateur. Tout le traitement se fait localement dans votre navigateur.

Comment utiliser : Remove Duplicate Lines

  1. Paste your list into Input (one item per line) or open a .txt/.csv file.
  2. Choose how lines are compared: Ignore case treats “Apple” and “apple” as the same, Trim spaces ignores leading and trailing whitespace.
  3. Optionally pick a Sort order — alphabetical, natural numeric, by length, reversed or shuffled.
  4. Copy or download the result. The counters show how many duplicates and empty lines were removed.

What does a duplicate line remover do?

It goes through text line by line and keeps only the first (or last) occurrence of each line, deleting the repeats while preserving the original order. It's the quickest way to clean up email lists, keyword lists, URLs from a crawl, log entries, CSV columns, tag lists or any export that contains the same value more than once — without opening a spreadsheet or writing a script. Everything runs in your browser, so even lists with hundreds of thousands of lines are processed instantly and privately.

Comparison options

OptionEffectExample
Ignore caseLines that differ only in capitalization count as duplicates; the first spelling is kept.Apple, apple, APPLE → Apple
Trim spacesLeading and trailing spaces and tabs are removed before comparing and in the output." red " and "red" → red
Remove empty linesBlank or whitespace-only lines are dropped.—
Keep only lines that never repeatRemoves every copy of a duplicated line, leaving values that occur exactly once.a b a c → b c
Keep last occurrenceEach value stays at the position of its last appearance — useful for logs where the latest entry wins.a b a → b a

Sorting lines

  • A → Z / Z → A sorts alphabetically using your browser's locale-aware collation, so accented letters sort next to their base letters (é with e).
  • Natural sorts numbers inside text by value: file2, file10, file100 instead of the plain alphabetical file10, file100, file2.
  • By length orders lines from shortest to longest (or the reverse), handy for finding outliers.
  • Shuffle randomizes the order with an unbiased Fisher–Yates shuffle — for raffles, sampling or randomized test data.

Equivalent command-line recipes

On Linux or macOS, sort -u file.txt removes duplicates but also sorts; awk '!seen[$0]++' file.txt keeps the original order like this tool's default; sort file.txt | uniq -u keeps only lines that never repeat; sort -V is a natural sort. This page gives the same results without a terminal and shows exactly which lines were duplicated and how often.

Need to compare two lists instead? Use the Diff Checker. To change capitalization of the whole list first, run it through the Case Converter.

Aussi recherché comme : dedupe lines, remove duplicates, unique lines, sort lines, delete duplicate lines, distinct, sort alphabetically, shuffle lines.

Outils complémentaires : Remove Duplicate Lines

  • Compteur de mots — Collez ou saisissez votre texte pour compter en temps réel le nombre de mots et de caractères, ainsi que la durée de lecture et de prononciation, la densité des mots-clés et la longueur des titres, méta-descriptions et publications sur les réseaux sociaux à des fins de référencement.
  • CSV to JSON — Paste CSV or TSV and get a JSON array of objects.
  • Slug Generator — Convert any title into a clean, lowercase URL slug — with proper transliteration of accents, umlauts and Cyrillic, optional stop-word removal and a bulk mode for whole lists.
  • Markdown Table Generator — Build a table in a spreadsheet-like editor — or paste cells from Excel, Google Sheets or CSV — set column alignment and get a neatly aligned Markdown table (GitHub-flavored) or clean HTML.

Questions fréquentes

Does it keep the original order of my lines?
Yes. By default the first occurrence of each line stays where it was and later repeats are removed. Choose a Sort option only if you want the order changed.
How do I remove duplicates but ignore upper and lower case?
Tick Ignore case. “Email@Example.com” and “email@example.com” are then treated as the same line, and the spelling of the first one is kept.
Is there a limit on the number of lines?
There is no fixed limit; processing happens in your browser and handles hundreds of thousands of lines in well under a second on a modern device. Very large files (tens of megabytes) depend on your device’s memory.
Is my list uploaded to a server?
No. The text is processed entirely in your browser and is not stored or transmitted, so it’s safe to use with customer lists or internal data.
Can I see which lines were duplicates?
Yes — open the Duplicated lines panel below the editor to see each repeated line and how many times it appeared, sorted by frequency.
Puis-je installer Remove Duplicate Lines en tant qu’application web et l’utiliser hors ligne ?
Oui. Remove Duplicate Lines est une application web installable (PWA) : elle s’installe depuis votre navigateur, sans passer par une boutique d’applications. Cliquez sur « Installer l’application » en haut de cette page dans Chrome ou Edge (Windows, macOS, Linux, ChromeOS) ; sur Android, utilisez « Partager » → « Ajouter à l’écran d’accueil » sur iPhone et iPad ; ou « Fichier » → « Ajouter au Dock » dans Safari 17+ sur Mac. L’application s’ouvre alors dans sa propre fenêtre avec sa propre icône, et comme elle s’exécute entièrement dans votre navigateur, elle continue de fonctionner hors ligne. Firefox sur ordinateur de bureau ne permet pas d’installer d’applications web. Comment fonctionne l’installation.

Outils similaires