Monu Tools

テキスト差分チェック

2つのテキストを比較して追加・削除された行をハイライト表示します。ブラウザ内で即座に処理されます。

差分チェックの使い方

  1. 01

    左側に元のテキスト、右側に変更後のテキストを貼り付けてください。

  2. 02

    任意で大文字小文字やスペースの違いを無視することができます。

  3. 03

    行ごとの差分を確認してください。緑が追加、赤が削除を示します。

What this diff checker does

This text diff checker compares two blocks of text and highlights exactly what changed: which lines were added, which were removed, and the specific words within a changed line. Green marks additions, red marks removals.

Because the comparison runs entirely in your browser, it is fast and private, suitable even for confidential documents and code that you would not want to paste into a server-side service.

The algorithm behind it

It uses a longest-common-subsequence diff, the same core algorithm Git and most code-review tools use, so it reports the smallest, clearest set of changes rather than flagging everything after the first difference.

Ignore case or whitespace

Options let you ignore case or whitespace, which is useful when the only real differences are meaningful ones and you do not want indentation changes or capitalization to clutter the result.

What you can compare

Line-based diffing works equally well for source code, configuration files, logs, JSON, and ordinary prose, so it is handy for comparing two versions of a contract, spotting what changed between two config files, or reviewing an edit to an article.

Paste the original on one side and the changed version on the other, toggle the options you need, and the differences appear immediately.

よくある質問

比較はどのように機能しますか?

最長共通部分列(LCS)差分を使用して2つのテキストを行ごとに比較します。これはGitが使用するアプローチと同じで、最小の変更セットが得られます。

テキストはどこかにアップロードされますか?

いいえ。比較はすべてブラウザ内で実行されます。サーバーには何も送信されません。

コードや設定ファイルも比較できますか?

はい。行ベースの差分はソースコード、設定ファイル、ログ、文章のいずれにも効果的に機能します。

このツールを埋め込む

このツールをご自身のウェブサイトに追加できます。下のコードをコピーしてください。内容は自動的に最新の状態に保たれます。

<iframe src="https://monu.tools/embed/ja/diff-checker" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

関連ツール