GlobalUso gratuito

Comparar listas de texto

Encontre linhas exatas em comum entre duas listas ou presentes em apenas uma delas.

Seus dados ficam nesta aba. Não recebemos seus arquivos, textos colados nem valores de cálculo.

Entrada

Dica: pressione Ctrl + Enter para executar

Seu resultado

Seu resultado aparecerá aqui.

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

  1. Paste the first list, one item per line.
  2. Paste the second list in the second box.
  3. Run the comparison.
  4. 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.

Processado no seu navegador

Próximos passos úteis