文字對比工具(Diff)
逐行對比兩段文字。用彩色標註出新增、刪除以及未改動的列。
如何使用本工具
- 1
Paste or type the original version into the left textarea labeled Original.
- 2
Paste or type the changed version into the right textarea labeled Modified.
- 3
Read the result panel below: lines prefixed with a minus and shown in red were removed, lines prefixed with a plus and shown in green were added, and lines prefixed with an equals sign are unchanged.
- 4
Edit either box to refine your input; the diff recomputes instantly as you type.
什麼是文字對比工具(Diff)?
差異對比(diff)工具會比較一段文字的兩個版本,並標明發生了哪些變化。適用於對比設定檔、合約、程式碼修訂,或任意文件的兩個版本。本工具完全在你的瀏覽器中執行:不會上傳任何資料。
常見使用場景
Spot which keys changed between two versions of a .env or config file pasted side by side.
Compare two revisions of a short paragraph or email draft before sending the edited version.
Check what a teammate altered in a snippet they pasted into chat versus your local copy.
Verify that a find-and-replace did exactly what you intended across a block of text.
Review line-level differences between two SQL queries or log excerpts of similar length.
Confirm two lists (allowlists, redirect rules, CSV rows) are identical or see exactly where they diverge.
常見問題
支援單字層級的對比嗎?▼
相關工具
HTML格式化與美化工具
為壓縮或單行的HTML加上適當的縮排和換行進行格式化。
JavaScript格式化工具
為壓縮後的JavaScript加入縮排,並在分號和大括號處換行。
CSS格式化與美化工具
為壓縮後的CSS添加適當的縮排、換行和間距進行格式化。
Base32 編碼與解碼工具
編碼和解碼 Base32 字串:常用於 TOTP 金鑰、DNS 記錄以及不區分大小寫的識別碼。
JWT 解碼器
即時解碼 JSON Web Token(JWT)。完全在你的瀏覽器中執行:權杖絕不會離開你的裝置,可安全用於正式環境的密鑰。
JSON格式化與驗證工具
線上格式化、驗證和壓縮JSON。完全在你的瀏覽器中執行:你的資料永遠不會離開你的裝置。