Comparar listas de texto
Encontre linhas exatas em comum entre duas listas ou presentes em apenas uma delas.
Entrada
Dica: pressione Ctrl + Enter para executar
Configurações salvas
Por enquanto, a ajuda detalhada abaixo está disponível apenas em inglês.
Sobre esta ferramenta
Which customers are on last month’s list but not this month’s? Which product codes are in the warehouse export but missing from the store? This tool compares two lists of lines and shows three groups: lines in both, lines only in the first list and lines only in the second. Each group lists unique lines once.
Matching is exact, so prepare both lists the same way (same case, no stray spaces) for reliable results.
Como usar
- Paste the first list, one item per line.
- Paste the second list in the second box.
- Run the comparison.
- Copy whichever group you need: common items, items only in the first list or only in the second.
Como o cálculo funciona
Each list is reduced to its set of unique lines. The output shows the intersection, the first set minus the second, and the second set minus the first, each in the order of first appearance.
Exemplo prático
List A has ana@x.com, bo@x.com and cy@x.com; list B has bo@x.com, dee@x.com and ana@x.com. The comparison shows 2 common lines (ana@x.com and bo@x.com), cy@x.com only in the first list and dee@x.com only in the second.
Exemplo de entrada e resultado
A ∩ B; A − B; B − A
Limitações
- Exact line matching only.
- Duplicates within a list are shown once.
- Up to 100,000 characters per list.
Última atualização:
Perguntas frequentes
Is the comparison case-sensitive?
Yes. Convert both lists to lowercase first if case should not matter, as with email addresses.
Does the order of the lists matter?
Only for which group is called "first" and "second". The common items are the same either way.
How is this different from a diff checker?
A diff checker shows changes in order within a document. This tool treats each list as a set and ignores order.
Solução de problemas
Items that look identical are reported as different.
Check for trailing spaces, different capitals or invisible characters from spreadsheets.
Everything is "only in" one list.
One list may use a different separator, such as commas on one line. Put one item per line.
Numbers like 007 and 7 do not match.
They are different text. Format both lists the same way first.
Privacidade & Uso gratuito
Meus dados são armazenados?
Seus dados ficam nesta aba. Não recebemos seus arquivos, textos colados nem valores de cálculo.
Esta ferramenta é gratuita?
Sim. Não é preciso cadastro nem pagamento.
Veja também
Próximos passos úteis
Contador de palavras e caracteres
Conte palavras, caracteres visíveis, parágrafos e linhas localmente, com segmentação adequada ao idioma.
Texto e escritaConversor de maiúsculas e minúsculas
Alterne entre maiúsculas, minúsculas, título e frase em uma só ferramenta.
Texto e escritaRemover linhas duplicadas
Mantém a primeira ocorrência de cada linha idêntica e preserva a ordem original.
Texto e escrita