テキスト差分チェック
2つのテキストを比較し、追加・削除された行を確認できます。
Added Lines
Removed Lines
What is Text Diff Checker?
Text Diff Checker compares two blocks of text and highlights lines that were added, removed, or changed. It is useful for reviewing document edits, comparing config file versions, or spotting changes in copied content.
How to use
- Paste the original text into the left (Original) box.
- Paste the modified text into the right (Modified) box.
- Click Compare to see the diff. Added lines are highlighted in green, removed lines in red.
Notes
- Comparison is line-by-line. Inline word-level diffing is not performed.
- Empty lines count as lines and are included in the comparison.
- The tool works entirely in your browser — text is not uploaded anywhere.
FAQ
- Can I compare code files?
- Yes. Paste the contents of any plain text or code file. The diff is line-based, which matches how most code review tools work.
- Does it detect moved lines?
- No. Lines that are moved to a different position are shown as a deletion in the old location and an addition in the new location.
- Is the comparison case-sensitive?
- Yes. "Hello" and "hello" are treated as different lines.
概要
2つのテキストを行単位で比較し、追加行・削除行をハイライト表示します。文書の改訂レビュー、設定ファイルの変更確認、コピー文の検証に便利です。
使い方
- 左の入力欄に元のテキストを貼り付けます。
- 右の入力欄に変更後のテキストを貼り付けます。
- 比較を実行し、ハイライトされた差分を確認します。
使用例
-
設定ファイルのレビュー
入力: .env や YAML の新旧2バージョン
出力: 変更行がハイライトされ素早く確認できる
-
記事の改訂チェック
入力: 下書き v1 と v2
出力: 追加・削除された文を行単位で表示
補足
- 比較は行単位です。1文字の修正でも行全体が変更扱いになります。
- 空白の違いも差分になります。無視したい場合は先に整形してください。
- テキストはアップロードされず、ブラウザ内で処理されます。
よくある質問
- 単語単位の差分は表示できますか?
- 行単位の比較です。細かく見たい場合は長い段落を短い行に分割してから比較してください。
- コードの比較にも使えますか?
- 使えます。コードや設定ファイルなど構造化テキストの比較に向いています。
- 入力データは送信されますか?
- 送信されません。ブラウザ内で比較します。
Embed this tool
Paste this iframe into any HTML page to embed テキスト差分チェック on your site: