Diff de texto
Diff linha a linha com adições, remoções e alterações
Original
Modified
Diff two pieces of text without firing up an IDE
Sometimes the thing you need to compare isn't JSON or code — it's a log snippet, a config file, an essay, or two versions of an email. A line-by-line diff shows you additions, removals, and modifications side by side, with options to ignore whitespace and case so you only see meaningful differences.
Use the comparer when you need to
Compare two log snippets
Paste before-and-after logs to find the line that changed when a deploy went sideways.
Diff prose or release notes
See exactly what changed between two drafts without running git diff or opening an editor.
Verify a copy-paste change
Confirm that the modified version differs only in the way you intended, not in extra invisible whitespace.
How to diff text quickly
- 1
Paste or upload the original text on the left.
- 2
Paste or upload the modified text on the right.
- 3
Toggle ignore whitespace or ignore case if needed, then click Compare.
Keep going
Diff JSON instead
Pick the JSON-aware comparer when both inputs are structured documents.
Format JSON before diffing
Pretty-print both sides first so the diff isn't dominated by indentation noise.
Minify before diffing
Strip whitespace from both inputs to focus the diff on real changes.
Decode encoded inputs
Decode Base64 first when the diff target is encoded text.
Common text-diff workflows
Paste both into the editor to find the entry that's missing or different between environments.
Confirm the new config differs from the old only in the lines you intended to change.
See exactly which sentences changed between drafts of an article or release note.
Ferramentas relacionadas
Perguntas frequentes
O JSON Compare faz parse do JSON e compara a estrutura. Esta ferramenta trata a entrada como texto puro, linha a linha — ideal para logs, configs, textos ou qualquer conteúdo que não seja JSON.
Quando uma linha foi removida e outra foi adicionada na mesma posição lógica, elas são agrupadas como uma modificação (âmbar) para você enxergar a substituição rapidamente.
Eles mudam como as linhas são comparadas: o modo de whitespace colapsa sequências de espaços e remove espaços no começo/fim antes de comparar; ignore case converte para minúsculas apenas para a comparação — o texto original continua sendo exibido no resultado.
Sim. Use o botão Upload acima de cada editor para carregar um arquivo de texto em Original ou Modified e depois clique em Compare.