ToolCabana

Removedor de linhas duplicadas

Remove linhas repetidas, com opção de diferenciar maiúsculas e minúsculas.

Favorites are saved in this browser. Find them in My favorites.

Removedor de linhas duplicadas

Instant results · processed in your browser
Update results automatically as you type or change settings. Turn off to run manually.Clear your input, files and result, and restore the default settings.
Load sample text to explore what this tool can do. This replaces your current input.
0 charactersClear the source text.

Type or paste to update the result automatically.

Your result appears here

Type, paste, or use an example. Copy your result when it is ready.

Como usar Removedor de linhas duplicadas

Remove Duplicate Lines deletes repeated lines from a list and keeps the first copy of each in its original order. Matching is case-sensitive by default; you can switch that off, trim spaces from line edges before comparing, drop empty lines, or keep the last occurrence of each line instead of the first.

  1. Digite ou cole sua fonte, ou carregue um exemplo.
  2. Altere as configurações básicas ou abra o modo avançado para refinar o resultado.
  3. Revise e copie ou baixe seu resultado. Pause os resultados ao vivo para executar manualmente. Fontes ou configurações individuais acima de 20,000 caracteres exigem uma execução explícita.

O que esta ferramenta suporta

Remove linhas repetidas, com opção de diferenciar maiúsculas e minúsculas.

Aparar as bordas das linhas
Set this value for your task.
Diferenciar maiúsculas e minúsculas
Set this value for your task.
Manter linhas vazias
Set this value for your task.
Manter a última ocorrência
Set this value for your task.

Limites e processamento

As operações de texto aceitam geralmente até 2,000,000 caracteres. Analisadores, geradores e fórmulas individuais aplicam limites adicionais mostrados pelos seus controles.

Fonte de exemplo
Hello world.
A second line.
Café, İstanbul, 日本語, and 👨‍👩‍👧‍👦.

Perguntas frequentes

How do I remove duplicate lines while ignoring uppercase and lowercase?

Turn off Match case. Lines that differ only in capitalization are then treated as duplicates, and the copy that is kept retains its original casing. With Match case on, Apple and apple both stay in the list.

Why are lines with trailing spaces not removed as duplicates?

By default lines are compared exactly, so an extra space at the end makes them different. Enable Trim line edges to strip leading and trailing whitespace before comparing; the trimmed versions are what appear in the output.

Can I keep the last occurrence of a duplicate line instead of the first?

Yes. In Advanced mode, enable Keep the last occurrence. Each repeated line then stays at the position of its final appearance, and the remaining lines keep their relative order.

Onde minha entrada é processada?

Esta operação processa sua fonte no seu navegador. Copiar e baixar são ações explícitas; a entrada de origem não é salva em conta nem em histórico.

Quais são os limites de entrada?

As operações de texto aceitam geralmente até 2,000,000 caracteres. Analisadores, geradores e fórmulas individuais aplicam limites adicionais mostrados pelos seus controles.