Ferramentas de texto

Remover linhas duplicadas

Remova linhas repetidas de uma lista.

Remover linhas duplicadas

Desenvolvido por UtilBrix

Seus dados ficam no navegador. Não é preciso criar uma conta. Character counts use Unicode code points. Reading: 200 words/minute. Speaking: 130 words/minute.

Os métodos detalhados e exemplos estão disponíveis em inglês.

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.

Fórmula e método

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.

Exemplo prático

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

Outras ferramentas úteis

Instalar UtilBrix

Acesse suas ferramentas pela tela inicial.

  1. Abra o menu do navegador (⋮).
  2. Escolha «Instalar aplicativo» ou «Adicionar à tela inicial».
  3. Confirme para adicionar UtilBrix à tela inicial.

Se a opção não aparecer, abra a página no Chrome para Android.

Buscar ferramentas

↑ ↓ Navigate · Enter Open · Esc Close