Text Diff Checker
Side-by-Side Compare
Compare two texts line by line with live add/remove highlighting. For configs and patches—free online, no signup, browser-only.
This conversion runs only in your browser — nothing is uploaded.
- Added+0
- Removed−0
- Lines0
Original
Original
Modified
Diff
Output...
What is this tool?
This text diff checker compares two plain-text blocks with a line-based algorithm. Unchanged lines stay neutral; removed lines are highlighted one way and added lines another—similar to a lightweight unified view without opening a full IDE.
It is built for quick reviews of configuration snippets, patch drafts, formatted JSON/YAML, SQL, env examples, and logs. It is not a word-level or character-level diff, and it does not merge conflicts or apply patches.
Use it before committing, filing a ticket, or sharing “what changed” with someone who only needs the delta.
Common use cases
- Spot a single key change in a YAML/JSON config or
.envsample - Review a short patch or release-note draft against the previous wording
- Confirm that reformatting did not alter meaningful lines before you paste into production
How to use
- Paste the original text on the left (Original) and the changed text on the right (Modified).
- The diff updates live as you type (debounced). On mobile, use the Left / Right / Diff tabs.
- Read the +added / −removed counts above the result.
- Copy the result as plain lines, or turn on Include +/- in copy for a marker-prefixed paste. Sample loads a config-style pair; Clear resets both sides; Swap exchanges them.
Examples
| Original | Modified | What you see |
|---|---|---|
timeout: 30 | timeout: 60 | One removed line, one added line (same key, new value). |
Three-line config without region | Same config plus region: us-east-1 | One added line; others unchanged. |
alpha / beta | alpha / gamma | beta removed, gamma added (Sample pair shape). |
hello world (one line) | hello there (one line) | Whole line treated as remove+add—not a word-level highlight on world→there. |
Practical pitfalls
- Line-only granularity: editing one token in a long line marks the entire line removed and added. Split long lines or use a word-level tool when you need intra-line detail.
- Trailing spaces and newline style (
\nvs\r\n) count as real differences—normalize first if that noise hides the real change. - This page does not apply patches, three-way merge, or ignore-whitespace modes.
References
이 도구는 무엇인가요?
두 평문 블록을 줄 단위로 비교합니다. 그대로인 줄은 중립, 삭제·추가된 줄은 색으로 구분됩니다. IDE 없이 가벼운 unified 보기에 가깝습니다.
설정 조각, 패치 초안, 포맷된 JSON/YAML, SQL, env 예시, 로그를 빠르게 볼 때 맞습니다. 단어·문자 단위 하이라이트나 충돌 병합·패치 적용은 하지 않습니다.
커밋·티켓·공유 전에 “무엇이 바뀌었는지”만 확인할 때 쓰세요.
자주 쓰는 경우
- YAML/JSON·
.env에서 키 하나 변경 위치 찾기 - 짧은 패치·릴리스 노트 초안을 이전 문구와 비교
- 재포맷 후 의미 있는 줄이 바뀌지 않았는지 확인
사용 방법
- 왼쪽(원본)과 오른쪽(수정)에 텍스트를 붙여 넣습니다.
- 입력하면 결과가 바로 갱신됩니다. 모바일은 왼쪽/오른쪽/Diff 탭을 사용합니다.
- 상단의 추가·삭제 줄 수를 확인합니다.
- 기본 Copy는 순수 줄 텍스트이고, 복사에 +/- 포함을 켜면 마커가 붙습니다. 샘플·지우기·전환을 활용하세요.
예시
| 원본 | 수정 | 결과 |
|---|---|---|
timeout: 30 | timeout: 60 | 삭제 1줄 + 추가 1줄 |
region 없는 설정 | region: us-east-1 추가 | 추가 1줄, 나머지 동일 |
alpha / beta | alpha / gamma | beta 삭제, gamma 추가 |
hello world | hello there | 줄 전체가 삭제+추가로 표시(단어 단위 아님) |
실무에서 흔한 실수
- 줄 단위만: 긴 줄의 단어 하나만 바뀌어도 줄 전체가 삭제·추가로 잡힙니다. 단어 단위가 필요하면 다른 도구를 쓰세요.
- 끝 공백·개행 스타일(
\nvs\r\n)도 차이로 잡힙니다. 노이즈면 먼저 정규화하세요. - 패치 적용·3-way merge·공백 무시 모드는 없습니다.
참고자료
このツールについて
2つのプレーンテキストを行単位で比較します。変更なしは中立、削除・追加行は色分けされます。IDE なしの軽い unified 表示に近いです。
設定スニペット、パッチ草案、整形済み JSON/YAML、SQL、env、ログの確認向けです。単語・文字単位のハイライトやコンフリクト解決・パッチ適用はしません。
コミットやチケット共有の前に「何が変わったか」だけ見たいときに使います。
よくある用途
- YAML/JSON・
.envのキー1件の変更箇所を見つける - 短いパッチやリリースノート草案を前回文面と比較する
- 整形後に意味のある行が変わっていないか確認する
使い方
- 左(元)と右(変更後)にテキストを貼ります。
- 入力に応じて差分が更新されます。モバイルは左/右/差分タブを使います。
- 上部の追加・削除行数を確認します。
- 既定の Copy はプレーン行で、コピーに +/- を含めるでマーカー付きになります。
例
| 元 | 変更後 | 表示 |
|---|---|---|
timeout: 30 | timeout: 60 | 削除1行 + 追加1行 |
region なし | region: us-east-1 追加 | 追加1行 |
alpha / beta | alpha / gamma | beta 削除、gamma 追加 |
hello world | hello there | 行全体が削除+追加(単語単位ではない) |
実務での落とし穴
- 行粒度のみ: 長い行の単語1つだけ変えても行全体が削除・追加になります。
- 末尾スペースや改行の違いも差分になります。ノイズなら先に正規化してください。
- パッチ適用・3-way merge・空白無視モードはありません。
参考資料
¿Qué es esta herramienta?
Compara dos bloques de texto plano línea a línea. Las líneas iguales quedan neutras; las eliminadas y añadidas se colorean—como una vista unificada ligera sin IDE.
Sirve para configs, borradores de parche, JSON/YAML formateado, SQL, env y logs. No es un diff a nivel de palabra o carácter, ni fusiona conflictos ni aplica parches.
Úsalo antes de un commit, un ticket o al compartir solo el delta.
Casos de uso comunes
- Detectar un cambio de clave en YAML/JSON o un
.env - Revisar un parche corto o notas de versión frente al texto anterior
- Comprobar que un reformateo no alteró líneas con significado
Cómo usar
- Pega el original a la izquierda y el modificado a la derecha.
- El diff se actualiza al escribir. En móvil usa las pestañas Izquierda / Derecha / Diff.
- Mira el conteo +añadidas / −eliminadas arriba.
- Copia líneas puras o activa Incluir +/- al copiar para marcadores. Sample, Clear y Swap ayudan a iterar.
Ejemplos
| Original | Modificado | Resultado |
|---|---|---|
timeout: 30 | timeout: 60 | Una línea eliminada y una añadida. |
Config sin region | Misma + region: us-east-1 | Una línea añadida. |
alpha / beta | alpha / gamma | beta fuera, gamma dentro. |
hello world | hello there | Toda la línea como quitar+añadir (no palabra a palabra). |
Errores prácticos
- Solo por líneas: un cambio de token en una línea larga marca la línea entera.
- Espacios finales y
\nvs\r\ncuentan; normaliza si ensucian el resultado. - No aplica parches, merge a 3 vías ni ignora espacios.
Referencias
Qu'est-ce que cet outil ?
Compare deux blocs de texte brut ligne par ligne. Les lignes inchangées restent neutres ; suppressions et ajouts sont colorés—vue unifiée légère sans IDE.
Pensé pour configs, brouillons de patch, JSON/YAML formatés, SQL, env et journaux. Ce n’est pas un diff mot à mot ou caractère par caractère, ni un outil de merge ou d’application de patch.
Utilisez-le avant un commit, un ticket ou pour partager uniquement le delta.
Cas d'usage courants
- Repérer une clé modifiée dans YAML/JSON ou un
.env - Relire un court patch ou des notes de version face à l’ancien texte
- Vérifier qu’un reformatage n’a pas changé des lignes utiles
Comment utiliser
- Collez l’original à gauche et la version modifiée à droite.
- Le diff se met à jour en direct. Sur mobile, utilisez les onglets Gauche / Droite / Diff.
- Consultez le compte +ajoutées / −supprimées en haut.
- Copiez des lignes brutes ou activez Inclure +/- dans la copie. Sample, Clear et Swap aident à itérer.
Exemples
| Original | Modifié | Résultat |
|---|---|---|
timeout: 30 | timeout: 60 | Une ligne supprimée + une ajoutée. |
Config sans region | Même + region: us-east-1 | Une ligne ajoutée. |
alpha / beta | alpha / gamma | beta retiré, gamma ajouté. |
hello world | hello there | Ligne entière en suppression+ajout (pas mot à mot). |
Pièges courants
- Granularité ligne seule : un seul jeton modifié dans une longue ligne marque toute la ligne.
- Espaces de fin et
\nvs\r\ncomptent ; normalisez si c’est du bruit. - Pas d’application de patch, merge à 3 voies, ni mode ignore-whitespace.
Références
这个工具是什么?
按行比较两段纯文本。未改动的行保持中性,删除与新增分行着色——类似轻量 unified 视图,无需打开 IDE。
适合配置片段、补丁草稿、已格式化的 JSON/YAML、SQL、env 与日志。不是字词或字符级 diff,也不合并冲突或应用补丁。
在提交、提工单或只分享变更点之前使用。
常见用途
- 在 YAML/JSON 或
.env中定位单个键的变更 - 对照上一版审阅短补丁或发布说明草稿
- 确认重新格式化没有改动有意义的行
如何使用
- 左侧贴原文,右侧贴修改后文本。
- 输入即更新 diff。移动端使用左 / 右 / Diff 标签。
- 查看上方的新增 / 删除行数。
- 默认复制纯文本行;打开复制时包含 +/- 可带标记。可用示例、清空与交换。
示例
| 原文 | 修改后 | 结果 |
|---|---|---|
timeout: 30 | timeout: 60 | 删除一行 + 新增一行 |
无 region 的配置 | 增加 region: us-east-1 | 新增一行 |
alpha / beta | alpha / gamma | 删除 beta、新增 gamma |
hello world | hello there | 整行按删除+新增处理(非字词级) |
实践中的常见误区
- 仅行级粒度: 长行中只改一个词也会整行删除再新增。
- 行尾空格与换行风格(
\nvs\r\n)也会算差异;先规范化可减少噪音。 - 不应用补丁、不做三路合并、无忽略空白模式。
参考资料
這個工具是什麼?
以行為單位比較兩段純文字。未改動的行保持中性,刪除與新增分行上色——類似輕量 unified 檢視,不必開啟 IDE。
適合設定片段、補丁草稿、已格式化的 JSON/YAML、SQL、env 與日誌。不是字詞或字元級 diff,也不合併衝突或套用補丁。
在提交、開工單或只分享變更點之前使用。
常見用途
- 在 YAML/JSON 或
.env中找出單一鍵的變更 - 對照上一版審閱短補丁或發行說明草稿
- 確認重新格式化沒有改動有意義的行
如何使用
- 左側貼原文,右側貼修改後文字。
- 輸入即更新 diff。行動裝置使用左 / 右 / Diff 分頁。
- 查看上方的新增 / 刪除行數。
- 預設複製純文字行;開啟複製時包含 +/- 可帶標記。可用範例、清空與互換。
範例
| 原文 | 修改後 | 結果 |
|---|---|---|
timeout: 30 | timeout: 60 | 刪除一行 + 新增一行 |
無 region 的設定 | 增加 region: us-east-1 | 新增一行 |
alpha / beta | alpha / gamma | 刪除 beta、新增 gamma |
hello world | hello there | 整行按刪除+新增處理(非字詞級) |
實務上常見陷阱
- 僅行級粒度: 長行中只改一個詞也會整行刪除再新增。
- 行尾空白與換行風格(
\nvs\r\n)也會算差異;先正規化可減少雜訊。 - 不套用補丁、不做三路合併、無忽略空白模式。
參考資料
Last reviewed: 2026-07-27
Frequently asked questions
- What kind of diff is this?
- It is a line-based text comparison (unified-style highlighting). Entire lines are marked added or removed; it does not highlight word- or character-level edits inside a long line.
- Can I compare code or config files?
- Yes. Paste code, YAML/JSON configs, env samples, SQL, logs, or any plain text. Format both sides the same way first if whitespace-only noise would drown real changes.
- Does it merge or resolve conflicts?
- No. It only highlights differences. You still apply or resolve changes elsewhere.
- Is my text uploaded?
- No. Comparison runs locally in your browser.