文字對比工具(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.
常見問題
支援單字層級的對比嗎?▼
相關工具
JWT 解碼器
即時解碼 JSON Web Token(JWT)。完全在你的瀏覽器中執行:權杖絕不會離開你的裝置,可安全用於正式環境的密鑰。
JSON格式化與驗證工具
線上格式化、驗證和壓縮JSON。完全在你的瀏覽器中執行:你的資料永遠不會離開你的裝置。
XML 格式化工具
格式化並美化 XML 文件。適用於 SOAP、網站地圖、RSS 訂閱源和設定檔。
Base64 編碼與解碼工具
將字串編碼為 Base64,或將 Base64 解碼為文字。尊重你的隱私:全部在你的瀏覽器中執行。
URL 編碼與解碼工具
將文字轉換為 URL 安全的編碼(百分號編碼),或進行反向轉換。適用於查詢字串、重新導向和 OAuth 流程。
HTML實體編碼與解碼工具
將特殊字元轉換為HTML實體(&、<等),或進行反向轉換。適用於將文字安全地嵌入HTML。