Outils de texte

Supprimer les lignes en double

Supprimez les lignes répétées d’une liste.

Supprimer les lignes en double

Propulsé par UtilBrix

Vos données restent dans votre navigateur. Aucun compte requis. Character counts use Unicode code points. Reading: 200 words/minute. Speaking: 130 words/minute.

Les méthodes détaillées et les exemples sont disponibles en anglais.

Step-by-step instructions (English)

  1. Paste a list with one entry per line.
  2. Choose whether to trim edges, ignore case, discard blank lines, and preserve the first or last occurrence.
  3. Run the tool and compare the remaining entries with the original list.

Formule et méthode

Lines are compared after optional trimming and case normalization. Preserve first keeps the earliest occurrence; preserve last keeps the final one in its original relative order. Ignoring empty lines removes them from the output.

Exemple pratique

Apple, apple, and Banana on separate lines become Apple and Banana when Ignore case and Preserve first are selected.

When this tool is useful

Clean a list of repeated labels, URLs, or identifiers while keeping a chosen occurrence order. Decide whether case and edge spaces are meaningful before treating two lines as duplicates.

Common mistakes and limitations

  • Ignoring case can merge identifiers that a receiving system treats as distinct.
  • The comparison covers the whole line; matching one column of a CSV requires a separate column-aware process.

Practical questions about this tool (English)

Will removing duplicates sort the list?

No. Deduplication retains the relevant original order. Use Sort Lines afterward if alphabetical or numerical ordering is also needed.

What is the difference between preserving first and last?

Preserve first retains the earliest occurrence. Preserve last retains the final occurrence and its relative position among the surviving lines.

Put this tool into practice

Autres outils utiles

Installer UtilBrix

Accédez à vos outils depuis l’écran d’accueil.

  1. Ouvrez le menu du navigateur (⋮).
  2. Choisissez «Installer l’application» ou «Ajouter à l’écran d’accueil».
  3. Confirmez l’ajout de UtilBrix à l’écran d’accueil.

Si cette option manque, ouvrez la page dans Chrome sur Android.

Rechercher un outil

↑ ↓ Navigate · Enter Open · Esc Close