Diff Viewer
2つのファイルやテキストの差分を行単位で比較し、追加・削除・共通の行をハイライト表示します。ファイルのドラッグ&ドロップとテキスト貼り付けの両方に対応し、左右表示と統合表示を切り替えできます。すべての処理はブラウザ内で完結し、ファイルがサーバーに送信されることはありません。
ファイル1(変更前)
Drag and drop, or click to select
ファイル2(変更後)
Drag and drop, or click to select
0
Add row
0
Delete row
0
Common row
2つのファイルまたはテキストを入力すると差分が表示されます。
📘 How to use
- 「ファイル」タブで変更前・変更後の2つのファイルを枠にドラッグ&ドロップします。または「テキスト貼り付け」タブで文章を直接貼り付けます。
- 入力に合わせて自動で比較されます。「比較」ボタンでいつでも再計算できます。
- 「左右表示」で並べて、「統合表示」で1つにまとめて差分を確認できます。追加行は緑、削除行は赤で表示されます。
- 「行末の空白を無視」「大文字と小文字を区別しない」で比較条件を調整できます。件数は上部のタイルで確認できます。
❓ FAQ
How is the diff calculated?
Uses dynamic programming to find the longest common subsequence (LCS) at line level, determining additions/deletions based on common lines. Comparison is at line level, not character level.
Is there a limit to the number of rows that can be compared?
処理が重くなりすぎないよう、目安として2ファイル合計3000行程度を上限としています。超える場合はメッセージを表示します。長いテキストは分割してご利用ください。
Do you support encodings other than UTF-8?
First it is read strictly as UTF-8; if that fails, it is read again as Shift_JIS. When Shift_JIS is used, “Shi
入力したファイルはサーバーに送信されますか?
いいえ。比較処理はすべてお使いのブラウザ内で完結します。ファイルやテキストがサーバーに送信されることはありません。