テキスト比較ツール

最終更新:

ツールについて

テキスト差分ツールは 2 つのテキストを行単位で比較し、追加・削除・変更なしを色分け表示します。git diff と同じビューを、まだ VCS に入っていない設定スニペット・API レスポンス・翻訳文などにそのまま使えます。

使い方

  1. Paste the original text into the left input.
  2. Paste the new or modified text into the right input.
  3. Click Compare to render the unified diff below.
  4. Read green lines as additions and red lines as deletions; identical lines are dimmed.
  5. Use the result to spot regressions, validate translations, or document a change.

主な使用例

  • Comparing the response of an API before and after a backend deployment.
  • Reviewing two versions of a contract or copy block side by side.
  • Checking what changed in a YAML / JSON configuration file.
  • Verifying that a refactored function produces identical log output.
  • Spotting subtle differences between two SQL query plans.
  • Catching whitespace or line-ending changes that hide in normal editors.

よくある質問

Q. Is the diff line-based or character-based?

A. Line-based, like git diff. Two lines that differ by one character render as one removal and one addition rather than an inline highlight.

Q. How is whitespace handled?

A. Whitespace differences cause line mismatches. To ignore them, normalise both inputs (trim trailing spaces, convert tabs to spaces) before pasting.

Q. Will it work for very large files?

A. It runs in your browser, so performance depends on your machine. Tens of thousands of lines are usually fine; for huge files prefer git diff or diff -u from the command line.

Q. Does the comparison get sent to a server?

A. No. The diff runs locally in JavaScript, so confidential text never leaves the browser tab.