So sánh hai văn bản và làm nổi bật các dòng được thêm và xóa, tức thì và trong trình duyệt của bạn.
Cách dùng So sánh khác biệt
Dán văn bản gốc vào bên trái và văn bản thay đổi vào bên phải.
Tùy chọn bỏ qua khác biệt hoa thường hoặc khoảng trắng.
Đọc khác biệt theo từng dòng: xanh là thêm, đỏ là xóa.
This text diff checker compares two blocks of text and highlights exactly what changed: which lines were added, which were removed, and the specific words within a changed line. Green marks additions, red marks removals.
Because the comparison runs entirely in your browser, it is fast and private, suitable even for confidential documents and code that you would not want to paste into a server-side service.
It uses a longest-common-subsequence diff, the same core algorithm Git and most code-review tools use, so it reports the smallest, clearest set of changes rather than flagging everything after the first difference.
Options let you ignore case or whitespace, which is useful when the only real differences are meaningful ones and you do not want indentation changes or capitalization to clutter the result.
Line-based diffing works equally well for source code, configuration files, logs, JSON, and ordinary prose, so it is handy for comparing two versions of a contract, spotting what changed between two config files, or reviewing an edit to an article.
Paste the original on one side and the changed version on the other, toggle the options you need, and the differences appear immediately.
Câu hỏi thường gặp
Nó so sánh hai văn bản theo từng dòng bằng diff chuỗi con chung dài nhất, cùng cách tiếp cận mà Git dùng, nên bạn có tập thay đổi nhỏ nhất.
Không. Việc so sánh chạy hoàn toàn trong trình duyệt của bạn; không gì được gửi đến máy chủ.
Có. So sánh theo dòng hoạt động tốt cho mã nguồn, tệp cấu hình, log và văn xuôi như nhau.
Nhúng công cụ này
Thêm công cụ này vào trang web của riêng bạn. Sao chép đoạn mã bên dưới; nó tự động cập nhật.
<iframe src="https://monu.tools/embed/vi/diff-checker" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>Công cụ liên quan
Tạo văn bản giữ chỗ theo đoạn, câu hoặc từ, chỉ bằng một cú nhấp.
Xóa các dòng trùng lặp khỏi danh sách hoặc văn bản, với tùy chọn bỏ qua hoa thường, cắt khoảng trắng và sắp xếp.
Đảo ngược văn bản theo ký tự, từ hoặc dòng, hoặc lật ngược nó từ trên xuống.
Dọn khoảng trắng lộn xộn: cắt dòng, gộp dấu cách, xóa dòng trống và ngắt dòng.