Comparador de textos
GrátisCompare dois textos linha por linha.
A diff shows the smallest set of line changes between two versions of a text. Paste both versions and this tool lines them up side by side, colouring everything added or removed.
Como usar Comparador de textos
- 1Paste the original text in the left pane and the revised text in the right.
- 2Removed lines appear in red on the left, added lines in green on the right.
- 3Toggle ignore whitespace or ignore case to hide formatting-only changes.
- 4Copy the lines you need, or clear both panes and compare another pair of texts.
Perguntas frequentes: Comparador de textos
How does this diff checker work?
It runs a line-based longest-common-subsequence algorithm, the same idea git uses at line level. Unchanged lines are matched up and everything between them is reported as an addition or a removal.
Can I ignore case and whitespace differences?
Yes. The toggles normalise each line before comparing, so changes in capitalisation, indentation or extra spaces stop showing up as differences while the original text stays visible.
Is there a size limit for the comparison?
The diff runs locally, so no server imposes a limit. Pastes over 1 MB are compared on the first megabyte, and extremely large line counts switch to a simplified common-prefix and suffix comparison.
Does it work for code and JSON?
Yes. Any plain text works: source code, JSON, Markdown, CSV or prose. The diff is line-based, so it highlights whole changed lines rather than individual characters within a line.
Usa Comparador de textos com frequência?
O Pro remove todos os anúncios, aumenta os limites de arquivo e adiciona modo em lote e predefinições salvas em todas as ferramentas.
Comparar planos →Ferramentas relacionadas
Contador de palavras
Palavras, caracteres, tempo de leitura e densidade.
Ferramentas de textoFormatador JSON
Valide, embeleze e minifique JSON com a posição dos erros.
Ferramentas para desenvolvedoresTestador de regex
Teste padrões ao vivo com destaque de matches e grupos.
Ferramentas para desenvolvedores