テキスト差分

行単位の追加・削除・変更を表示

Original

Loading editor...

Modified

Loading editor...

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. 1

    Paste or upload the original text on the left.

  2. 2

    Paste or upload the modified text on the right.

  3. 3

    Toggle ignore whitespace or ignore case if needed, then click Compare.

Common text-diff workflows

Compare staging and prod logs

Paste both into the editor to find the entry that's missing or different between environments.

Audit a config rollout

Confirm the new config differs from the old only in the lines you intended to change.

Review a copy-edit pass

See exactly which sentences changed between drafts of an article or release note.

関連ツール

よくある質問

JSON CompareはJSONをパースして構造の差分を取ります。一方このツールは入力をプレーンテキストの「行」として扱い、ログ、設定ファイル、文章などJSON以外の差分確認に向いています。

同じ論理位置で1行が削除され、別の1行が追加された場合、それらを「置き換え」としてまとめてmodified(amber)表示します。変更点を一目で追いやすくするためです。

行の比較方法を変えます。whitespaceは連続するスペースをまとめ、行頭・行末の空白をトリムしてから一致判定します。ignore caseは比較時だけ小文字化して判定します(出力には元のテキストがそのまま表示されます)。

はい。各エディタ上部のUploadボタンから、OriginalとModifiedそれぞれにテキストファイルを読み込めます。読み込み後に「Compare」をクリックしてください。