Tool Hub

文本比較

逐行比較兩段文字 (LCS 演算法,統一檢視)

逐行比較兩段文字。LCS 演算法找出將左側轉換為右側所需的最少新增與刪除操作。相同行保留;新增行以綠色顯示,刪除行以紅色顯示。

+ 2 新增
1 刪除
3 保留

統一差異檢視

11 Hello world
2- This is line 2
2+ This is line 2 modified
33 The quick brown fox
4+ Inserted line
45 Last line

使用方法

  1. Paste the original text into the left panel and the modified text into the right panel。
  2. Toggle options to ignore whitespace, ignore case, or trim lines before comparing。
  3. Read the unified diff view: lines prefixed with + are additions, - are removals, and unmarked lines are unchanged。
  4. Check the stats bar for the total count of added and removed lines。
  5. All diffing runs entirely in your browser — nothing is sent anywhere。

範例

  • Pasting "hello world" on the left and "hello earth" on the right shows one removed line and one added line with the changed word highlighted。
  • Enabling ignore-case means "Hello" and "hello" are treated as identical and produce no diff output。

生產環境使用前請驗證輸出。無擔保 — 參見 條款.