Text Diff — Free Online Diff Checker (Line, Word & Character)
Compare two blocks of text — side-by-side, inline, or unified patch. Line, word, or character granularity.
Cách dùng
- 1 Paste the original text on the left, the modified text on the right.
- 2 Pick a view — side-by-side, inline, or unified patch.
- 3 Pick a granularity — line, word, or character.
- 4 Stats and color-coded output update live.
Vì sao dùng công cụ này
- Powered by Google's <code class="font-mono text-xs">diff-match-patch</code> — the same algorithm used in many production diff tools.
- Pure client-side — your text never leaves the browser.
- Multiple views — pick the format that fits your review.
- Unified patch output is paste-ready for <code class="font-mono text-xs">patch -p0</code>.
Câu hỏi thường gặp
What's the difference between line, word, and character granularity?
Line groups changes by full lines (cleanest for code review). Word highlights edited words within a paragraph. Character is finest-grained — useful for small typo fixes.
Can I export the diff as a patch file?
Yes — pick the Patch view. The output uses the diff-match-patch unified format, compatible with most patch utilities.
Need to compare JSON or XML?
Use <a class="text-brand-600 hover:underline" href="/json-diff">JSON Diff</a> for structural JSON comparison.
Related tools?
<a class="text-brand-600 hover:underline" href="/json-formatter">JSON Formatter</a> for cleaning input before comparing; <a class="text-brand-600 hover:underline" href="/deduplicate-lines">Deduplicate Lines</a> for list cleanup.
Text Diff là gì?
A Text Diff tool compares two blocks of text and highlights the additions, deletions, and unchanged regions. Line-level diffs match the behaviour of `git diff`; word- and character-level diffs surface small edits inside long lines. Three display modes are common: side-by-side (original vs new), inline (one stream with insertions/deletions marked), and unified patch (the format git produces).
Text Diff so với các lựa chọn khác
| Tính năng | Zerethon Tools | Công cụ trực tuyến thường gặp | Ứng dụng máy tính |
|---|---|---|---|
| Side-by-side view | Yes | Yes | Yes |
| Inline view | Yes | Sometimes | Yes |
| Unified patch output | Yes | Rarely | Yes |
| Line / word / character | All three | Line only | All three |
| Content leaves device | No | Sometimes | No |
| Free | Yes | Yes (with ads) | Often paid |
Text Diff là công cụ lập trình miễn phí của Zerethon Tools. Compare two blocks of text — side-by-side, inline, or unified patch. Line, word, or character granularity. Chạy hoàn toàn trong trình duyệt — không đăng ký, không tải lên.
- Danh mục
- Lập trình
- Giá
- Miễn phí
- Quyền riêng tư
- Chạy trên trình duyệt
- Đăng ký
- Không cần
Quyền riêng tư
Dữ liệu của bạn không bao giờ rời khỏi trình duyệt trừ khi được nêu rõ. Text Diff chạy hoàn toàn phía client — không tải lên máy chủ, không ghi log, không theo dõi dữ liệu bạn nhập.
Công cụ liên quan
JSON Formatter
Format, validate, and minify JSON online. Free, no signup — your data never leaves your browser.
Mở công cụSQL Formatter
Format SQL queries online — beautify MySQL, PostgreSQL, SQLite, SQL Server, Oracle, and BigQuery.
Mở công cụUUID Generator
Generate UUIDs online — v1, v4, v7, and Nil. Bulk generation up to 10,000. Free, no signup.
Mở công cụPassword Generator
Generate strong, cryptographically random passwords. Configurable length and character sets — runs in your browser.
Mở công cụBuild, share, and grow on Zerethon Social
Free signup. Earn points, collect achievements, and connect with creators worldwide.